raspberrypi / openocd

Other
150 stars 90 forks source link

add flash definition for xiao rp2040 #98

Closed jancumps closed 5 months ago

jancumps commented 6 months ago

when you try to debug the xiao2040 with picoprobe in CMSIS-DAP mode, the debugger fails with this error: Error: Unknown flash device (ID 0x00156085)

Adding the identifier for the flash on that device to openocd/src/flash/nor/spi.c fixes this. line to be added: FLASH_ID("pu p32q32", 0x03, 0xeb, 0x02, 0xd8, 0xc7, 0x00156085, 0x100, 0x10000, 0x400000),

see https://forums.raspberrypi.com/viewtopic.php?t=359245

A pull request will be created

jancumps commented 6 months ago

created #99

jancumps commented 5 months ago

My request is submitted to openocd, following their guidelines, too.

8287: src/flash/nor/spi.c: add XIAO RP support | https://review.openocd.org/c/openocd/+/8287

jancumps commented 5 months ago

already in progress in openocd proper: https://review.openocd.org/c/openocd/+/8223