-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs: provide instructions for flashing with OpenOCD / BMDA; provide instructions for non-autodetect TTYs #35
base: main
Are you sure you want to change the base?
Conversation
…instructions for non-autodetect TTYs Signed-off-by: Joshua Wise <joshua@accelerated.tech>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since OpenOCD seems to be supported as a core feature, this should be integrated with ./waf flash
(waftools/openocd.py, main wscript). Flashing definitely needs some love to be multirunner capable (as there are better options than OpenOCD nowadays), similar to Zephyr.
Just tested this locally and it works without invoking any GDB:
# myconfig.cfg
set WORKAREASIZE 0x4000
source [find interface/jlink.cfg]
transport select swd
source [find target/nrf52.cfg]
openocd -f myconfig.cfg -c "init;targets;reset init;flash write_image erase my.hex;reset run;shutdown"
First make sure Nordic S140 Softdevice is flashed (only do this once): | ||
|
||
```shell | ||
arm-none-eabi-gdb -ex 'target extended-remote localhost:3333' -ex 'load src/fw/vendor/nrf5-sdk/components/softdevice/s140/hex/s140_nrf52_7.2.0_softdevice.hex' -ex exit |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OpenOCD alone can take care of flashing, reset, etc. Adding gdb seems unnecessary.
I think I want to wait to integrate with I guess you could do this without Should we merge this for now, and then revisit later once asterix stabilizes? |
I prefer to keep gdb out of the game as it's not strictly required. It can be manual, but just with openocd, see my snippet above. |
@jwise |
For those of us without J-Links, and on Macs where the ancient version of PyFtdi misbehaves, we provide instructions for using OpenOCD (or BMDA) as a flash tool.