Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Use OpenOCD for Launchxl build and sanitize #1102
Pull Request Overview
This pull request makes a number of changes to the
I also updated the launchxl README to reflect flashing with OpenOCD and JLinkExe and how to specifically set up the jumpers for each.
One nit to note is that OpenOCD doesn't properly support hardware reset for the on-board debug chip yet, so we're using soft-reset instead---this only resets the Cortex-M core, and could leave the rest of the hardware in an unexpected state. Always best to manually tap the reset button next to the USB port after flashing the kernel.
Fairly exhaustive testing on both the CC2652 launchxl and CC1312 launchxl, including bricking two of my four boards when I was blindly using the previous kernel binary.
TODO or Help Wanted
(Specifically for @ppannuto) I changed Makefile.common to be more permissive about which binaries it's willing to convert to other formats. I think the changes are pretty straight forward and safe, but input would be useful none-the-less.
This PR also removes the Makefile.common targets for converting to
To come in future a PRs:
I think implementing a minimal ccfg with its register definitions is probably smart since the ccfg file is supposed to make it easier for users to make broad changes to radio settings, clock, and power controls. I am not 100% certain what a setting in ccfg pertaining to
Why is 23ac2dd attached to this PR?
And I guess what I am asking is how is https://github.com/tock/tock/blob/master/chips/cc26xx/src/ccfg.rs being used after this change? It seems like the CCFG struct is defined with the board now.
Regarding the firmware update to xds110 on the on-board debugger: One thing I noticed flashing different boards was that due to a reset bug in xds110 as when a board that has been flashed with a tock kernel rather than TI distribution, it will not be able to reset itself after being switched into DFU mode per TI's firmware update instructions [here]
Edit: clarity and wrote openocd instead of xds110 by accident