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

mksnanov3: limit programming speed to 1800 kHz #4181

Merged
merged 1 commit into from Apr 27, 2024

Conversation

eliasnaur
Copy link
Contributor

Fixes stability problems when programming the Mks Nano v3.x boards.

Depends on #4180.

Both of my development boards exhibit stability problems when
programming at the default 4000 kHz speed of the target/stmf32d4x
OpenOCD configuration.

Note that the speed limit must be set by an event handler, because it
is hard-coded by a similar event handler in stmf32f4x.cfg:

  $_TARGETNAME configure -event reset-init {
  	# Configure PLL to boost clock to HSI x 4 (64 MHz)
    ...

  	# Boost JTAG frequency
  	adapter speed 8000     <-- resolves to 4000 kHz by the SWD interface
  }

While here, replace the reference to the deprecated "stlink-v2"
configuration.
@eliasnaur eliasnaur marked this pull request as ready for review April 27, 2024 09:53
@eliasnaur
Copy link
Contributor Author

Rebased and ready for review now that #4180 is merged.

@deadprogram
Copy link
Member

Thanks for the fix @eliasnaur now merging.

@deadprogram deadprogram merged commit 2b3b870 into tinygo-org:dev Apr 27, 2024
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants