Skip to content
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

Set SWDCLK and fix jtag_reset bug #534

Merged
merged 2 commits into from
Dec 30, 2016
Merged

Conversation

jkhax0r
Copy link
Contributor

@jkhax0r jkhax0r commented Dec 29, 2016

  • Fixed bug where stlink_jtag_reset in stlink_open_usb() was never being called because the STLINK version was being checked before it had been initialized
  • Added support for stlink_set_swdclk() to adjust the SWD clock speed. For example, to set at 4Mhz, 1.8Mhz, 900Khz, etc similar to in the official ST-LINK utility. NOTE: The default when STLINK is powered appears to be 1.8Mhz (looked at scope traces) but it retains whatever was set before.

…ing called because the STLINK version was being checked before it had been initialized

- Added support for stlink_set_swdclk() to adjust the SWD clock speed.  For example, to set at 4Mhz, 1.8Mhz, 900Khz, etc similar to in the official ST-LINK utility.  NOTE: The default when STLINK is powered appears to be 1.8Mhz (looked at scope traces) but it retains whatever was set before.
@jkhax0r jkhax0r mentioned this pull request Dec 29, 2016
@xor-gate xor-gate merged commit c441824 into stlink-org:master Dec 30, 2016
@xor-gate
Copy link
Member

Thank you for this feature and fix!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ST-LINK RST pin JTAG speed/frequency
3 participants