[RT1166] Issue with moving data from SDRAM to ocram1/ocram2. #93982
-
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
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.
@JaagupAverin
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.