546 B
546 B
添加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
,重新编译即可。
!