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

10 lines
547 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 添加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]]