CH32V20xEVT移植LVGL編譯問題

使用IDE:MounRiver Studio,移植LVGL?!癈lean Project”出現(xiàn)如下提示:

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

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): 參數(shù)錯誤。


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 哪里沒配置好嗎?問題出在哪,知道的大佬指教下,謝謝


為嘛限制附件大小,雞肋?。?!想傳下問題工程也傳不了。可以發(fā)消息找我要。問題如上反饋


您好,根據(jù)報錯信息,應(yīng)該是FLASH溢出了,生成的固件太大了,可能LVGL的庫太大,導(dǎo)致生產(chǎn)編譯后生成的固件太大,超過FLASH的存儲大小了。


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

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