[RT1166] Issue with moving data from SDRAM to ocram1/ocram2. #93982
Replies: 2 comments
-
Hi @JaagupAverin , |
Beta Was this translation helpful? Give feedback.
-
I believe your issue could be caused by an overflow of OCRAM1. From the image you provided from the RM, OCRAM1 with ECC enabled is 64KB. Zephyr Device tree currently thinks OCRAM1 is sized at 512KB (which is true for RT1170, but not for RT1160) I submitted a PR to address this at: #94363 My assumption based on the error provided is that the size of data is greater than 64KB. I'd recommend shifting the remaining data to DTCM and the other OCRAM regions. Alternatively, you could utilize the FlexRAM (512KB), although this will require some additional steps. These methods are covered in AN14579, depending on which direction you want to go. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello. We want to move data from sdram to dtcm and/or ocram.
What works
Moving data to dtcm with this overlay works:
What doesn't work
However, moving it to ocram does not work:
The application crashes early inside z_bss_zero():
The registers inside z_early_memset() appear okay:
i.e it is trying to set 0x40000 bytes at 0x20240000 to zero. As per zephyr.map, this is indeed the .nocache area. And as per RM this is a valid ocram1 region:

However from there it jumps into the fault handler. Register dump at this point:
What I've also tried
Question
Are ocram1/ocram2 even supported as
zephyr,sram
candidates? Nothing in the reference manual stands out to be that they shouldn't be.Thanks,
Jaagup
Beta Was this translation helpful? Give feedback.
All reactions