reverse_engineering:ghidra:memory_map
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
reverse_engineering:ghidra:memory_map [2022/03/13 15:50] – kitor | reverse_engineering:ghidra:memory_map [2022/03/13 15:58] – kitor | ||
---|---|---|---|
Line 99: | Line 99: | ||
| - | < | | - | < | ||
+ | ===== Adding ROMCOPY regions to Memory Map ===== | ||
+ | As mentioned before, there are two methods to add a ROMCOPY region to memory map. | ||
+ | |||
+ | Both methods are equally good, so select which one is easier for you. | ||
+ | |||
+ | You will need to repeat this step for each ROMCOPY region. | ||
+ | |||
+ | ==== via Memory map: ==== | ||
+ | |||
+ | In '' | ||
+ | |||
+ | * Block Types: select "Byte mapped" | ||
+ | * Source address: self explanatory | ||
+ | * Start address: start of " | ||
+ | * Length: length of a block (note: it will accept input as decimal if you don't use '' | ||
+ | * Block name: Something meaningful, like a memory address | ||
+ | * Select Read, | ||
+ | |||
+ | ==== via "Add to program": | ||
+ | |||
+ | Go to '' | ||
+ | |||
+ | ===== Defining rest of the memory map ===== | ||
+ | |||
+ | As explained before, ther regions (notably: RAM) will overlap with ROMCOPY regions defined in previous steps. | ||
+ | |||
+ | ==== Source of data ==== | ||
+ | |||
+ | As a rule of thumb: | ||
+ | * RAM starts at '' | ||
+ | * There' | ||
+ | * Size of RAM depends on model. | ||
+ | * '' | ||
+ | |||
+ | Memory map for [[https:// | ||
+ | |||
+ | ==== Adding regions ==== | ||
+ | |||
+ | As a reminder: Regions (mostly RAM) will overlap with ROMCOPY regions defined earlier. Unfortunately that is not possible (" | ||
+ | |||
+ | In '' | ||
+ | |||
+ | * Block Types: leave " | ||
+ | * Start address: start of memory block | ||
+ | * Length: length of a block (note: it will accept input as decimal if you don't use '' | ||
+ | * Block name: Something meaningful, like a memory address | ||
+ | * Select Read,Write flags | ||
+ | * Leave " | ||
reverse_engineering/ghidra/memory_map.txt · Last modified: 2022/03/13 19:47 by kitor