USB Host can not work when heap is on OCRAM

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

USB Host can not work when heap is on OCRAM

1,275件の閲覧回数
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 件の賞賛
返信
1 返信

1,138件の閲覧回数
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 件の賞賛
返信