S32K344 SPI+DMA send data error

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

S32K344 SPI+DMA send data error

Jump to solution
261 Views
_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 Kudos
Reply
1 Solution
230 Views
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

View solution in original post

0 Kudos
Reply
3 Replies
231 Views
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 Kudos
Reply
190 Views
_tian_10
Contributor I
Thank you very much! It can work normally!
0 Kudos
Reply
212 Views
_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 Kudos
Reply