Last active
February 14, 2018 10:49
-
-
Save garasubo/d3ff25e6617411412450 to your computer and use it in GitHub Desktop.
[WIP]OpenOCD configuration for TWR-LS1021A
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
source [find interface/jlink.cfg] | |
adapter_khz 1000 | |
adapter_nsrst_delay 400 | |
if { [info exists CHIPNAME] } { | |
set _CHIPNAME $CHIPNAME | |
} else { | |
set _CHIPNAME ls1021a | |
} | |
if { [info exists CPUTAPID] } { | |
set _CPUTAPID $CPUTAPID | |
} else { | |
set _CPUTAPID 0x5BA00477 | |
} | |
jtag newtap $_CHIPNAME tap -irlen 4 -expected-id $_CPUTAPID | |
set _TARGETNAME $_CHIPNAME.cpu.0 | |
target create $_TARGETNAME cortex_a -chain-position $_CHIPNAME.tap -coreid 0 -dbgbase 0x80010000 | |
set _TARGETNAME $_CHIPNAME.cpu.1 | |
target create $_TARGETNAME cortex_a -chain-position $_CHIPNAME.tap -coreid 1 -dbgbase 0x80012000 | |
$_TARGETNAME configure -event reset-assert-post "cortex_a dbginit" | |
$_TARGETNAME configure -event gdb-attach { halt } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
I've tried this configuration to connect to my twr-ls1021a board without success.
The following error appears 👍 Error: No J-Link device found.
I wonder if I have the same board as you. In my case, I was expecting a cmsis-dap type interface.
Can you comment on this?
Thanks,
Yaset