Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 6044

SDK • Re: Any downsides to using RPi 5 for install of SDK?

$
0
0
I am trying to wire up the SWD, and having an issue. I've wired it up IAW Chapter 5 of the "Getting Started" guide. However, I get an error message I don't quite understand:

Code:

openocd -f interface/raspberrypi-swd.cfg -f target/rp2040.cfg -c "program blink/blink.elf verify reset exit"Open On-Chip Debugger 0.12.0-g4d87f6d (2024-01-20-06:51)Licensed under GNU GPL v2For bug reports, readhttp://openocd.org/doc/doxygen/bugs.htmlWARNING: Unknown type of the host SoC. Expect JTAG/SWD clock slower than requested.Warn : TMS/SWDIO moved to GPIO 8 (pin 24). Check the wiring please!adapter speed: 5000 kHzInfo : Hardware thread awareness createdInfo : Hardware thread awareness createdInfo : BCM2835 GPIO JTAG/SWD bitbang driverError: open: Permission denied** OpenOCD init failed **shutdown command invoked
I've triple-checked the wiring, and it is IAW the Guide:
SWDIO (Pico) ===> GPIO 24 (RPi pin 18)
SWCLK (Pico) ===> GPIO 25 (RPi pin 22)
GND (Pico). ===> GND (RPi pin 20)

However, as you'll note in the error message above, it says SWDIO moved to GPIO 8 (RPi pin 24). This is the confusing part!!

I had been experimenting with GPIO 24 earlier, and had an entry in my '/boot/config.txt' file that declared GPIO 24 for another purpose. Before invoking the 'openocd' command, I edited the '/boot/config.txt' file to remove that entry, and re-booted. After running the 'openocd' command, and getting the failure, I had a look at the GPIOs using 'gpioinfo'. I noted that a couple of GPIOs (25 being one) were listed is used for SPI. Since I didn't recall setting that up, I used 'raspi-config' to remove SPI. I'm now wondering if this is the cause of my grief???

How do I straighten this out?

Statistics: Posted by irishmonk-57 — Mon Jan 22, 2024 3:32 am



Viewing all articles
Browse latest Browse all 6044

Trending Articles