usb code run on sdram failed in rt1170

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

usb code run on sdram failed in rt1170

658件の閲覧回数
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 返答(返信)

647件の閲覧回数
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 件の賞賛

644件の閲覧回数
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 件の賞賛

637件の閲覧回数
jingyangxie
Contributor V

ok, I will check it carefully.thanks

0 件の賞賛