Skip to content
0:00 / 0:00

#stm32#bare-metal#rcc

STM32 Bare-Metal Clock Setup | Register-Level Programming

ControllersTech

60K subscribers • 4 videos on Hallway

YouTube
  • Recommended by 1 person: 1 in engineering communities.

Intermediate. Assumes working knowledge.

98K views6 years ago1 recommendation

Systems programmingHardwareEmbedded systems

How to configure the STM32 system clock using direct register manipulation without relying on HAL libraries.

In this tutorial, we will configure the STM32 system clock using registers only, without relying on HAL, SPL, or LL libraries. This is the very first step in mastering bare-metal STM32 programming, where we directly manipulate registers for complete control. We will go through the clock setup step by step, verify the configuration by blinking an LED, and prepare the foundation for upcoming tutorials. In the next part, we will use STM32 timers to generate accurate delays in microseconds and milliseconds. 📂 Download Project Files: [controllerstech.com/stm32-clock-setup-using-registers/] 📺 Watch Related Tutorials: STM32103 Clock Configuration : youtu.be/Ke_jD_2ILMU Configure Timer to Generate Delay : youtu.be/iImNVKJCq4Q?si=wCnh4U7DVAoKri2Y 🔔 Don’t forget to subscribe and follow the playlist for the full STM32 Register Programming series! #STM32 #EmbeddedSystems #Microcontroller #RegisterProgramming #STM32Tutorial #STM32F4 #ClockSetup #BareMetalProgramming ________________________________________________________________________________________ ******* SUPPORT US BY DONATING****** paypal.me/controllertech *******Join the Membership******* youtube.com/channel/UCkdqtSMnhYuMsJkyHOxiPZQ/join Facebook Page : facebook.com/controllerstech Telegram Group : t.me/controllerstechdiscuss Instagram : instagram.com/controllerstech/ For more info, visit controllerstech.com

Why it's here

1 person recommends this

What people say. Recommended as a great tutorial series for learning bare-metal STM32 programming using registers.

u/slipvelocity2in r/embedded • Recommends

On “What's the "right" way to use STM32CubeMX?”

I found this YouTube series [video where the author shows you how to do everything bare metal with registers, and occasionally references CubeMX for values. I learned a lot from it, and it might be what you're looking for.

u/RobotDragon0in r/embedded • Mentions

Blinking LED on STM32L476RGT6 Hello. I am a beginner who has been following this tutorial to do register based programming on my STM32L476RGT6 (the video uses a different STM32). I am trying to make an LED blink, but there are a couple problems I have with my program: **Problem 1:** After setting HSEON = 1, HSERDY never gets set to 0. **Problem 2:** After commenting out the SysClockConfig function and running the program, my LED does not blink. When looking at the BSRR register, I see that none of the bits have values. I am hoping to get advice for fixing this issue. Thanks. #include "main.h" #include "stm32l4xx.h" #include <stdbool.h> bool getRegBit(uint32\_t reg, int b){…