How to read memory content

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to read memory content

1,185 Views
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 Kudos
Reply
1 Reply

1,180 Views
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 Kudos
Reply