obsidian-notes/MCU/WCH-南京沁恒/MounRiver配置.md
2024-11-04 09:05:37 +08:00

546 B
Raw Blame History

添加bin输出功能

riscv-none-embed-objcopy -O binary "${ProjName}.elf" "${ProjName}.bin"

菜单位置: C/C++ Build -> Settings -> Tool Settings ->GNU RISC-V Cross Create Flash Image -> General Output file format (-O)选项选择Intel HEX (.hex) & Raw binary (.bin)即可同时输出.bin和.Hex

显示MCU资源占用

C/C++ Build -> Settings -> Tool Settings ->GNU RISC-V Cross C Linker ->Miscellaneous -> Linker flags中新建,填入--print-memory-usage,重新编译即可。 !Pasted image 20241104090409.png