Modern Embedded Recipes
임베디드 클럭 설정 분석 — HSE·PLL·SYSCLK·AHB/APB 분주
HSE/HSI·PLL·peripheral clock enable — 코어/주변기기 클럭 트리.
· 11분 읽기
recipes bare-metal
Tech articles, book reviews, and presentations.
페이지 53 / 56
HSE/HSI·PLL·peripheral clock enable — 코어/주변기기 클럭 트리.
STM32F407 기준으로 MODER·OTYPER·OSPEEDR·PUPDR·AFR을 직접 쓰는 GPIO 드라이버와, 설정이 맞았는지 레지스터 필드로 확인하는 방법.
volatile·MMIO·packed struct — peripheral register 다루기.
LED toggle — 최소한의 startup·main·loop.
Cortex-A 부팅 단계. BootROM → SPL → U-Boot → Linux. Secure boot, FIT image, A/B.
arm-none-eabi 크로스 빌드를 Makefile과 CMake toolchain file·preset으로 구성하고, find root·sysroot·링크 옵션에서 생기는 함정을 정리합니다.
GNU ld map 파일을 처음 읽는 펌웨어 개발자를 위해 절 순서와 줄 문법, archive member 연쇄, 제거된 section 목록을 읽고 SRAM을 어느 object가 쓰는지 찾는 법을 실제 STM32L011 map으로 설명합니다.
-O0/-O1/-O2/-O3/-Os/-Og — 옵션별 차이와 디버깅 가능성.
Stack/heap/static — 누가 어디 사는가.
crt0·.data 복사·.bss 클리어·ctors·atexit.