S32K344 SPI+DMA send data error

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

S32K344 SPI+DMA send data error

跳至解决方案
604 次查看
_tian_10
Contributor I

Hi all!

      Recently also read our forum posts, RTD configuration also refer to part of the post configuration, but the use of DMA asynchronous sending mode, the sent data is not correct, the first data is often all 0, and the data sent after is often the content of the previous data. However, the function of cache is not opened, I do not know why this situation exists. The attachment provides a project for configuring SPI and DMA, please help to check whether there is any problem with the configuration.

Best Regards

tian

0 项奖励
回复
1 解答
573 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

Hi Tian,

I just checked the linker file and system.c, and the cache is enabled on the SRAM where you have the buffers.

Have you tried placing it into .mcal_bss_no_cacheable?

https://community.nxp.com/t5/S32K/S32K344-UART-DMA-example/td-p/1583510

 

Regards,

Daniel

在原帖中查看解决方案

0 项奖励
回复
3 回复数
574 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

Hi Tian,

I just checked the linker file and system.c, and the cache is enabled on the SRAM where you have the buffers.

Have you tried placing it into .mcal_bss_no_cacheable?

https://community.nxp.com/t5/S32K/S32K344-UART-DMA-example/td-p/1583510

 

Regards,

Daniel

0 项奖励
回复
533 次查看
_tian_10
Contributor I
Thank you very much! It can work normally!
0 项奖励
回复
555 次查看
_tian_10
Contributor I
Thank you very much! It can work normally.To be honest, there is no research on memory allocation. Thank you again for your prompt reply!
0 项奖励
回复