CH32V20xEVT移植LVGL编译问题

使用IDE:MounRiver Studio,移植LVGL。“Clean Project”出现如下提示:

=====================================================================

13:31:17 **** Clean-only build of configuration obj for project CH32V20x_LVGL ****

make -j24 clean?

rm -rf? ./User/ch32v20x_it.o ./User/main.o ./User/system_ch32v20x.o? ./Startup/startup_ch32v20x_D6.o? ./Peripheral/src/ch32v20x_adc.o ./Peripheral/src/ch32v20x_bkp.o ./Peripheral/src/ch32v20x_can.o?

/*

太长,略

*/

?./LVGL/demos/benchmark/lv_demo_benchmark.d ./LCD/flash.d ./LCD/lcd.d ./LCD/spi.d ./Debug/debug.d ./Core/core_riscv.d CH32V20x_LVGL.elf, ...) failed.

make (e=87): 参数错误。


make: [makefile:190: clean] Error 87 (ignored)


13:31:19 Build Finished. 0 errors, 0 warnings. (took 1s.926ms)

=====================================================================


用Rebuild编译如下:

=====================================================================


13:33:21 **** Build of configuration obj for project CH32V20x_LVGL ****

make -j24 all?

Memory region? ? ? ? ?Used Size? Region Size? %age Used

? ? ? ? ? ?FLASH:? ? ? 180164 B? ? ? ?128 KB? ? 137.45%


:/mounriver/mounriver_studio/toolchain/risc-v embedded gcc/bin/../lib/gcc/riscv-none-embed/8.2.0/../../../../riscv-none-embed/bin/ld.exe: CH32V20x_LVGL.elf section `.text' will not fit in region `FLASH'

d:/mounriver/mounriver_studio/toolchain/risc-v embedded gcc/bin/../lib/gcc/riscv-none-embed/8.2.0/../../../../riscv-none-embed/bin/ld.exe: region `FLASH' overflowed by 49092 bytes



collect2.exe: error: ld returned 1 exit status

? ? ? ? ? ? ?RAM:? ? ? ?30800 B? ? ? ? 64 KB? ? ?47.00%

make: *** [makefile:177: CH32V20x_LVGL.elf] Error 1


13:33:33 Build Failed. 3 errors, 0 warnings. (took 12s.359ms)

=====================================================================


在移植前资源使用情况如下:

=====================================================================

13:53:22 **** Build of configuration obj for project CH32V20x_LVGL ****

make -j24 all?

Memory region? ? ? ? ?Used Size? Region Size? %age Used

? ? ? ? ? ?FLASH:? ? ? ? 9028 B? ? ? ?128 KB? ? ? 6.89%

? ? ? ? ? ? ?RAM:? ? ? ? 3248 B? ? ? ? 64 KB? ? ? 4.96%

? ?text ? ?data ? ? bss ? ? dec ? ? hex filename

? ?8876 ? ? 152 ? ?3096 ? 12124 ? ?2f5c CH32V20x_LVGL.elf


13:53:28 Build Finished. 0 errors, 0 warnings. (took 5s.768ms)

=====================================================================


另外,Link.ld配置如下

=====================================================================

MEMORY

{??

/* CH32V20x_D6 - CH32V203F6-CH32V203G6-CH32V203K6-CH32V203C6 */

/*

FLASH (rx) : ORIGIN = 0x00000000, LENGTH = 32K

RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 10K

*/?


/* CH32V20x_D6 - CH32V203K8-CH32V203C8-CH32V203G8-CH32V203F8 */

/*

FLASH (rx) : ORIGIN = 0x00000000, LENGTH = 64K

RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 20K

*/?

??

/* CH32V20x_D8 - CH32V203RB

? ?CH32V20x_D8W - CH32V208x

? ?FLASH + RAM supports the following configuration

? ?FLASH-128K + RAM-64K

? ?FLASH-144K + RAM-48K

? ?FLASH-160K + RAM-32K


FLASH (rx) : ORIGIN = 0x00000000, LENGTH = 160K

RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 32K

*/

FLASH (rx) : ORIGIN = 0x00000000, LENGTH = 128K

RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 64K

}

=====================================================================


请问是IMounRiver Studio 哪里没配置好吗?问题出在哪,知道的大佬指教下,谢谢


为嘛限制附件大小,鸡肋!!!想传下问题工程也传不了。可以发消息找我要。问题如上反馈


您好,根据报错信息,应该是FLASH溢出了,生成的固件太大了,可能LVGL的库太大,导致生产编译后生成的固件太大,超过FLASH的存储大小了。


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