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.

[参考译文] TMS570LC4357:对 TMS L2RAMW 进行64位访问

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

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/785161/tms570lc4357-64bit-access-size-to-tms-l2ramw

器件型号:TMS570LC4357

您好!

我想访问具有 R/W 64位访问大小的 L2RAMW 区域。

我建议编写以下代码:

uint64 read_64bit_data (uint64* startAddr)

           uint64 read_value;

 

read_value =(uint64)(* startAddr);

   return (read_value);

 这是以64位大小访问内存的好方法吗? 如何确保此代码不会生成对内存的2x32位访问?

 感谢您的回答。

François μ A

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

    是的、这是一种读取64位数据的好方法。