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:
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:
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
Solved! Go to Solution.
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
Thank you Jing
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