picocomputer / rp6502

Picocomputer 6502 firmware
BSD 3-Clause "New" or "Revised" License
85 stars 23 forks source link

Replace deprecated picoprobe with new CMSIS-DAP debugger #29

Closed jchidley closed 10 months ago

jchidley commented 1 year ago

The current README.md references picoprobe.cfg which is consistent with the rp6502_vga.uf2 firmware reporting as USB Serial Device (COM9), Picoprobe.

However this interface is not longer present in openocd (0.12.0). The newest Raspberry Pi Debug Probe firmware reports as a CMSIS-DAP v2 Interface.

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

rumbledethumps commented 1 year ago

Use OpenOCD 0.11 or a third Pi Pico. I wasn't able to get the new CMSIS-DAP code working.

jchidley commented 1 year ago

Thanks for that. This is my workaround.

Out with the old (the up-to-date one!):

cd ~
rm -rf openocd/
sudo rm -rf /usr/local/share/openocd

In with the new:

git clone https://github.com/raspberrypi/openocd.git --branch rp2040
cd openocd/
git checkout 610f137
./bootstrap
./configure
make -j8 # I have 8 virtual cores on my laptop
sudo make install

Wire up correctly

VGA RIA
34 ADC2 SWDIO
GND GND
29 GP22 SWCLK
openocd -f interface/picoprobe.cfg -f target/rp2040.cfg -s tcl

Pico VGA now connects to Pico RIA

rumbledethumps commented 10 months ago

Since picoprobe is no longer maintained, and CMSIS comes with an RTOS, I removed all debugging. Chances are good I'll use the resources to improve the graphics fill rate. That means it may never have the resources to return. A third Pi Pico or Debug Probe is cheap and was needed for VGA development anyways.

Closing this since there are no plans to bring internal debugging back.