CH573F工程 MounRiver_Studio升级后编译不通过了

原来工程正常编译。升级1.80到1.91后编译报错。

09:39:41 **** Clean-only build of configuration obj for project CH573F_SWD_TOOL ****
make -j6 clean
rm -rf  ./src/Main.o ./src/SWD_flash.o ./src/app.o ./src/error.o ./src/file.o ./src/key.o  ./sfud_driver/src/sfud.o ./sfud_driver/src/sfud_sfdp.o  ./sfud_driver/port/sfud_port.o  ./hal_driver/ch57x_hal_spi.o  ./fatfs/option/cc936.o  ./fatfs/diskio.o ./fatfs/ff.o  ./ch573_usb_device_msc/ch573_usb_device_msc.o  ./algo/FT32F0xx_64.o  ./StdPeriphDriver/CH57x_clk.o ./StdPeriphDriver/CH57x_flash.o ./StdPeriphDriver/CH57x_gpio.o ./StdPeriphDriver/CH57x_pwm.o ./StdPeriphDriver/CH57x_pwr.o ./StdPeriphDriver/CH57x_spi0.o ./StdPeriphDriver/CH57x_sys.o ./StdPeriphDriver/CH57x_timer0.o ./StdPeriphDriver/CH57x_uart0.o ./StdPeriphDriver/CH57x_uart1.o ./StdPeriphDriver/CH57x_uart2.o ./StdPeriphDriver/CH57x_uart3.o ./StdPeriphDriver/CH57x_usbdev.o  ./Startup/startup_CH573.o  ./RVMSIS/core_riscv.o  ./OLED/IIC.o ./OLED/oled.o  ./DAP/Source/DAP.o ./DAP/Source/DAP_vendor.o ./DAP/Source/JTAG_DP.o ./DAP/Source/SWO.o ./DAP/Source/SW_DP.o ./DAP/Source/UART.o  ./DAP/swd_host.o  CH573F_SWD_TOOL.hex  CH573F_SWD_TOOL.lst  CH573F_SWD_TOOL.siz  ./Startup/startup_CH573.d  ./src/Main.d ./src/SWD_flash.d ./src/app.d ./src/error.d ./src/file.d ./src/key.d  ./sfud_driver/src/sfud.d ./sfud_driver/src/sfud_sfdp.d  ./sfud_driver/port/sfud_port.d  ./hal_driver/ch57x_hal_spi.d  ./fatfs/option/cc936.d  ./fatfs/diskio.d ./fatfs/ff.d  ./ch573_usb_device_msc/ch573_usb_device_msc.d  ./algo/FT32F0xx_64.d  ./StdPeriphDriver/CH57x_clk.d ./StdPeriphDriver/CH57x_flash.d ./StdPeriphDriver/CH57x_gpio.d ./StdPeriphDriver/CH57x_pwm.d ./StdPeriphDriver/CH57x_pwr.d ./StdPeriphDriver/CH57x_spi0.d ./StdPeriphDriver/CH57x_sys.d ./StdPeriphDriver/CH57x_timer0.d ./StdPeriphDriver/CH57x_uart0.d ./StdPeriphDriver/CH57x_uart1.d ./StdPeriphDriver/CH57x_uart2.d ./StdPeriphDriver/CH57x_uart3.d ./StdPeriphDriver/CH57x_usbdev.d  ./RVMSIS/core_riscv.d  ./OLED/IIC.d ./OLED/oled.d  ./DAP/Source/DAP.d ./DAP/Source/DAP_vendor.d ./DAP/Source/JTAG_DP.d ./DAP/Source/SWO.d ./DAP/Source/SW_DP.d ./DAP/Source/UART.d  ./DAP/swd_host.d  CH573F_SWD_TOOL.elf

09:39:42 Build Finished. 0 errors, 0 warnings. (took 987ms)

09:39:43 **** Build of configuration obj for project CH573F_SWD_TOOL ****
make -j6 all
../src/Main.c: In function 'oled_disp':
../src/Main.c:91:17: note: #pragma message: 舜丰
         #pragma message("xx")
                 ^~~~~~~
Memory region         Used Size  Region Size  %age Used
c:/mounriver/mounriver_studio/toolchain/risc-v embedded gcc/bin/../lib/gcc/riscv-none-embed/8.2.0/../../../../riscv-none-embed/bin/ld.exe: CH573F_SWD_TOOL.elf section `.bss' will not fit in region `RAM'
           FLASH:      221468 B       448 KB     48.28%
c:/mounriver/mounriver_studio/toolchain/risc-v embedded gcc/bin/../lib/gcc/riscv-none-embed/8.2.0/../../../../riscv-none-embed/bin/ld.exe: region `RAM' overflowed by 624 bytes
             RAM:       19056 B        18 KB    103.39%
collect2.exe: error: ld returned 1 exit status
make: *** [makefile:65: CH573F_SWD_TOOL.elf] Error 1

09:39:46 Build Failed. 3 errors, 0 warnings. (took 2s.878ms)

这不是RAM占用超了吗?


RAM超出范围,需要精简RAM。

或者可以选择CH592芯片,RAM26K。资源比573更多,pintopin。


问题已经解决:IDE更换到1.8编译一切正常。1.9修改代码精简ram后编译能通过,下载后跑不起来。


只有登录才能回复,可以选择微信账号登录