Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

How can I improve the processing speed of the microcontroller? #2731

ShiPC123 started this conversation in General
Discussion options

Hello, I use a microcontroller to process the data from the encoder. The baud rate is 3M. I used two versions of STM32DUINO. I found that, with the same code, the processing speed of version 2.10.1 was much slower than the earliest version. The microcontroller is STM32F103RCT6.
Below are some of my configurations and screenshots of the logic analyzer.

4fdaf2d7b198d83ae69703a5d1a09d0 36ab0b38e755fe6e77561508d05239f 29a8899acb2c2650950c1754830b039 3806d291661a6be40ed28f1b04effe8 520ab45ba404d7cbffb6d4c42bb10a3 ![a0d2efcdbf1f2c1a31bfca1292d64ed](https://github.com/user-attachments/assets/fa031498-851f-4dec-a55e-46a2be6ad9f3)
You must be logged in to vote

Replies: 1 comment · 4 replies

Comment options

What is the "earlier version"? Your screenshot shows that you used Roger's core not the one here.

You must be logged in to vote
4 replies
@ShiPC123
Comment options

Sorry, my explanation was incorrect. Is there any way to increase the processing speed of the code in version 2.10.1?

@uzi18
Comment options

@fpistm 2nd configuration screen has malformed link:

445837590-fa031498-851f-4dec-a55e-46a2be6ad9f3

@fpistm
Comment options

So you compare the 2 cores. Roger's core is more bare metal oriented while this one uses HAL.
To be able to increase speed you probably need to write your own serial code.
You can also try to add a Serial1.flush(); after the write.

@ShiPC123
Comment options

Thank you. I have made an attempt here, but it seems that there has been no improvement. I plan to replace the current microcontroller with one that has a higher clock frequency.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.