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.

[参考译文] AM6548:am6548 SDK 版本5.03.0.07 devmem2源代码

Guru**** 2540720 points


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

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/833479/am6548-am6548-sdk-release-5-03-0-07-devmem2-source

器件型号:AM6548

你(们)好  

请获取 devmem2的源代码。 我在下面的网站上找到了以下内容

https://www.lorixone.io/yocto/licenses/2.1.2/devmem2/devmem2.c

我使用 SDK 编译器对其进行了编译。

我执行了以下命令

devmem2 $((0x686000 + 0x0010) w 0x0

出现以下错误

第81行、文件 devmem2.c (22)出错[无效参数]

但是、如果我对 SDK 附带的 devmem2执行相同的操作、则可以得到以下结果

root@am65xx-EVM:~ evm2 $(0x686000 + 0x0010) w 0x0
/dev/mem 已打开。
映射到地址0xff94090000的内存。
读取地址0x00686010 (0xff94096010):0x68EF3491
在地址0x00686010 (0xff94096010)写入:0x00000000、回读0x00000000

任何想法都很好。

听起来好像它没有从 MMU 计算正确的地址

谢谢