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。


問題已經(jīng)解決:IDE更換到1.8編譯一切正常。1.9修改代碼精簡ram后編譯能通過,下載后跑不起來。


只有登錄才能回復(fù),可以選擇微信賬號登錄

国产91精品新入口,国产成人综合网在线播放,九热这里只有精品,本道在线观看,美女视频a美女视频,韩国美女激情视频,日本美女pvp视频