diff --git a/MCU/WCH-南京沁恒/MounRiver配置.md b/MCU/WCH-南京沁恒/MounRiver配置.md index c5a8c2e..8f30019 100644 --- a/MCU/WCH-南京沁恒/MounRiver配置.md +++ b/MCU/WCH-南京沁恒/MounRiver配置.md @@ -4,4 +4,7 @@ 菜单位置: `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 \ No newline at end of file +`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]] \ No newline at end of file diff --git a/_resources/Pasted image 20241104090409.png b/_resources/Pasted image 20241104090409.png new file mode 100644 index 0000000..d6b77d3 Binary files /dev/null and b/_resources/Pasted image 20241104090409.png differ