Skip to content

PRO TIP Block youtube.com at the DNS level — Pi-hole, NextDNS or your hosts file — but allow youtube-nocookie.com and i.ytimg.com. These tutorials keep playing; the rabbit hole does not.

Learning without distractions

STM32 Tutorial #13 – Optimizing STM32 C code

1.3K views on YouTube

Optimizing code!!!

Please like, subscribe and share! And I love to get comments. I read them all and reply if necessary.

STM32World: https://stm32world.com/wiki/Main_Page

Project Files: https://github.com/STM32World/stm32fun

00:00 Intro
00:45 Recap
01:10 Going through the main loop
02:20 Going back to the suboptimal way
03:25 Looking at HAL_GetTick() function
03:43 Discovering an alternative approach
04:40 Implementing a better approach
05:40 Success!