Chapter 01 - Hongjayeong-02/Basic_SoC_implementation GitHub Wiki
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
- Create project
- Configure target MCU
- Write C code
- Build
- Flash
- 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.