usb_host_msd_fatfs(SDK_2.5.0_MIMXRT1052xxxxB).When I put the heap on DTCM.It's OK.But when I put the heap on OCRAM.It doesn't work.How can I solve this problem?
Hi xm hu
Please disable the cache in the example code where you use the OCRAM:
SCB_DisableICache();
SCB_DisableDCache();
you can find more information in the post:
It is for a Kinetis device, but you can apply the same concept in the RT device.
Hope this information helps.
Have a great day,
TIC
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
-------------------------------------------------------------------------------