Skip to content

Instantly share code, notes, and snippets.

@tnishinaga
Created November 24, 2021 17:18
Show Gist options
  • Save tnishinaga/b26fd78b8c06533831175d09e1e1bbd9 to your computer and use it in GitHub Desktop.
Save tnishinaga/b26fd78b8c06533831175d09e1e1bbd9 to your computer and use it in GitHub Desktop.
OpenOCD config for Synquacer cm3
set _CHIPNAME sc2a11
set _TARGETNAME $_CHIPNAME.cpu
adapter speed 1000
transport select jtag
jtag_ntrst_delay 100
reset_config trst_and_srst
telnet_port 4444
if { [info exists ENDIAN] } {
set _ENDIAN $ENDIAN
} else {
set _ENDIAN little
}
set _M3_JTAG_TAPID 0x6ba00477
jtag newtap auto0 tap -irlen 4 -expected-id $_M3_JTAG_TAPID
jtag newtap auto1 tap -irlen 4 -expected-id $_M3_JTAG_TAPID
dap create auto0.dap -chain-position auto0.tap
target create $_CHIPNAME.m3 cortex_m -dap auto0.dap
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment