Hi @jingyangxie ,
Please refer to these post.
https://community.nxp.com/t5/i-MX-RT-Knowledge-Base/Using-NonCached-Memory-on-i-MXRT/ta-p/1183369
https://community.nxp.com/t5/i-MX-RT/USB-Host-enumeration-fails/m-p/1436138
https://community.nxp.com/t5/MCUXpresso-IDE/Running-and-debugging-program-in-SDRAM/m-p/1405167
Regards,
Jing
Hi,
I've follow these posts, and add definition DATA_SECTION_IS_CACHEABLE=1, and the link file set the noncache region:
after these ,the usb code debug on sdram still can not work
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
ok, I will check it carefully.thanks