GUI Guider - Memory Overflow when Flashing 16-bit Appliance Demo on RT1170 evkb

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

GUI Guider - Memory Overflow when Flashing 16-bit Appliance Demo on RT1170 evkb

547 Views
migb2720
NXP Employee
NXP Employee

id:GUI-Guider Environment

• Tool: GUI Guider 1.10.1

• Target board: RT1170-EVKB, RK055HDMIPI4M 720x1280 MIPI panel

• Graphics library: LVGL8

• Working variant: Coffee Pour demo (fully working)    

• Appliance demo (8-bit RGB332 works)

 

Failing variant:    

• Appliance demo (16-bit RGB565)

Issue Description

When attempting to build and flash the 16-bit (RGB565) version of the Appliance demo, the build fails at the linker stage due to a memory overflow in .bss section.

Error Details

• Section overflow: .bss does not fit in m_data

• Overflow size: ~5.13 MB (≈ 5,382,464 bytes)

The issue appears to be related to increased memory usage when moving from 8-bit to 16-bit colour depth:

Framebuffer size likely doubles

LVGL draw buffers + possible double buffering increase .bss usage

Combined memory exceeds available m_data region defined in linker script

ASK: Looking for guidance on whether this configuration is expected to work or if there are recommended memory optimizations for LVGL in GUI Guider.

0 Kudos
Reply
1 Reply

490 Views
zongchunyu
NXP Employee
NXP Employee

Hello migb2720,

 

For the RT1170EVKB, all image resources are eventually linked to SDRAM. The issue you encountered is caused by insufficient SDRAM space. You can adjust the application heap size to free up more available SDRAM space. May I ask which toolchain you are using?

 

Best Regards

Zongchun

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2386582%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EGUI%20Guider%20-%20Memory%20Overflow%20when%20Flashing%2016-bit%20Appliance%20Demo%20on%20RT1170%20evkb%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2386582%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3Eid%3AGUI-Guider%20Environment%3C%2FP%3E%0A%3CP%3E%E2%80%A2%20Tool%3A%20GUI%20Guider%201.10.1%3C%2FP%3E%0A%3CP%3E%E2%80%A2%20Target%20board%3A%20RT1170-EVKB%2C%26nbsp%3BRK055HDMIPI4M%20720x1280%20MIPI%20panel%3C%2FP%3E%0A%3CP%3E%E2%80%A2%20Graphics%20library%3A%20LVGL8%3C%2FP%3E%0A%3CP%3E%E2%80%A2%20Working%20variant%3A%20Coffee%20Pour%20demo%20(fully%20working)%20%26nbsp%3B%20%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%E2%80%A2%20Appliance%20demo%20(8-bit%20RGB332%20works)%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EFailing%20variant%3A%20%26nbsp%3B%20%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%E2%80%A2%20Appliance%20demo%20(16-bit%20RGB565)%3C%2FP%3E%0A%3CP%3EIssue%20Description%3C%2FP%3E%0A%3CP%3EWhen%20attempting%20to%20build%20and%20flash%20the%2016-bit%20(RGB565)%20version%20of%20the%20Appliance%20demo%2C%20the%20build%20fails%20at%20the%20linker%20stage%20due%20to%20a%20memory%20overflow%20in%20.bss%20section.%3C%2FP%3E%0A%3CP%3EError%20Details%3C%2FP%3E%0A%3CP%3E%E2%80%A2%20Section%20overflow%3A%20.bss%20does%20not%20fit%20in%20m_data%3C%2FP%3E%0A%3CP%3E%E2%80%A2%20Overflow%20size%3A%20~5.13%20MB%20(%E2%89%88%205%2C382%2C464%20bytes)%3C%2FP%3E%0A%3CP%3EThe%20issue%20appears%20to%20be%20related%20to%20increased%20memory%20usage%20when%20moving%20from%208-bit%20to%2016-bit%20colour%20depth%3A%3C%2FP%3E%0A%3CP%3EFramebuffer%20size%20likely%20doubles%3C%2FP%3E%0A%3CP%3ELVGL%20draw%20buffers%20%2B%20possible%20double%20buffering%20increase%20.bss%20usage%3C%2FP%3E%0A%3CP%3ECombined%20memory%20exceeds%20available%20m_data%20region%20defined%20in%20linker%20script%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EASK%3A%20Looking%20for%20guidance%20on%20whether%20this%20configuration%20is%20expected%20to%20work%20or%20if%20there%20are%20recommended%20memory%20optimizations%20for%20LVGL%20in%20GUI%20Guider.%3C%2FSTRONG%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2386651%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20GUI%20Guider%20-%20Memory%20Overflow%20when%20Flashing%2016-bit%20Appliance%20Demo%20on%20RT1170%20evkb%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2386651%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%26nbsp%3B%3CA%20id%3D%22link_5%22%20class%3D%22lia-link-navigation%20lia-page-link%20lia-user-name-link%22%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F212740%22%20aria-label%3D%22View%20Profile%20of%20migb2720%22%20target%3D%22_blank%22%3E%3CSPAN%20class%3D%22%22%3Emigb2720%3C%2FSPAN%3E%3C%2FA%3E%2C%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EFor%20the%20RT1170EVKB%2C%20all%20image%20resources%20are%20eventually%20linked%20to%20SDRAM.%20The%20issue%20you%20encountered%20is%20caused%20by%20insufficient%20SDRAM%20space.%20You%20can%20adjust%20the%20application%20heap%20size%20to%20free%20up%20more%20available%20SDRAM%20space.%20May%20I%20ask%20which%20toolchain%20you%20are%20using%3F%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EBest%20Regards%3C%2FP%3E%0A%3CP%3EZongchun%3C%2FP%3E%3C%2FLINGO-BODY%3E