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

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

$
0
0

<snip> But I still have this problem with the RPi5 using the Debug Probe: there is not a config file in 'openocd' that tells it what 'adapter speed' to use. Yes - I can add it to the command line, but I'd prefer to have this set in a config file. Any ideas on that?
You could wrap it in a bit of shell script that reads a config file and substitutes the values into the command.

ocd.conf

Code:

SPEED="1000"
myocd.sh

Code:

#!/usr/bin/bashsource ocd.confecho "setting speed to $SPEED and programming $1"openocd -d0 -f interface/cmsis-dap.cfg -f target/rp2040.cfg -c "adapter speed $SPEED" -c "program $1 verify reset exit"
You should add some argument checking ;)

PeterO

Statistics: Posted by PeterO — Tue Feb 13, 2024 8:01 am



Viewing all articles
Browse latest Browse all 6078

Trending Articles