Skip to content

Instantly share code, notes, and snippets.

@yifanlu
Last active April 8, 2017 22:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yifanlu/65c4fdceb3429dfcf98f222380c65ec6 to your computer and use it in GitHub Desktop.
Save yifanlu/65c4fdceb3429dfcf98f222380c65ec6 to your computer and use it in GitHub Desktop.
Jetson TX1 BPMP-Lite JTAG attach for Lauterbach
; get to a determinstic state
SYSTEM.RESET
; set up JTAG
SYSTEM.CPU ARM7TDMI
; ARM 14-pin cable does not have RTCK
; If you have a newer cable you can use
; SYSTEM.JtagClock Rtck
SYSTEM.JtagClock 12.15MHz
; Similarly the old cable does not have DBGAUTH/DBGACK
SYSTEM.Option.DBGACK OFF
; Jetson TX1 uses TRST differently, we ignore it
SYSTEM.Option.TRST OFF
; Jetson TX1 settings for ARM7
SYSTEM.Config.IRPRE 4
SYSTEM.Config.IRPOST 0
SYSTEM.Config.DRPRE 1
SYSTEM.Config.DRPOST 0
; DAP settings
SYSTEM.Config.DAPIRPOST 4
SYSTEM.Config.DAPDRPOST 1
SYSTEM.Config.DAPIRPRE 0
SYSTEM.Config.DAPDRPRE 0
; Debug regs found on APB bus
SYSTEM.Config.APBACCESSPORT 0
SYSTEM.Config.DEBUGACCESSPORT 0
; System mem found on AXI bus
SYSTEM.Config.AXIACCESSPORT 1
SYSTEM.Config.MEMORYACCESSPORT 1
SYSTEM.MemAccess DAP
; Reset and hook
; you can only use SYSTEM.Up on a non JTAG_DISABLE blown unit!
; SYSTEM.Up
SYSTEM.Attach
; get to a determinstic state
SYSTEM.RESET
; set up JTAG
SYSTEM.CPU CORTEXA9
; ARM 14-pin cable does not have RTCK
; If you have a newer cable you can use
; SYSTEM.JtagClock Rtck
SYSTEM.JtagClock 12.15MHz
; Similarly the old cable does not have DBGAUTH/DBGACK
SYSTEM.Option.DBGACK OFF
; Jetson TX1 uses TRST differently, we ignore it
SYSTEM.Option.TRST OFF
; DAP settings
SYSTEM.Config.DAPIRPOST 4
SYSTEM.Config.DAPDRPOST 1
SYSTEM.Config.DAPIRPRE 0
SYSTEM.Config.DAPDRPRE 0
; Debug regs found on APB bus
SYSTEM.Config.APBACCESSPORT 0
SYSTEM.Config.DEBUGACCESSPORT 0
; System mem found on AXI bus
SYSTEM.Config.AXIACCESSPORT 1
SYSTEM.Config.MEMORYACCESSPORT 1
SYSTEM.MemAccess DAP
; select Cortex A9
SYSTEM.Config.COREBASE 0x80A10000
SYSTEM.Attach
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment