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
已解决! 转到解答。
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
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