You could wrap it in a bit of shell script that reads a config file and substitutes the values into the command.
<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?
ocd.conf
Code:
SPEED="1000"
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"

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