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
Acquire JSON definitions, either:
generate some using dump.py
use existing ones provided in defs/
write your own? good luck?
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)
Load your blob using Ghidra
From the script manager, run the DialogSc144xxRegs script and select the appropriate JSON file for your chip
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
You can’t perform that action at this time.