Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dump.py - parse IAR .ddf/.sfr definitions into JSON data

DialogSc144xxRegs.java - Ghidra script to create SFR definitions based on said JSON data

How to use

  1. Acquire JSON definitions, either:
  • generate some using dump.py
  • use existing ones provided in defs/
  • write your own? good luck?
  1. Place the .java file somewhere Ghidra finds it
  • for this you might need to add your custom scripts directory from the script manager (look for a list icon in the top right)
  1. Load your blob using Ghidra
  2. From the script manager, run the DialogSc144xxRegs script and select the appropriate JSON file for your chip
  3. Ghidra should now have created an SFR memory region with most of the registers in it
  • some defined registers are in other parts of memory (mostly DIP/DSP regions), which I have not implemented yet.
  • Refer to the 'mmap' key in the JSON and create them manually, then re-run the script. It should now add those registers as well

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

Contributors

Languages