usb code run on sdram failed in rt1170

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

usb code run on sdram failed in rt1170

479 Views
jingyangxie
Contributor V

I have a imxrt1170 board, want to run code on sdram, when I debug with iar 9.30,the usb does not work correctly , but when I debug the code on ram , it works fine. the two link files are attachments

0 Kudos
4 Replies

468 Views
jingyangxie
Contributor V

Hi,

I've follow these posts, and add definition DATA_SECTION_IS_CACHEABLE=1,  and the link file set the noncache region: 

jingyangxie_0-1668413121856.png

after these ,the usb code debug on sdram still can not work

0 Kudos

465 Views
jingpan
NXP TechSupport
NXP TechSupport

Hi @jingyangxie ,

Most of these kinds of problem is caused by cache. Please check carefully if the buffers used by both CPU and USB DMA are allocated in noncacheable area. I also suggest to put heap and stack in noncacheable area too.

 

Regards,

jing

0 Kudos

458 Views
jingyangxie
Contributor V

ok, I will check it carefully.thanks

0 Kudos