S32K344 SPI+DMA send data error

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

S32K344 SPI+DMA send data error

ソリューションへジャンプ
606件の閲覧回数
_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 解決策
575件の閲覧回数
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 返答(返信)
576件の閲覧回数
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 件の賞賛
返信
535件の閲覧回数
_tian_10
Contributor I
Thank you very much! It can work normally!
0 件の賞賛
返信
557件の閲覧回数
_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 件の賞賛
返信