Embedded · IN PROGRESS

STM32 Bring-up

Bringing up a bare STM32F103C6T6 board in STM32CubeIDE: flashing it over an ST-Link, blinking the LED, and checking the signals on a 24 MHz logic analyzer.

Play the cartridge

The problem

Arduino hides most of what a microcontroller is doing. I wanted to learn the layer underneath: clocks, pins, flashing and debugging on a real ARM chip.

The STM32F103 is also the brain of my robotic arm, so learning this board first means the arm starts on solid ground.

The approach

I write the firmware in STM32CubeIDE and flash it over SWD with an ST-Link V2.

The first milestone was the classic one: a blinking LED. Then I put the pin on a 24 MHz USB logic analyzer to see the real timing instead of trusting my eyes.

Next steps

Next on the board: UART, timers and PWM, interrupts, I2C and the ADC. After that, STEP and DIR signals to the TMC2209 so it can drive the stepper in the robotic arm.