USB Host can not work when heap is on OCRAM

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

USB Host can not work when heap is on OCRAM

622 Views
cghxm1987
Contributor I

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?

0 Kudos
1 Reply

485 Views
jorge_a_vazquez
NXP Employee
NXP Employee

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:

K61 HS USB with cache enabled 

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!
-------------------------------------------------------------------------------

0 Kudos