From 4ae92ee3b9c8c2eaa07dc22262cdc2c1eec6412d Mon Sep 17 00:00:00 2001 From: Paul Fertser Date: Wed, 17 Sep 2025 19:19:24 +0300 Subject: [PATCH] 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 Fixes: 376d11c2e38303094976186d59502ab7d3073452 Signed-off-by: Paul Fertser Change-Id: I94713630300ead32bc9db6a1a77658fa5d5214d4 Reviewed-on: https://review.openocd.org/c/openocd/+/9134 Tested-by: jenkins Reviewed-by: Tomas Vanek --- tcl/target/rp2040.cfg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tcl/target/rp2040.cfg b/tcl/target/rp2040.cfg index dab3f8da3..262de4418 100644 --- a/tcl/target/rp2040.cfg +++ b/tcl/target/rp2040.cfg @@ -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