mainboard.wvproj 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487
  1. {
  2. "version": "1.0",
  3. "isNormalMRSProject": true,
  4. "basic": {
  5. "chipInfo": {
  6. "vendor": "WCH",
  7. "toolchain": "RISC-V",
  8. "series": "CH32V208",
  9. "rtos": "NoneOS",
  10. "mcu": "CH32V208WBU6",
  11. "description": "",
  12. "link": "WCH-Link",
  13. "peripheral_version": "1.0",
  14. "calibrateSupport": false,
  15. "calibrateCommand": ""
  16. },
  17. "linkedFolders": [
  18. {
  19. "name": "HAL",
  20. "location": "../Library/HAL"
  21. },
  22. {
  23. "name": "LIB",
  24. "location": "../Library/LIB"
  25. },
  26. {
  27. "name": "SRC",
  28. "location": "../Library/SRC"
  29. }
  30. ],
  31. "removedResources": [
  32. {
  33. "parentLogicPath": "",
  34. "type": "file",
  35. "name": "*.wvproj"
  36. },
  37. {
  38. "parentLogicPath": "components/action",
  39. "type": "file",
  40. "name": "user_work.c"
  41. },
  42. {
  43. "parentLogicPath": "components/action",
  44. "type": "file",
  45. "name": "user_work.h"
  46. },
  47. {
  48. "parentLogicPath": "components/action",
  49. "type": "file",
  50. "name": "action.h"
  51. },
  52. {
  53. "parentLogicPath": "components/action",
  54. "type": "file",
  55. "name": "action.c"
  56. },
  57. {
  58. "parentLogicPath": "components",
  59. "type": "folder",
  60. "name": "i2c"
  61. }
  62. ],
  63. "projectName": "mainboard",
  64. "architecture": "RISC-V",
  65. "projectType": "c"
  66. },
  67. "buildConfig": {
  68. "configurations": [
  69. {
  70. "buildArtifact": {
  71. "artifact_name": "${ProjName}",
  72. "artifact_extension": "elf",
  73. "output_prefix": "",
  74. "artifact_type": "Executable"
  75. },
  76. "parallelizationNumber": "optimal",
  77. "stop_on_first_build_error": true,
  78. "pre_script": "",
  79. "pre_script_description": "",
  80. "post_script": " ${cross_prefix}${cross_objcopy}${cross_suffix} -O ihex \"${ProjName}.elf\" \"${ProjName}.hex\" && ${cross_prefix}${cross_objcopy}${cross_suffix} -O binary \"${ProjName}.elf\" \"${ProjName}.bin\"",
  81. "excludeResources": [
  82. "${project}/User/ble_uart_service/ble_uart_service_16bit.c",
  83. "${project}/User/ble_uart_service/ble_uart_service_same_16bit_char.c",
  84. "${project}/User/ble_uart_service/ble_uart_service_same_char.c",
  85. "${project}/User/app_drv_fifo/",
  86. "${project}/User/ble_uart_service/"
  87. ],
  88. "optimization": {
  89. "level": "size",
  90. "message_length": true,
  91. "char_is_signed": true,
  92. "function_sections": true,
  93. "data_sections": true,
  94. "no_common_unitialized": true,
  95. "do_not_inline_functions": false,
  96. "assume_freestanding_environment": false,
  97. "disable_builtin": false,
  98. "single_precision_constants": false,
  99. "position_independent_code": false,
  100. "link_time_optimizer": false,
  101. "disable_loop_invariant_move": false,
  102. "optimize_unused_sections_declared_as_high_code": false,
  103. "code_generation_without_hardware_floating": false,
  104. "use_pipelines": false,
  105. "show_caret_indicating_the_column": false,
  106. "other_optimization_flags": ""
  107. },
  108. "warnings": {
  109. "check_syntax_only": false,
  110. "pedantic": false,
  111. "pedantic_warnings_as_errors": false,
  112. "inhibit_all_warnings": false,
  113. "warn_on_various_unused_elements": false,
  114. "warn_on_uninitialized_variables": false,
  115. "enable_all_common_warnings": false,
  116. "enable_extra_warnings": false,
  117. "warn_on_undeclared_global_function": false,
  118. "warn_on_implicit_conversions": false,
  119. "warn_if_pointer_arthmetic": false,
  120. "warn_if_padding_is_included": false,
  121. "warn_if_shadowed_variable": false,
  122. "warn_if_suspicious_logical_ops": false,
  123. "warn_if_struct_is_returned": false,
  124. "warn_if_floats_are_compared_as_equal": false,
  125. "generate_errors_instead_of_warnings": false,
  126. "other_warning_flags": ""
  127. },
  128. "debugging": {
  129. "debug_level": "default",
  130. "debug_format": "default",
  131. "generate_prof_information": false,
  132. "generate_gprof_information": false,
  133. "other_debugging_flags": ""
  134. },
  135. "assembler": {
  136. "preprocessor": {
  137. "use_preprocessor": true,
  138. "do_not_search_system_directories": false,
  139. "preprocess_only": false,
  140. "defined_symbols": [],
  141. "undefined_symbols": []
  142. },
  143. "includes": {
  144. "include_paths": [],
  145. "include_system_paths": [],
  146. "include_files": []
  147. },
  148. "other_warning_flags": "",
  149. "miscellaneous": {
  150. "assembler_flags": [],
  151. "generate_assembler_listing": false,
  152. "save_temporary_files": false,
  153. "verbose": false,
  154. "other_assembler_flags": ""
  155. }
  156. },
  157. "ccompiler": {
  158. "preprocessor": {
  159. "do_not_search_system_directories": false,
  160. "preprocess_only": false,
  161. "defined_symbols": [
  162. "DEBUG=DEBUG_UART3",
  163. "WCHBLE_ROM=1",
  164. "CH32V20x_D8W",
  165. "CLK_OSC32K=0"
  166. ],
  167. "undefined_symbols": []
  168. },
  169. "includes": {
  170. "include_paths": [
  171. "${project}/SRC/Core",
  172. "${project}/Startup",
  173. "${project}/components/led",
  174. "${project}/components/action",
  175. "${project}/components/electlock",
  176. "${project}/components/config",
  177. "${project}/components/tools",
  178. "${project}/components/can",
  179. "${project}/components/Lib",
  180. "${project}/SRC/Debug",
  181. "${project}/SRC/Peripheral/inc",
  182. "${project}/User/include",
  183. "${project}/Profile/include",
  184. "${project}/HAL/include",
  185. "${project}/LIB",
  186. "${project}/components/can",
  187. "${project}/User/app_drv_fifo",
  188. "${project}/components/charge",
  189. "${project}/components/nfc",
  190. "${project}/components",
  191. "${project}/components/ws2812b"
  192. ],
  193. "include_system_paths": [],
  194. "include_files": []
  195. },
  196. "optimization": {
  197. "language_standard": "gnu99",
  198. "other_optimization_flags": ""
  199. },
  200. "warnings": {
  201. "warn_if_a_global_function_has_no_prototype": false,
  202. "warn_if_a_function_has_no_arg_type": false,
  203. "warn_if_wrong_cast": false,
  204. "other_warning_flags": ""
  205. },
  206. "miscellaneous": {
  207. "generate_assembler_listing": false,
  208. "save_temporary_files": false,
  209. "verbose": false,
  210. "other_compiler_flags": ""
  211. }
  212. },
  213. "cppcompiler": {
  214. "preprocessor": {
  215. "do_not_search_system_directories": false,
  216. "do_not_search_system_cpp_directories": false,
  217. "preprocess_only": false,
  218. "defined_symbols": [],
  219. "undefined_symbols": []
  220. },
  221. "includes": {
  222. "include_paths": [],
  223. "include_system_paths": [],
  224. "include_files": []
  225. },
  226. "optimization": {
  227. "cpp_language_standard": "gnucpp11",
  228. "abi_version": "0",
  229. "do_not_use_exceptions": false,
  230. "do_not_use_rtti": false,
  231. "do_not_use__cxa_atexit": false,
  232. "do_not_use_thread_safe_statics": false,
  233. "other_optimization_flags": ""
  234. },
  235. "warnings": {
  236. "warn_on_abi_violations": false,
  237. "warn_on_class_privacy": false,
  238. "warn_on_no_except_expressions": false,
  239. "warn_on_virtual_destructors": false,
  240. "warn_on_uncast_null": false,
  241. "warn_on_sign_promotion": false,
  242. "warn_about_effictive_cpp_violcations": false,
  243. "other_warning_flags": ""
  244. },
  245. "miscellaneous": {
  246. "generate_assembler_listing": false,
  247. "save_temporary_files": false,
  248. "verbose": false,
  249. "other_compiler_flags": ""
  250. }
  251. },
  252. "clinker": {
  253. "general": {
  254. "scriptFiles": [
  255. "${project}/Ld/Link.ld"
  256. ],
  257. "do_not_use_standard_start_files": true,
  258. "do_not_use_default_libraries": false,
  259. "no_startup_or_default_libs": false,
  260. "remove_unused_sections": true,
  261. "print_removed_sections": false,
  262. "omit_all_symbol_information": false
  263. },
  264. "libraries": {
  265. "libraries": [
  266. "m",
  267. "transcode"
  268. ],
  269. "library_search_path": [
  270. "../",
  271. "${project}/components/Lib",
  272. "${project}/LIB"
  273. ]
  274. },
  275. "miscellaneous": {
  276. "picolibc": "disabled",
  277. "linker_flags": [
  278. "--print-memory-usage"
  279. ],
  280. "other_objects": [],
  281. "generate_map": "\"${BuildArtifactFileBaseName}.map\"",
  282. "cross_reference": false,
  283. "print_link_map": false,
  284. "use_newlib_nano": true,
  285. "use_float_with_nano_printf": true,
  286. "use_float_with_nano_scanf": true,
  287. "do_not_use_syscalls": true,
  288. "verbose": false,
  289. "use_wch_printffloat": false,
  290. "use_wch_printf": false,
  291. "use_iqmath": true,
  292. "other_linker_flags": ""
  293. }
  294. },
  295. "cpplinker": {
  296. "general": {
  297. "scriptFiles": [
  298. "${project}/Ld/Link.ld"
  299. ],
  300. "do_not_use_standard_start_files": true,
  301. "do_not_use_default_libraries": false,
  302. "no_startup_or_default_libs": false,
  303. "remove_unused_sections": true,
  304. "print_removed_sections": false,
  305. "omit_all_symbol_information": false
  306. },
  307. "libraries": {
  308. "libraries": [
  309. "m",
  310. "transcode"
  311. ],
  312. "library_search_path": [
  313. "../",
  314. "${project}/components/Lib",
  315. "${project}/LIB"
  316. ]
  317. },
  318. "miscellaneous": {
  319. "picolibc": "disabled",
  320. "linker_flags": [
  321. "--print-memory-usage"
  322. ],
  323. "other_objects": [],
  324. "generate_map": "\"${BuildArtifactFileBaseName}.map\"",
  325. "cross_reference": false,
  326. "print_link_map": false,
  327. "use_newlib_nano": true,
  328. "use_float_with_nano_printf": true,
  329. "use_float_with_nano_scanf": true,
  330. "do_not_use_syscalls": true,
  331. "verbose": false,
  332. "use_wch_printffloat": false,
  333. "use_wch_printf": false,
  334. "use_iqmath": true,
  335. "other_linker_flags": ""
  336. }
  337. },
  338. "archiver": {
  339. "archiver_flags": "-r"
  340. },
  341. "createFlash": {
  342. "enabled": true,
  343. "outputFileFormat": "ihexAndbinary",
  344. "copy_only_section_text": false,
  345. "copy_only_section_data": false,
  346. "copy_only_sections": [],
  347. "other_flags": ""
  348. },
  349. "createList": {
  350. "enabled": true,
  351. "display_source": true,
  352. "display_all_headers": true,
  353. "demangle_names": true,
  354. "display_debug_info": false,
  355. "disassemble": false,
  356. "display_file_headers": false,
  357. "display_line_numbers": true,
  358. "display_relocation_info": false,
  359. "display_symbols": false,
  360. "wide_lines": true,
  361. "other_flags": ""
  362. },
  363. "printSize": {
  364. "enabled": true,
  365. "size_format": "berkeley",
  366. "hex": false,
  367. "show_totals": false,
  368. "other_flags": ""
  369. },
  370. "riscvTargetProcessor": {
  371. "architecture": "rv32i",
  372. "multiply_extension": true,
  373. "atomic_extension": true,
  374. "floating_point": "none",
  375. "compressed_extension": true,
  376. "extra_compressed_extension": true,
  377. "bit_extension": false,
  378. "multiplication_subset_of_the_M_extension": false,
  379. "integer_ABI": "ilp32",
  380. "floating_point_ABI": "none",
  381. "tuning": "default",
  382. "code_model": "any",
  383. "small_data_limit": 8,
  384. "align": "default",
  385. "save_restore": false,
  386. "other_target_flags": ""
  387. },
  388. "component_toolchain": "${WCH:Toolchain:GCC8}",
  389. "name": "obj",
  390. "configVariables": []
  391. }
  392. ]
  393. },
  394. "flashConfig": {
  395. "mcutype": "CH32V20x",
  396. "address": "0x08005000",
  397. "target_path": "obj\\mainboard.hex",
  398. "clkSpeed": "High",
  399. "debug_interface_mode": "",
  400. "erase": false,
  401. "program": true,
  402. "verify": true,
  403. "reset": true,
  404. "sdiPrintf": false,
  405. "disablepowerout": false,
  406. "clearcodeflash": false,
  407. "disablecodeprotect": false,
  408. "exepath": "",
  409. "exearguments": ""
  410. },
  411. "debugConfigurations": {
  412. "openOCDCfg": {
  413. "useLocalOpenOCD": true,
  414. "executable": "${WCH:OpenOCD:default}",
  415. "gdbport": 3333,
  416. "telnetport": 4444,
  417. "tclport": 6666,
  418. "configOptions": [
  419. "-f \"${WCH:OpenOCD:default}/bin/wch-riscv.cfg\""
  420. ],
  421. "host": "localhost",
  422. "port": 3333,
  423. "skipDownloadBeforeDebug": false,
  424. "enablePageEraser": false,
  425. "enableNoZeroWaitingAreaFlash": false
  426. },
  427. "gdbCfg": {
  428. "executable": "${WCH:Toolchain:GCC8}",
  429. "options": [],
  430. "commands": [
  431. "set mem inaccessible-by-default off",
  432. "set architecture riscv:rv32",
  433. "set remotetimeout unlimited",
  434. "set disassembler-options xw"
  435. ]
  436. },
  437. "startup": {
  438. "initCommands": {
  439. "initReset": true,
  440. "initResetType": "init",
  441. "additionalCommands": [],
  442. "armSemihosting": false,
  443. "armSemihosting_old": false
  444. },
  445. "loadedFiles": {
  446. "loadSymbols": true,
  447. "useProjBinaryForSymbols": true,
  448. "useFileForSymbols": false,
  449. "symbolFile": "",
  450. "symbolFileOffset": "",
  451. "loadImage": true,
  452. "useProjBinaryForImage": true,
  453. "useFileForImage": false,
  454. "executableFile": "",
  455. "executableFileOffset": ""
  456. },
  457. "runCommands": {
  458. "runReset": true,
  459. "runResetType": "halt",
  460. "additionalCommands": [],
  461. "setBreakAt": "handle_reset",
  462. "continue": true,
  463. "setBreak": true,
  464. "setProgramCounter": false,
  465. "setProgramCounterAddress": ""
  466. },
  467. "debugInRAM": false
  468. },
  469. "svdpath": null,
  470. "output": {
  471. "showDebugGDBTrace": true,
  472. "saveDebugOutputToFile": false,
  473. "showDebugOutputTimestamps": true
  474. },
  475. "reserve": {
  476. "PROGRAM_NAME": "obj/mainboard.elf",
  477. "PROJECT_ATTR": "mainboard",
  478. "PROJECT_BUILD_CONFIG_AUTO_ATTR": true,
  479. "PROJECT_BUILD_CONFIG_ID_ATTR": "",
  480. "ATTR_BUILD_BEFORE_LAUNCH_ATTR": 2,
  481. "GdbServerAllocateConsole": true,
  482. "GdbServerAllocateTelnetConsole": false,
  483. "StartGdbCLient": true,
  484. "UPDATE_THREADLIST_ON_SUSPEND": false
  485. }
  486. }
  487. }