LVGL example project with IMXRT1060 internal RAM only

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

LVGL example project with IMXRT1060 internal RAM only

Jump to solution
564 Views
patriciocohen
Contributor IV

Hi,

My custom board has no external RAM. We need to design a simple GUI for our application, so we think that the internal memory of the IMXRT1062CVJ5B could be enough for this purpose.

I'm trying with the lvgl demo widgets bm example.

I modified the memory details as follows:

patriciocohen_0-1680395138215.png

The NCACHE_REGION now is A0000 bytes in size, taking this space from the OCRAM section.

Because the original SRAM_OC section was C0000, now after the update is 20000 in size.

Is this correct?

The program builds correctly and it is downloaded ok to my board, however execution stops at the following line:

patriciocohen_1-1680395332524.png

Is this because my memory config is wrong?

If the program cannot be fitted inside internal RAM, what can I do to reduce its size?

Can you please point to an example that doesn't use external board SDRAM?

Best regards,

Patricio

 

 

Tags (1)
0 Kudos
1 Solution
525 Views
jingpan
NXP TechSupport
NXP TechSupport

Hi @patriciocohen ,

This is because the MPU region size should be 2^N, 5<=N<=32, region base should be multiples of size.

From 0x20220000, the maximum noncacheable region size can be 128k. From 0x20200000, the maximum size can be 512k.

If you need a 640k noncacheable space, you can apply two continuous space, the first one from 0x20200000 to 0x20280000, that is 512k. The second one from 0x20280000 to 0x202a0000, that is 128k. You must add this setting into BOARD_ConfigMPU().

 

Regards,

Jing

View solution in original post

2 Replies
522 Views
patriciocohen
Contributor IV

Thank you Jing

0 Kudos
526 Views
jingpan
NXP TechSupport
NXP TechSupport

Hi @patriciocohen ,

This is because the MPU region size should be 2^N, 5<=N<=32, region base should be multiples of size.

From 0x20220000, the maximum noncacheable region size can be 128k. From 0x20200000, the maximum size can be 512k.

If you need a 640k noncacheable space, you can apply two continuous space, the first one from 0x20200000 to 0x20280000, that is 512k. The second one from 0x20280000 to 0x202a0000, that is 128k. You must add this setting into BOARD_ConfigMPU().

 

Regards,

Jing