mainboard.wvproj 13 KB

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