this repo is a manual bring-up for stm32f303k8 on a nucleo-32 board, without cubemx.
the project starts with bare-metal gpio blink, then adds freertos once the kernel is dropped into third_party/freertos-kernel.
startup/startup_stm32f303x8.sfor reset and the vector tablelinker/STM32F303K8_FLASH.ldfor the memory mapinclude/stm32f303k8.hfor the small register set used heresrc/system_stm32f3xx.cfor the minimal system init hooksrc/board.candsrc/main.cfor the first gpio bring-upsrc/freertos_app.cfor the queue example once freertos is enabledFreeRTOSConfig.hfor the rtos configdocs/for the step-by-step notes
- install
arm-none-eabi-gcc,make, andopenocd - build the bare-metal blink first with
make - flash the elf or bin with the openocd target from the makefile
- clone the freertos kernel into
third_party/FreeRTOS-Kernel - set
FREERTOS_ENABLED=1and rebuild
- bare-metal first
- clock next
- systick and priorities after that
- freertos only when the low-level pieces are already clear
on the nucleo-f303k8, led3 is on pb3.
the chip starts on the internal 8 mhz hsi clock in this scaffold, which keeps the first bring-up simple and lets you verify the startup path before adding a pll.