This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] MSPM0G3519:DMA 存储器对齐要求

Guru**** 2832805 points
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1603140/mspm0g3519-dma-memory-alignment-requirements

器件型号: MSPM0G3519

您好:

我尝试将 DMA 配置为最终以单个长度的重复单次传输方式、将块传输到单个固定地址。  

我正在使用计时器触发 DMA、现在我基本上将这个设置设为一次执行 1 次传输、因此我可以逐步了解发生了什么。  

 从根本上说、DMA 传输似乎掩盖了 src_buf 数组的上部区域、因为底层类型为 uint16:

image.png

DMASRCWDTH 何时应与 32 位字边界对齐?  

这似乎是它的样子、但我在文档中没有看到任何使其成为一项要求的内容。

Munan

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好:

    我使用 tiarmclang aligned 属性对 DMA 传输大小进行了测试、结果有效:

    Munan