RfidResearchGroup / proxmark3

Iceman Fork - Proxmark3
http://www.icedev.se
GNU General Public License v3.0
3.65k stars 981 forks source link

Adding processor flash memory reading, viewing and writing to file. #2263

Closed martian closed 5 months ago

martian commented 5 months ago

Reading memory works when the device is running either osimage or bootloader.

Simple interactive examples:

CLI example:

Reading from arbitrary memory ranges can be unlocked using the 'raw' option.

github-actions[bot] commented 5 months ago

You are welcome to add an entry to the CHANGELOG.md as well

iceman1001 commented 5 months ago

Interesting, a very nice PR. Clean code. I have only one issue, and that is we use fileutils.c to do all file operations. There is a long effort to unifiy/refactor all file operations into it.

Would you mind telling me what the use case for this? How and when will it be used?

martian commented 5 months ago

Thanks. I will have a look at the file operations.

My initial use case was an investigation into what happened with my somewhat-faulty chinese pm3 easy 512KB, where write errors occur in the top half of flash. Except when I overwrite with FF first, it turns out.

I thought being able to dump flash, or read any memory or HW register might come in useful for others in debugging firmware related issues.