This repository was archived by the owner on Mar 7, 2026. It is now read-only.
Feature: high-z TCK/SWCLK when idle#1192
Merged
Merged
Conversation
…get clock tristating
…emoved a duplicate gpio_set_mode() call
…to comply with the project style
…rget clock tristating
…call from TAP init remote call code
This netted a 36 byte code size reduction
Contributor
|
I've tested this out with recent BMP hardware on an STM32G030J6 that needs to share its SWCLK pin with a UART TX signal. The Hi-Z feature on the BMP SWCLK signal allows the G030J6 to safely share the pin for both programing and functional operation without danger of contention which is confirmed by measuring the Voh/Vol levels prior / during / post flashing. Levels were observed to be fully 3.3V / 0V with no evidence of excessive current flow. |
esden
approved these changes
Aug 16, 2022
Member
esden
left a comment
There was a problem hiding this comment.
LGTM, tested on 1bitsy (STM32F415) and BMP V2.3 (GD32F103) all seems good so far. 🤞
6 tasks
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
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Detailed description
Certain low pin-count parts very heavily overload the device pins with functionality. This can mean it's inappropriate to drive TCK/SWCLK before initiating a scan, after scan but before attach, and after detach.
This PR introduces tristating support for these devices when running native hardware revision 6 and newer, allowing BMP to work around this problem. This also means BMP will play nicer with other devices on the roadmap.
This has been tested working against both the SWD and JTAG modes of the Tiva-C TM4C123GH6PM.
Your checklist for this pull request
make PROBE_HOST=native)make PROBE_HOST=hosted)Closing issues
Fixes #945