-
Notifications
You must be signed in to change notification settings - Fork 2.1k
boards/common/cc26xx cc13xx: clean up and fix flash configs [backport 2023.01] #19167
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
Merged
bors
merged 5 commits into
RIOT-OS:2023.01-branch
from
maribu:backport/2023.01/boards/common/cc26xx_cc13xx/openocd.cfg
Jan 18, 2023
Merged
boards/common/cc26xx cc13xx: clean up and fix flash configs [backport 2023.01] #19167
bors
merged 5 commits into
RIOT-OS:2023.01-branch
from
maribu:backport/2023.01/boards/common/cc26xx_cc13xx/openocd.cfg
Jan 18, 2023
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This adds the configuration to allow choosing the XDS110 used in cc13xx-launchpad and cc26xx-launchpad boards via the `OPENOCD_DEBUG_ADAPTER` variable. (cherry picked from commit 7bb5232)
Place common OpenOCD configs for the different cc13xx and cc26xx families in boards/common/cc26xx_cc13xx/dist and automatically select the correct one based on the (prefix of the) value of `$(CPU_MODEL)`, if `OPENOCD_CONFIG` was not specified and no custom `openocd.cfg` is located in the board's `dist` folder. The `cc2650-launchpad` and `cc2650stk` have been adapted to use the common config instead. (cherry picked from commit c4ff80b)
Add the required variables to support flashing with `PROGRAMMERS=jlink`. (cherry picked from commit 5c16318)
Typically, OpenOCD is already performing a reset on connect. A `reset halt` to bring the target to a `halt` state for flashing will result in the device going through a second reset cycle. This can be problematic with some device, such as the CC26xx MCUs. For these devices, an `OPENOCD_CMD_RESET_HALT := -c 'halt'` will avoid the second reset that is causing the issues. (cherry picked from commit 3e1dcf3)
This adds a work around that allows flashing with upstream OpenOCD, most of the time. (cherry picked from commit c78c005)
kaspar030
approved these changes
Jan 18, 2023
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.
backport-ACK.
bors merge
🕐 Waiting for PR status (GitHub check) to be set, probably by CI. Bors will automatically try to run when all required PR statuses are set. |
bors merge |
Build succeeded: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Area: boards
Area: Board ports
Area: build system
Area: Build system
Area: cpu
Area: CPU/MCU ports
Area: doc
Area: Documentation
Area: tools
Area: Supplementary tools
CI: ready for build
If set, CI server will compile all applications for all available boards for the labeled PR
Platform: ARM
Platform: This PR/issue effects ARM-based platforms
Process: release backport
Integration Process: The PR is a release backport of a change previously provided to master
Type: bug
The issue reports a bug / The PR fixes a bug (including spelling errors)
Type: cleanup
The issue proposes a clean-up / The PR cleans-up parts of the codebase / documentation
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Backport of #19050
Contribution description
OPENOCD_DEBUG_ADAPTER=xds110
boards/common/cc26xx_cc13xx
OPENOCD_DEBUG_ADATER ?= xds110
boards/cc2650*
: drop custom OpenOCD config in favor of shared onePROGRAMMER=jlink
reset halt
(which causes a second reset) is causing issues with the ICEPick JTAG routers in the CC26xx - CC13xx deviceshalt
instead ofreset halt
for CC26xx / CC13xx boards in OpenOCD to avoid issues in flashingTesting procedure
Should now work. The same should still work for other cc26xx cc13xx boards.
Issues/PRs references
Partially fixes: #18750