mirror of
https://github.com/openocd-org/openocd.git
synced 2025-10-14 02:58:23 +08:00
tcl/target/rp2040: fix reset-init rom_api_call invocation
The reset-init handler needs to call the ROM API function to enable
XIP from flash.
Correct syntax for this command is to supply two-letter function code
as the first argument, flash bank number sholudn't be there.
Reported-by: Thomas D. Dean <tomdean@wavecable.com>
Fixes: 376d11c2e3
Signed-off-by: Paul Fertser <fercerpav@gmail.com>
Change-Id: I94713630300ead32bc9db6a1a77658fa5d5214d4
Reviewed-on: https://review.openocd.org/c/openocd/+/9134
Tested-by: jenkins
Reviewed-by: Tomas Vanek <vanekt@fbl.cz>
This commit is contained in:

committed by
Tomas Vanek

parent
0732a9bb7b
commit
4ae92ee3b9
@@ -85,7 +85,7 @@ if { $_USE_CORE != 1 } {
|
||||
|
||||
# After a rescue reset or if halted in BOOTSEL connect the flash to enable
|
||||
# reads from the XIP cached mapping area
|
||||
$_TARGETNAME_0 configure -event reset-init { rp2xxx rom_api_call 0 CX }
|
||||
$_TARGETNAME_0 configure -event reset-init { rp2xxx rom_api_call CX }
|
||||
}
|
||||
|
||||
# core 1
|
||||
|
Reference in New Issue
Block a user