How to read memory content

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

How to read memory content

1,142 次查看
btarnowski
Contributor III

Specification: IMX8MM, Linux 5.10

How can I get value from specific address in the memory?
I would like to read peripherals register.
Writing to registers would be helpful for my development as well.

0 项奖励
回复
1 回复

1,137 次查看
AldoG
NXP TechSupport
NXP TechSupport

Hello,

You may try using memtool, it is a tool for reading and writing registers in user space, similar to linux devmem.

Just make sure that the module register that are you planning to access using memtool have the clock enabled otherwise it will hang.

https://community.nxp.com/t5/i-MX-Processors/Memtool-access-of-0x020F-address-space-hangs/m-p/398481...

Best regards,
Aldo.

0 项奖励
回复