This is an automated email from Gerrit.

"Paul Fertser <[email protected]>" just uploaded a new patch set to Gerrit, 
which you can find at https://review.openocd.org/c/openocd/+/9134

-- gerrit

commit 3d4eb2baf25d4452c39d7f6681ff69a65406e921
Author: Paul Fertser <[email protected]>
Date:   Wed Sep 17 19:19:24 2025 +0300

    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 <[email protected]>
    Fixes: 376d11c2e38303094976186d59502ab7d3073452
    Signed-off-by: Paul Fertser <[email protected]>
    Change-Id: I94713630300ead32bc9db6a1a77658fa5d5214d4

diff --git a/tcl/target/rp2040.cfg b/tcl/target/rp2040.cfg
index dab3f8da34..262de44186 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

-- 

Reply via email to