]> www.infradead.org Git - users/borneoa/openocd-next.git/commit
flash/nor/rp2040: flash bank target switching for RP2350
authorTomas Vanek <vanekt@fbl.cz>
Sat, 10 Aug 2024 14:10:43 +0000 (16:10 +0200)
committerTomas Vanek <vanekt@fbl.cz>
Fri, 25 Apr 2025 09:32:11 +0000 (09:32 +0000)
commit2e49c99b1f919c2496c2d0140ada4ea5134c20a0
tree07d99fe9a68c87591021ba848758b78697703d02
parent15d92076b0c2d6198e2f60381e4dcb645ec9a110
flash/nor/rp2040: flash bank target switching for RP2350

RP2350 can switch either core to Cortex-M33 or RISC-V.
The different architectures have to be supported as
distinct targets in OpenOCD.

Introduce 'rp2xxx _switch target' Tcl command to adapt flash
bank to architecture changes.

Keep the target and priv pointers intact until a flash operation
is finished to prevent sudden change in the middle of write/erase.

Signed-off-by: Tomas Vanek <vanekt@fbl.cz>
Change-Id: I764354ab469e253042128958dfe70c09d04d6411
Reviewed-on: https://review.openocd.org/c/openocd/+/8448
Tested-by: jenkins
Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
src/flash/nor/rp2040.c