Description
I am trying to create bare minimum compile for MCUBoot and lvgl on nRF52832 using Zephyr but am getting RAM and Flash overflows. Is this just impossible?
I got MCUBoot working and this was the usage:
Memory region Used Size Region Size %age Used
FLASH: 31712 B 48 KB 64.52%
RAM: 22376 B 64 KB 34.14%
IDT_LIST: 0 GB 32 KB 0.00%
when I added this to the prj.conf
CONFIG_LVGL=y
CONFIG_LV_Z_MEM_POOL_SIZE=4096
CONFIG_LV_USE_LOG=y
CONFIG_LV_MEM_CUSTOM=y
CONFIG_LV_USE_LABEL=y
CONFIG_LV_USE_BTN=y
CONFIG_LV_USE_IMG=y
CONFIG_LV_FONT_DEFAULT_MONTSERRAT_14=y
CONFIG_LV_COLOR_16_SWAP=y
CONFIG_LV_COLOR_DEPTH_16=y
and I get this error:
/opt/nordic/ncs/toolchains/580e4ef81c/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd: region `FLASH' overflowed by 120265 bytes
/opt/nordic/ncs/toolchains/580e4ef81c/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd: region `RAM' overflowed by 15672 bytes
Based on my calcuations:
Used Size Region Size % Used Size Overflow Used Sized Diff
FLASH 175573 237056 74.06% 357321 120265 181748
RAM 51344 65536 78.34% 81208 15672 29864
In a version without MCUBoot focused on getting lvgl working this was the output:
Memory region Used Size Region Size %age Used
FLASH: 338261 B 512 KB 64.52%
RAM: 62700 B 64 KB 95.67%
IDT_LIST: 0 GB 32 KB 0.00%
Is there any way to get this down?
What MCU/Processor/Board and compiler are you using?
I am using a nrf52832 and Zephyr and nRF Connect for Visual Studio Code
What LVGL version are you using?
8.3
What do you want to achieve?
Compile MCUBoot and LVGL
This is the RAM memory report for the MCUBoot build
This is the RAM memory report for the lvgl build: