Skip to content

Chapter 01

Hongjayeong-02 edited this page Oct 4, 2026 · 1 revision

01. Tools & Setup

Goal

Prepare the development environment for STM32 bare-metal programming.

Environment

  • STM32F439ZI
  • NUCLEO-F439ZI
  • ARM Cortex-M4
  • STM32CubeIDE
  • arm-none-eabi-gcc
  • ST-LINK / SWD

Toolchain

C Source
   ↓
Compiler
   ↓
Assembler
   ↓
Linker
   ↓
ELF / HEX
   ↓
MCU Flash

Basic Workflow

  1. Create project
  2. Configure target MCU
  3. Write C code
  4. Build
  5. Flash
  6. Debug

Key Files

  • main.c
  • Startup code
  • Linker script
  • CMSIS headers

Check

int main(void)
{
    while (1)
    {
    }
}

Build and debug the project successfully.

Key Point

Bare-metal development requires understanding not only C code, but also the compiler, linker, startup code, and MCU memory structure.

Clone this wiki locally