mainboard.wvproj 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480
  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. ],
  186. "include_system_paths": [],
  187. "include_files": []
  188. },
  189. "optimization": {
  190. "language_standard": "gnu99",
  191. "other_optimization_flags": ""
  192. },
  193. "warnings": {
  194. "warn_if_a_global_function_has_no_prototype": false,
  195. "warn_if_a_function_has_no_arg_type": false,
  196. "warn_if_wrong_cast": false,
  197. "other_warning_flags": ""
  198. },
  199. "miscellaneous": {
  200. "generate_assembler_listing": false,
  201. "save_temporary_files": false,
  202. "verbose": false,
  203. "other_compiler_flags": ""
  204. }
  205. },
  206. "cppcompiler": {
  207. "preprocessor": {
  208. "do_not_search_system_directories": false,
  209. "do_not_search_system_cpp_directories": false,
  210. "preprocess_only": false,
  211. "defined_symbols": [],
  212. "undefined_symbols": []
  213. },
  214. "includes": {
  215. "include_paths": [],
  216. "include_system_paths": [],
  217. "include_files": []
  218. },
  219. "optimization": {
  220. "cpp_language_standard": "gnucpp11",
  221. "abi_version": "0",
  222. "do_not_use_exceptions": false,
  223. "do_not_use_rtti": false,
  224. "do_not_use__cxa_atexit": false,
  225. "do_not_use_thread_safe_statics": false,
  226. "other_optimization_flags": ""
  227. },
  228. "warnings": {
  229. "warn_on_abi_violations": false,
  230. "warn_on_class_privacy": false,
  231. "warn_on_no_except_expressions": false,
  232. "warn_on_virtual_destructors": false,
  233. "warn_on_uncast_null": false,
  234. "warn_on_sign_promotion": false,
  235. "warn_about_effictive_cpp_violcations": false,
  236. "other_warning_flags": ""
  237. },
  238. "miscellaneous": {
  239. "generate_assembler_listing": false,
  240. "save_temporary_files": false,
  241. "verbose": false,
  242. "other_compiler_flags": ""
  243. }
  244. },
  245. "clinker": {
  246. "general": {
  247. "scriptFiles": [
  248. "${project}/Ld/Link.ld"
  249. ],
  250. "do_not_use_standard_start_files": true,
  251. "do_not_use_default_libraries": false,
  252. "no_startup_or_default_libs": false,
  253. "remove_unused_sections": true,
  254. "print_removed_sections": false,
  255. "omit_all_symbol_information": false
  256. },
  257. "libraries": {
  258. "libraries": [
  259. "m",
  260. "transcode"
  261. ],
  262. "library_search_path": [
  263. "../",
  264. "${project}/components/Lib",
  265. "${project}/LIB"
  266. ]
  267. },
  268. "miscellaneous": {
  269. "picolibc": "disabled",
  270. "linker_flags": [
  271. "--print-memory-usage"
  272. ],
  273. "other_objects": [],
  274. "generate_map": "\"${BuildArtifactFileBaseName}.map\"",
  275. "cross_reference": false,
  276. "print_link_map": false,
  277. "use_newlib_nano": true,
  278. "use_float_with_nano_printf": true,
  279. "use_float_with_nano_scanf": true,
  280. "do_not_use_syscalls": true,
  281. "verbose": false,
  282. "use_wch_printffloat": false,
  283. "use_wch_printf": false,
  284. "use_iqmath": true,
  285. "other_linker_flags": ""
  286. }
  287. },
  288. "cpplinker": {
  289. "general": {
  290. "scriptFiles": [
  291. "${project}/Ld/Link.ld"
  292. ],
  293. "do_not_use_standard_start_files": true,
  294. "do_not_use_default_libraries": false,
  295. "no_startup_or_default_libs": false,
  296. "remove_unused_sections": true,
  297. "print_removed_sections": false,
  298. "omit_all_symbol_information": false
  299. },
  300. "libraries": {
  301. "libraries": [
  302. "m",
  303. "transcode"
  304. ],
  305. "library_search_path": [
  306. "../",
  307. "${project}/components/Lib",
  308. "${project}/LIB"
  309. ]
  310. },
  311. "miscellaneous": {
  312. "picolibc": "disabled",
  313. "linker_flags": [
  314. "--print-memory-usage"
  315. ],
  316. "other_objects": [],
  317. "generate_map": "\"${BuildArtifactFileBaseName}.map\"",
  318. "cross_reference": false,
  319. "print_link_map": false,
  320. "use_newlib_nano": true,
  321. "use_float_with_nano_printf": true,
  322. "use_float_with_nano_scanf": true,
  323. "do_not_use_syscalls": true,
  324. "verbose": false,
  325. "use_wch_printffloat": false,
  326. "use_wch_printf": false,
  327. "use_iqmath": true,
  328. "other_linker_flags": ""
  329. }
  330. },
  331. "archiver": {
  332. "archiver_flags": "-r"
  333. },
  334. "createFlash": {
  335. "enabled": true,
  336. "outputFileFormat": "ihexAndbinary",
  337. "copy_only_section_text": false,
  338. "copy_only_section_data": false,
  339. "copy_only_sections": [],
  340. "other_flags": ""
  341. },
  342. "createList": {
  343. "enabled": true,
  344. "display_source": true,
  345. "display_all_headers": true,
  346. "demangle_names": true,
  347. "display_debug_info": false,
  348. "disassemble": false,
  349. "display_file_headers": false,
  350. "display_line_numbers": true,
  351. "display_relocation_info": false,
  352. "display_symbols": false,
  353. "wide_lines": true,
  354. "other_flags": ""
  355. },
  356. "printSize": {
  357. "enabled": true,
  358. "size_format": "berkeley",
  359. "hex": false,
  360. "show_totals": false,
  361. "other_flags": ""
  362. },
  363. "riscvTargetProcessor": {
  364. "architecture": "rv32i",
  365. "multiply_extension": true,
  366. "atomic_extension": true,
  367. "floating_point": "none",
  368. "compressed_extension": true,
  369. "extra_compressed_extension": true,
  370. "bit_extension": false,
  371. "multiplication_subset_of_the_M_extension": false,
  372. "integer_ABI": "ilp32",
  373. "floating_point_ABI": "none",
  374. "tuning": "default",
  375. "code_model": "any",
  376. "small_data_limit": 8,
  377. "align": "default",
  378. "save_restore": false,
  379. "other_target_flags": ""
  380. },
  381. "component_toolchain": "${WCH:Toolchain:GCC8}",
  382. "name": "obj",
  383. "configVariables": []
  384. }
  385. ]
  386. },
  387. "flashConfig": {
  388. "mcutype": "CH32V20x",
  389. "address": "0x08005000",
  390. "target_path": "obj\\mainboard.hex",
  391. "clkSpeed": "High",
  392. "debug_interface_mode": "",
  393. "erase": false,
  394. "program": true,
  395. "verify": true,
  396. "reset": true,
  397. "sdiPrintf": false,
  398. "disablepowerout": false,
  399. "clearcodeflash": false,
  400. "disablecodeprotect": false,
  401. "exepath": "",
  402. "exearguments": ""
  403. },
  404. "debugConfigurations": {
  405. "openOCDCfg": {
  406. "useLocalOpenOCD": true,
  407. "executable": "${WCH:OpenOCD:default}",
  408. "gdbport": 3333,
  409. "telnetport": 4444,
  410. "tclport": 6666,
  411. "configOptions": [
  412. "-f \"${WCH:OpenOCD:default}/bin/wch-riscv.cfg\""
  413. ],
  414. "host": "localhost",
  415. "port": 3333,
  416. "skipDownloadBeforeDebug": false,
  417. "enablePageEraser": false,
  418. "enableNoZeroWaitingAreaFlash": false
  419. },
  420. "gdbCfg": {
  421. "executable": "${WCH:Toolchain:GCC8}",
  422. "options": [],
  423. "commands": [
  424. "set mem inaccessible-by-default off",
  425. "set architecture riscv:rv32",
  426. "set remotetimeout unlimited",
  427. "set disassembler-options xw"
  428. ]
  429. },
  430. "startup": {
  431. "initCommands": {
  432. "initReset": true,
  433. "initResetType": "init",
  434. "additionalCommands": [],
  435. "armSemihosting": false,
  436. "armSemihosting_old": false
  437. },
  438. "loadedFiles": {
  439. "loadSymbols": true,
  440. "useProjBinaryForSymbols": true,
  441. "useFileForSymbols": false,
  442. "symbolFile": "",
  443. "symbolFileOffset": "",
  444. "loadImage": true,
  445. "useProjBinaryForImage": true,
  446. "useFileForImage": false,
  447. "executableFile": "",
  448. "executableFileOffset": ""
  449. },
  450. "runCommands": {
  451. "runReset": true,
  452. "runResetType": "halt",
  453. "additionalCommands": [],
  454. "setBreakAt": "handle_reset",
  455. "continue": true,
  456. "setBreak": true,
  457. "setProgramCounter": false,
  458. "setProgramCounterAddress": ""
  459. },
  460. "debugInRAM": false
  461. },
  462. "svdpath": null,
  463. "output": {
  464. "showDebugGDBTrace": true,
  465. "saveDebugOutputToFile": false,
  466. "showDebugOutputTimestamps": true
  467. },
  468. "reserve": {
  469. "PROGRAM_NAME": "obj/mainboard.elf",
  470. "PROJECT_ATTR": "mainboard",
  471. "PROJECT_BUILD_CONFIG_AUTO_ATTR": true,
  472. "PROJECT_BUILD_CONFIG_ID_ATTR": "",
  473. "ATTR_BUILD_BEFORE_LAUNCH_ATTR": 2,
  474. "GdbServerAllocateConsole": true,
  475. "GdbServerAllocateTelnetConsole": false,
  476. "StartGdbCLient": true,
  477. "UPDATE_THREADLIST_ON_SUSPEND": false
  478. }
  479. }
  480. }