usb code run on sdram failed in rt1170

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

usb code run on sdram failed in rt1170

1,098 次查看
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 项奖励
回复
4 回复数

1,087 次查看
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 项奖励
回复

1,084 次查看
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 项奖励
回复

1,077 次查看
jingyangxie
Contributor V

ok, I will check it carefully.thanks

0 项奖励
回复