Skip to content

Commit

Permalink
Make core 0 the default for TCL commands
Browse files Browse the repository at this point in the history
Signed-off-by: Luke Wren <[email protected]>
  • Loading branch information
Wren6991 authored and kilograham committed Feb 3, 2021
1 parent 7c96119 commit f8e14ec
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tcl/target/rp2040.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,12 @@ set _FLASHBASE 0x10000000
# name driver base, size in bytes, chip_width, bus_width, target used to access
flash bank $_FLASHNAME rp2040_flash $_FLASHBASE $_FLASHSIZE 1 32 $_TARGETNAME_0

# Openocd associates a flash bank with a target (in our case a core) and
# running `openocd -c "program foo.elf"` just grabs the last selected core
# from the TCL context. Select `core0` by default so that flash probe
# succeeds. Note gdb understands there are 2 cores -- this is only for TCL.
targets rp2040.core0

# srst is not fitted so use SYSRESETREQ to perform a soft reset
reset_config srst_nogate

Expand Down

0 comments on commit f8e14ec

Please sign in to comment.