Last active
April 23, 2024 07:44
-
-
Save patois/8f76ff7d1f9e27a17338a11cbc3ef92d to your computer and use it in GitHub Desktop.
Configuration files for debugging Renesas V850/RH850 Binaries with IDA 7.4 and TRACE32 Simulator
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. Install TRACE32 for V850/RH80 from https://www.lauterbach.com/frames.html?download_demo.html | |
2. copy *.cmm to the TRACE32 installation folder | |
3. overwrite config.t32 found in the TRACE32 installation folder with the one provided, edit "SYS variable | |
4. add the content provided with "gdb_arch.cfg" to the existing %IDADIR%\cfg\gdb_arch.cfg file | |
5. open the file "ghv850.cfe" from the TRACE32 installation folder with IDA | |
6. In IDA, go to "Debugger -> Select debugger", pick "Remote GDB debugger" | |
7. Go to "Debugger -> Debugger options -> Set specific options", tick the | |
"Run a program..." checkbox, then click "choose a configuration", pick the configuration | |
named "TRACE32: Renesas RH850 (ELF)" and confirm. | |
8. Go to "Debugger -> Process options...", fill the hostname (127.0.0.1) and port (30000) | |
text fields | |
9. "Start process" (F9) or "Run to cursor" (F4) will start TRACE32 in the background and | |
will allow the file loaded into IDA to be debugged using the TRACE32 simulator's GDB | |
backend |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PBI=SIM | |
PRINTER=WINDOWS | |
SCREEN= | |
HEADER=TRACE32 V800 SIMULATOR | |
;RCL=NETASSIST | |
GDB=NETASSIST | |
PACKLEN=1024 | |
PORT=30000 | |
PROTOCOL=TCP | |
OS= | |
SYS=C:\tools\simv800 ; <- edit this |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; add the following to %IDADIR%\cfg\gdb_arch.cfg | |
; rh850 | |
.rh850 | |
name TRACE32: Renesas RH850 (IntelHex) | |
cpu rh850 | |
range DATA MEMORY 0x00000000:0xFFFFFFFE | |
cmdline c:\tools\simv800\t32mv800.exe -c c:\tools\simv800\config.t32 -s c:\tools\simv800\ida_intelhex.cmm "%i" | |
; rh850 | |
.rh850 | |
name TRACE32: Renesas RH850 (S2Record) | |
cpu rh850 | |
range DATA MEMORY 0x00000000:0xFFFFFFFE | |
cmdline c:\tools\simv800\t32mv800.exe -c c:\tools\simv800\config.t32 -s c:\tools\simv800\ida_S2record.cmm "%i" | |
; rh850 | |
.rh850 | |
name TRACE32: Renesas RH850 (ELF) | |
cpu rh850 | |
range DATA MEMORY 0x00000000:0xFFFFFFFE | |
cmdline c:\tools\simv800\t32mv800.exe -c c:\tools\simv800\config.t32 -s c:\tools\simv800\ida_elf.cmm "%i" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
LOCAL &arg1 | |
;======================================================================== | |
; initialize and start the debugger | |
RESet | |
SYStem.Up | |
;======================================================================== | |
&arg1=PRACTICE.ARG(0) | |
data.load.ELF &arg1 | |
; open some windows | |
WinCLEAR | |
Register.view | |
list.Asm | |
ENDDO |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
LOCAL &arg1 | |
;======================================================================== | |
; initialize and start the debugger | |
RESet | |
SYStem.Up | |
;======================================================================== | |
&arg1=PRACTICE.ARG(0) | |
data.load.IntelHex &arg1 | |
; open some windows | |
WinCLEAR | |
Register.view | |
list.Asm | |
ENDDO |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
LOCAL &arg1 | |
;======================================================================== | |
; initialize and start the debugger | |
RESet | |
SYStem.Up | |
;======================================================================== | |
&arg1=PRACTICE.ARG(0) | |
data.load.S2record &arg1 | |
; open some windows | |
WinCLEAR | |
Register.view | |
list.Asm | |
ENDDO |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment