Fix: Increase SysTick frequency to 1kHz #1536
Merged
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
Your checklist for this pull request
make PROBE_HOST=native
)make PROBE_HOST=hosted
)Closing issues
No known to me issues solved by this PR.
Testing
I conducted tests of RTT streaming from @koendv 's Arduino sketch running on NUCLEO-G071RB (and some tests were repeated on a WeAct Studio BluePIll-Plus with genuine stm32f103cbt6). Here are the results in chars/s as reported by DUT measuring a hardware timer prescaled to 1ms ticks:
blackpill-f411ce
before: 34000..51000, after: 87000..102400;swlink
before: 32000..34000, after: 78000;f072rb
before: untested, after: 42000. This is on a 32F072B-DISCO just to check on the slowest (48MHz) supported platform.If dropping the PC_HOSTED separation is wrong, I will rebase it out. For reference
hosted
usesusleep(ms * 1000U)
orSleep(ms)
for delays butgettimeofday()
for timestamping.