madison-embedded / gcc-builds

For projects built with the GNU toolchain.
GNU General Public License v3.0
11 stars 8 forks source link

Common: Missing md command #3

Open vkottler opened 7 years ago

vkottler commented 7 years ago

Need to implement md <address> <count> so we can display contents of memory in both raw hexadecimal and ASCII formats (both at once not either or).

This implementation should hopefully check if the memory access will be legal since not all of the virtual 4 GB space is mapped, but the alternative is to develop a robust BusFault Handler to recover from these accesses.

vkottler commented 7 years ago

It's ready in cmd_mem.c just needs to be implemented.

vkottler commented 7 years ago

Datasheet for memory map.

vkottler commented 7 years ago

Example:

image

On the right side if the bytes were ASCII the corresponding characters would be displayed which is great for looking at stored strings.

vkottler commented 7 years ago

ASCII example:

image

Tserendulam commented 7 years ago

Sounds good !!

vkottler commented 7 years ago

image image

Looks like we might need to refactor this a bit to match endiannesses from the ELF object dump (accessible via make dump).

Also flash can be accessed from another address:

image

vkottler commented 7 years ago

image

Probably should be unsigned int since our integers are 32 bits.

vkottler commented 7 years ago

Wondering if this might be done?

chroro commented 7 years ago

i think this was fixed