TFLite Micro 분석 — Op Resolver·Tensor Arena·Cortex-M
#한 줄 요약
“TFLite Micro는 MCU에서
.tflite모델을 돌리는 runtime입니다.” 실행 중 메모리는 미리 잡은 tensor arena 한 덩어리에서만 쓰고, 필요한 op만 resolver에 등록합니다. 같은 person detection 모델을 Cortex-M4에서 CMSIS-NN kernel로 돌리자 실행 명령어 수가 22분의 1로 줄었습니다.
#이 글의 실행 환경
- TFLite Micro:
tensorflow/tflite-micro저장소 commit2c13ceb(2026-11-13). - 모델: 저장소의
person_detect.tflite(300,568 byte). 12-03에서 Vela에 넣은 것과 같은 파일입니다(sha256808cfdfc…). - host 실행: Debian 13 arm64 guest, g++ 14.2.0.
- Cortex-M4 실행: 같은 guest의 Debian
arm-none-eabi-gcc14.2.1로 빌드하고, macOS의 QEMU 11.1.3mps2-an386(Cortex-M4F)에서 semihosting으로 돌렸습니다.
QEMU는 cycle을 흉내 내지 않으므로, 아래의 Cortex-M 비교는 시간이 아니라 실행된 명령어 수입니다. 명령어 수는 QEMU TCG plugin으로 셌습니다.
#어떤 상황에서 쓰나
수백 KB RAM의 Cortex-M MCU에서 작은 신경망(키워드 검출, 사람 검출 등)을 OS 없이 돌릴 때입니다. 저장소의 예제가 그 크기를 보여 줍니다. micro_speech test는 arena를 28,600 byte(소스 주석상 xtensa p6 기준)로, person_detection은 136 KB로 잡혀 있습니다.
#핵심 개념
- 모델은
.tflite(FlatBuffer) 그대로 flash에 둡니다.GetModel()은 복사나 parsing 없이 그 버퍼를 가리킵니다. - 입력·출력·중간 tensor는 모두 사용자가 넘긴 tensor arena 안에 놓입니다.
AllocateTensors()가 arena 안에서 tensor 위치를 정하고, 수명이 겹치지 않는 tensor는 같은 자리를 다시 씁니다. - op 구현은
MicroMutableOpResolver<N>에 필요한 것만 등록합니다.AllOpsResolver는 현재 저장소에 없습니다(all_ops_resolver.h파일 자체가 없습니다). - Cortex-M용 최적화 kernel은
OPTIMIZED_KERNEL_DIR=cmsis_nn으로 빌드할 때 들어갑니다.
#모델 변환 흐름
Keras 모델을 INT8 .tflite로 바꾸는 API는 12-04에서 LiteRT 문서와 대조한 것과 같습니다. 이 글의 환경에는 TensorFlow가 없어 이 단계는 실행하지 않았고, 아래 실행은 저장소에 이미 있는 INT8 모델을 썼습니다.
converter = tf.lite.TFLiteConverter.from_keras_model(model)converter.optimizations = [tf.lite.Optimize.DEFAULT]converter.representative_dataset = rep_data_genconverter.target_spec.supported_ops = [tf.lite.OpsSet.TFLITE_BUILTINS_INT8]converter.inference_input_type = tf.int8converter.inference_output_type = tf.int8tflite_model = converter.convert()#.tflite → C array
xxd -i person_detect.tflite > model.hunsigned char person_detect_tflite[] = { 0x1c, 0x00, 0x00, 0x00, 0x54, 0x46, 0x4c, 0x33, 0x00, 0x00, 0x00, 0x00,...unsigned int person_detect_tflite_len = 300568;4~7번째 byte 0x54 0x46 0x4c 0x33은 FlatBuffer file identifier TFL3입니다. TFLite Micro의 Makefile은 같은 일을 generate_cc_arrays.py로 하는데, 이 script가 Pillow를 import하므로 Debian에서는 python3-pil이 없으면 person detection 빌드가 멈춥니다.
#TFLite Micro 기본 코드
저장소의 examples/person_detection/main_functions.cc를 따라 쓴 최소 코드입니다. 아래 측정은 모두 이 구조의 프로그램으로 했습니다.
#include "tensorflow/lite/micro/micro_interpreter.h"#include "tensorflow/lite/micro/micro_log.h"#include "tensorflow/lite/micro/micro_mutable_op_resolver.h"#include "tensorflow/lite/micro/system_setup.h"#include "tensorflow/lite/micro/models/person_detect_model_data.h"#include "tensorflow/lite/micro/examples/person_detection/testdata/person_image_data.h"
constexpr int kArenaSize = 136 * 1024;alignas(16) static uint8_t arena[kArenaSize];
int main() { tflite::InitializeTarget(); const tflite::Model *model = tflite::GetModel(g_person_detect_model_data); if (model->version() != TFLITE_SCHEMA_VERSION) { // 3 in micro_interpreter.h MicroPrintf("schema %d != %d", model->version(), TFLITE_SCHEMA_VERSION); return 1; }
static tflite::MicroMutableOpResolver<5> r; // only the ops this graph uses r.AddAveragePool2D(); r.AddConv2D(); r.AddDepthwiseConv2D(); r.AddReshape(); r.AddSoftmax();
static tflite::MicroInterpreter interp(model, r, arena, kArenaSize); if (interp.AllocateTensors() != kTfLiteOk) { MicroPrintf("AllocateTensors failed"); return 1; } MicroPrintf("arena_used_bytes %u", (unsigned)interp.arena_used_bytes());
TfLiteTensor *in = interp.input(0); // int8 [1, 96, 96, 1] for (size_t i = 0; i < in->bytes; i++) in->data.int8[i] = (int8_t)g_person_image_data[i]; if (interp.Invoke() != kTfLiteOk) return 1;
TfLiteTensor *out = interp.output(0); // int8 [1, 2]: no_person, person MicroPrintf("no_person %d person %d", out->data.int8[0], out->data.int8[1]); return 0;}실제로 돌린 프로그램은 이 구조에 결과 출력용 printf를 더한 것이고, Cortex-M 빌드에서는 MicroPrintf 출력을 받으려고 RegisterDebugLogCallback()으로 출력 함수를 등록했습니다. malloc도, OS 호출도 없습니다. op 다섯 개(AVERAGE_POOL_2D, CONV_2D, DEPTHWISE_CONV_2D, RESHAPE, SOFTMAX)는 저장소 예제가 이 모델에 등록하는 목록 그대로입니다.
host에서 저장소의 test를 먼저 돌리면 빌드 환경이 맞는지 확인할 수 있습니다.
make -f tensorflow/lite/micro/tools/make/Makefile -j4 test_person_detection_testperson data. person score: 113, no person score: -113no person data. person score: -57, no person score: 57~~~ALL TESTS PASSED~~~#Tensor arena 크기
크기는 넉넉히 잡고 AllocateTensors() 뒤 arena_used_bytes()로 실제 사용량을 본 다음 줄입니다. person detection 모델에서 잰 값입니다.
| 빌드 | arena 지정 | arena_used_bytes() |
|---|---|---|
| host (aarch64, g++) | 139,264 | 85,024 |
| Cortex-M4, reference kernel | 139,264 | 82,292 |
| Cortex-M4, CMSIS-NN kernel | 139,264 | 82,308 |
같은 모델이라도 target과 kernel에 따라 값이 다르므로, 최종 크기는 target 빌드에서 잽니다. Cortex-M4 reference kernel 빌드에서 64 KB arena로 줄이면 AllocateTensors()가 실패하고 무엇이 모자란지 출력합니다(host에서는 available 36032, missing: 19264).
Failed to resize buffer. Requested: 55296, available 38656, missing: 16640AllocateTensors with 64 KB arena -> error실패는 조용히 지나가지 않고 kTfLiteError로 돌아옵니다.
#Op resolver
resolver에서 필요한 op 하나를 빼면 AllocateTensors()가 실패합니다. 위 코드에서 AddSoftmax()만 지운 결과입니다.
Didn't find op for builtin opcode 'SOFTMAX'Failed to get registration from op code SOFTMAXAllocateTensors failed모델에 어떤 op가 있는지 모르면 이 메시지로 하나씩 확인하거나, 12-03처럼 Vela·모델 검사 도구로 op 목록을 먼저 뽑습니다.
#CMSIS-NN — Cortex-M 최적화 kernel
cortex_m_generic README의 빌드 형식을 따라 Cortex-M4F용 library를 reference kernel과 CMSIS-NN kernel로 한 번씩 만들었습니다. TARGET_TOOLCHAIN_ROOT를 주지 않으면 Makefile이 Arm GCC를 따로 내려받습니다.
make -f tensorflow/lite/micro/tools/make/Makefile -j4 TARGET=cortex_m_generic \ TARGET_ARCH=cortex-m4+fp TARGET_TOOLCHAIN_ROOT=/usr/bin/ microlitemake -f tensorflow/lite/micro/tools/make/Makefile -j4 TARGET=cortex_m_generic \ TARGET_ARCH=cortex-m4+fp TARGET_TOOLCHAIN_ROOT=/usr/bin/ OPTIMIZED_KERNEL_DIR=cmsis_nn microlite두 library에 위 프로그램을 link해 QEMU mps2-an386에서 돌렸습니다. 둘 다 [no_person, person] = [-113, 113]으로 host test와 같은 답을 냈습니다. Invoke를 1번 하는 binary와 2번 하는 binary의 명령어 수 차이가 Invoke 한 번의 명령어 수입니다.
qemu-system-arm -M mps2-an386 -nographic -semihosting-config enable=on,target=native \ -plugin ./libinsncount.dylib -kernel pd_cmsis_1.elf| kernel | 전체(Invoke 1회) | 전체(Invoke 2회) | Invoke 1회 | .text |
|---|---|---|---|---|
| reference | 529,755,814 | 1,053,819,691 | 524,063,877 | 398,420 byte |
| CMSIS-NN | 28,783,829 | 51,841,564 | 23,057,735 | 430,412 byte |
Invoke 한 번의 명령어 수는 CMSIS-NN이 22.7분의 1입니다. 대신 .text는 31,992 byte 늘었습니다(.text에는 300,568 byte의 모델이 포함됩니다). 실제 MCU의 시간은 명령어 수에 memory wait state, cache, pipeline 효과가 더해지므로 보드의 cycle counter로 다시 잽니다. TFLite Micro의 cortex_m_generic/micro_time.cc는 GetCurrentTimeTicks()에서 DWT CYCCNT(또는 ARM_MODEL_USE_PMU_COUNTERS일 때 PMU cycle counter)를 읽으므로, 보드에서는 MicroProfiler의 tick이 cycle 수입니다. 같은 파일의 ticks_per_second()는 0을 돌려주므로 시간으로 바꾸려면 core clock으로 직접 나눕니다.
#MicroProfiler
#include "tensorflow/lite/micro/micro_profiler.h"
static tflite::MicroProfiler prof;static tflite::MicroInterpreter interp(model, r, arena, kArenaSize, nullptr, &prof);interp.Invoke();prof.LogTicksPerTagCsv();host(aarch64) 빌드는 Makefile이 -DTF_LITE_USE_CTIME을 넣으므로 tick이 clock() 값입니다. 절대값은 MCU와 무관하지만 op 사이의 비중은 볼 수 있습니다.
"Unique Tag","Total ticks across all events with that tag."DEPTHWISE_CONV_2D, 3456CONV_2D, 19078AVERAGE_POOL_2D, 5RESHAPE, 1SOFTMAX, 1"total number of ticks", 22541이 모델에서는 CONV_2D가 전체의 85%입니다.
#Ethos-U
12-03에서 이 모델을 Vela 5.2.0에 넣었을 때 57개 operator가 모두 NPU로 갔습니다(CPU operators = 0). TFLite Micro의 kernels/ethos_u/README.md에 따르면 Vela가 NPU 부분을 Ethos-U custom op로 바꾸고, runtime은 그 op를 만나면 Ethos-U로 넘깁니다. 빌드는 CO_PROCESSOR=ethos_u와 ETHOSU_ARCH를 주고, resolver에는 AddEthosU()를 등록합니다.
make -f tensorflow/lite/micro/tools/make/Makefile network_tester_test CO_PROCESSOR=ethos_u \ ETHOSU_ARCH=u55 TARGET=cortex_m_generic TARGET_ARCH=cortex-m55 microlite같은 README는 Ethos-U driver의 초기화 API를 TFLite Micro API보다 먼저 불러야 한다고 적고, Ethos-U가 있는 실행 환경으로 Arm Corstone-300 FVP를 듭니다. 이 글의 QEMU에는 Ethos-U model이 없어 이 단계는 실행하지 않았습니다.
#자주 보는 함정
⚠️ Invoke 전에 입력을 다시 채우지 않음
같은 입력으로 Invoke를 두 번 부르는 binary를 돌리자 두 번째 결과가 [-113, 113]이 아니라 [2, -2]였습니다(reference, CMSIS-NN 모두). host 빌드에서 Invoke 뒤 입력 tensor를 원래 이미지와 비교하자 9,216 byte 중 9,178 byte가 바뀌어 있었습니다(입력은 arena+18432, 출력은 arena+0). arena 안의 입력 자리를 중간 tensor가 다시 쓴 것입니다. 매 Invoke 전에 입력을 다시 씁니다.
⚠️ arena를 재지 않고 정함
arena_used_bytes()는 target·kernel마다 다릅니다(위 표 82,292~85,024). target 빌드에서 재고, 모자라면 AllocateTensors()의 missing: 값을 봅니다.
⚠️ resolver에 op 누락
모델의 op 하나라도 빠지면 AllocateTensors()가 Didn't find op for builtin opcode로 실패합니다.
⚠️ CMSIS-NN을 켜지 않음
OPTIMIZED_KERNEL_DIR 없이 빌드하면 reference kernel이 들어갑니다. 이 모델에서 reference kernel의 Invoke 명령어 수는 CMSIS-NN의 22.7배였습니다.
⚠️ 입력 양자화 부호
이 모델의 입력은 int8, scale 0.007843, zero_point -1입니다. 실수 입력 x는 12-04의 LiteRT 식 real = (q - zero_point) × scale을 뒤집은 q = round(x / scale) + zero_point로 바꿉니다. - zero_point로 쓰면 zero_point만큼 어긋납니다. 저장소 예제는 uint8 이미지를 넣을 때 128을 빼서 int8로 바꿉니다.
#정리
- TFLite Micro는
.tflite를 flash에 두고, tensor는 고정된 arena 안에서만 할당합니다. MicroMutableOpResolver에 모델이 쓰는 op만 등록합니다. 하나라도 빠지면AllocateTensors()가 실패합니다.- arena 크기는
arena_used_bytes()로 target 빌드에서 잽니다. person detection 모델은 Cortex-M4에서 82,292 byte였습니다. - Cortex-M4에서 CMSIS-NN kernel은 Invoke 명령어 수를 22.7분의 1로 줄였고
.text는 31,992 byte 늘었습니다. - 이 모델에서는 Invoke가 arena 안의 입력 자리를 덮어썼으므로 매 Invoke 전에 입력을 채웁니다.
다음 편은 ONNX Runtime입니다.
#관련 항목
Modern Embedded Recipes · 143 of 153 전체 목차 접기
- 1 Modern Embedded Recipes — 모던 임베디드 실전 레시피 시리즈 소개
- 2 디지털 신호 기초 — Voltage Level·Edge·Noise Margin·반사 분석
- 3 임베디드 클럭과 타이밍 — Skew·Jitter·PLL 분석
- 4 GPIO 내부 구조 분해 — Push-Pull·Open-Drain·Schmitt Trigger
- 5 UART 하드웨어 동작 분석 — Baud Rate·Framing·FIFO
- 6 SPI 하드웨어 분석 — Clock Mode·MOSI/MISO·Chip Select
- 7 I2C 하드웨어 분석 — Open-Drain·Clock Stretching·Arbitration
- 8 ADC 동작 원리 — SAR·Sigma-Delta 비교
- 9 DAC 동작 원리 — R-2R Ladder·Sigma-Delta·Settling Time
- 10 PWM 신호 생성 분석 — Duty·Frequency·Dead Time·Center-Aligned
- 11 CAN 버스 전기적 특성 — 종단·전압 레벨·GND 전위차와 1 Mbit/s 버스 길이 예산
- 12 RS-485·RS-422 차동 신호 분석 — Termination·Biasing·Topology
- 13 LVDS 차동 신호 분석 — Common-Mode·Impedance·Eye Pattern
- 14 ARM Cortex-M 시리즈 비교 — M0·M3·M4·M7·M33·M55 분석
- 15 ARM Cortex-A 시리즈 비교 — A53·A55·A72·A78·X1 분석
- 16 Cortex-M 레지스터 구조 분석 — R0~R15·xPSR·CONTROL·Mask Registers
- 17 Cortex-M4 예외 처리 — Vector Table·NVIC 우선순위·Tail-Chaining
- 18 ARM 메모리 맵 분석 — Normal·Device·Strongly-Ordered Region
- 19 Cortex-M7 캐시와 DMA — Cache Line·Write-Back·Clean/Invalidate 순서
- 20 Cortex-M4 MPU 활용 — Region 배치·Stack Guard·Task 격리
- 21 AArch64 Linux MMU 기초 — Translation Table·TLB·ASID
- 22 ARM TrustZone-M 기초 — Secure/Non-Secure·NSC·MPC
- 23 ARM Memory Barrier 실전 — DMB·DSB·ISB·DMA·MMIO
- 24 임베디드 크로스 컴파일러 분석 — GCC·Clang·Sysroot 구성
- 25 C 컴파일 4단계 — Preprocess·Compile·Assemble·Link 추적
- 26 ELF 파일 구조 분석 — Section·Segment·Symbol Table·DWARF
- 27 링커 스크립트 기초 — SECTIONS·MEMORY·entry point
- 28 링커 스크립트 고급 — Overlay·BSS·init_array·LMA/VMA
- 29 임베디드 스타트업 코드 분석 — Reset_Handler·Vector Table·SystemInit
- 30 C 런타임 crt0 분석 — Stack·BSS Zero·Data Copy·atexit
- 31 임베디드 메모리 레이아웃 — .text·.rodata·.data·.bss·.heap·.stack
- 32 임베디드 컴파일러 최적화 분석 — -O0~-O3·-Os·-LTO 비교
- 33 Map 파일 분석 — 링커가 넣은 것, 끌어온 이유, 버린 것 읽기
- 34 Make·CMake 크로스 컴파일 — Toolchain File·Sysroot·Preset
- 35 임베디드 Bootloader 체인 — BootROM·SPL·U-Boot·Kernel·Secure Boot
- 36 첫 bare-metal 프로그램 작성 — Linker·Startup·main의 최소 구성
- 37 MMIO 레지스터 직접 접근 — volatile·Memory Map·Aliasing 분석
- 38 GPIO 드라이버 직접 구현 — STM32F407을 HAL 없이 레지스터로
- 39 임베디드 클럭 설정 분석 — HSE·PLL·SYSCLK·AHB/APB 분주
- 40 Cortex-M 인터럽트 핸들링 — NVIC·Priority·Vector·EXTI
- 41 SysTick 타이머 활용 — 24-bit Counter·1ms Tick·delay 구현
- 42 UART 드라이버 구현 — polling·interrupt·DMA 3가지 방식 비교
- 43 SPI 드라이버 구현 — Master·Slave·CRC·DMA
- 44 I2C 드라이버 구현 — STM32F405/407 Master·Repeated START·Clock Stretching·Bus Recovery
- 45 임베디드 DMA 기초 — Memory-to-Memory·Peripheral·Circular Mode
- 46 저전력 모드 분석 — Sleep·Stop·Standby·Wake-up Source
- 47 STM32F405/407 IWDG·WWDG 워치독 구현 — Independent vs Window 비교
- 48 임베디드 Flash 프로그래밍 — Erase·Program·Read While Write
- 49 DDR 초기화 실패 진단 — Timing·Calibration·Walking Bit Test
- 50 PWM 출력 실전 — LED 밝기·모터 속도 제어
- 51 DC 모터 제어 — H-Bridge·PWM Duty·Encoder Feedback
- 52 스테퍼 모터 제어 — Full Step·Half Step·Microstepping
- 53 서보 모터 제어 — 50 Hz PWM·다채널·Calibration
- 54 Character LCD 제어 — HD44780·4-bit Mode·Custom Char
- 55 SPI OLED 제어 — SSD1306·Frame Buffer·Page 단위 갱신
- 56 TFT 디스플레이 구동 — ILI9341 SPI와 STM32F746 LTDC
- 57 환경 센서 활용 — BME280 온습압·SHT3x 비교
- 58 IMU 센서 활용 — MPU-6050·Data Ready·Complementary Filter
- 59 CAN 통신 구현 — bxCAN Bit Timing·Filter·Mailbox·Error 상태
- 60 USB Device 기초 — TinyUSB CDC·Descriptor·STM32F407 OTG_FS
- 61 Ethernet MAC+PHY 통합 — RMII·MDIO·lwIP Raw API
- 62 SD 카드 SPI 모드 + FatFs — 초기화·diskio 포팅·다중 블록 쓰기와 f_sync
- 63 STM32F4 RTC 활용 — Calendar·Alarm·Sub-second·Tamper·Backup Register
- 64 RTOS 도입 결정 분석 — Super Loop vs RTOS 트레이드오프
- 65 RTOS Task 설계 패턴 — 우선순위·스택·State Machine
- 66 RTOS Scheduler 동작 분석 — Tick·Context Switch·Yield
- 67 RTOS Semaphore 활용 — Binary·Counting·ISR Give
- 68 RTOS Mutex 활용 — Recursive·Priority Inheritance 적용
- 69 RTOS Queue 활용 — By-Value·By-Reference·Timeout 패턴
- 70 RTOS Event Group 활용 — Bit Wait·Sync·Notify
- 71 RTOS Software Timer 활용 — One-shot·Auto-reload·Daemon Task
- 72 ISR-Safe API 설계 — Reentrant·Atomic·Defer 패턴
- 73 Priority Inversion 진단·예방 — Mars Pathfinder Lesson 추적
- 74 Timer Wheel 분석 — Hashed·Hierarchical·O(1) Tick
- 75 RTOS 디버깅 기법 — Stack·Heap·Run-time Stats·SystemView
- 76 i.MX8M Mini EVK Linux 부팅 흐름 — BootROM에서 PID 1까지 단계별 인계
- 77 U-Boot 활용 — bootcmd·env·tftp·boot.scr 분석
- 78 Device Tree 실전 — DTS·DTB·Overlay·Phandle 추적
- 79 Device Tree Overlay 적용 — Runtime fragment·dtoverlay
- 80 임베디드 커널 빌드 — defconfig·menuconfig·Image·deb 패키지
- 81 커널 모듈 기초 — init/exit·Parameter·KBuild·modprobe
- 82 캐릭터 드라이버 작성 — file_operations·cdev·register_chrdev
- 83 Platform 드라이버 작성 — of_match·devm 해제 순서·probe 실패 판정 (Linux v6.12)
- 84 mmap 4가지 모드 — Anonymous·File·Shared·Huge Page
- 85 epoll 실전 — LT·ET·ONESHOT·EXCLUSIVE 비교
- 86 UIO·VFIO 분석 — User-Space Driver와 IOMMU 격리
- 87 sysfs·configfs 활용 — kobject 기반 User 인터페이스
- 88 IRQ Affinity 설정이 거부되거나 되돌아가는 이유 — smp_affinity·effective_affinity·isolcpus·irqbalance
- 89 루트 파일시스템 구축 — Buildroot 기초·Package·Toolchain
- 90 임베디드 동적 메모리 — malloc 위험·결정성·대안 분석
- 91 메모리 정렬과 패딩 분석 — Natural·Strict Alignment·Trap
- 92 Cache Line Alignment — alignas·Padding·SoA 적용
- 93 DMA-Friendly Allocator — dma_alloc_coherent·IOMMU·Pool
- 94 Zero-Copy Pipeline — DMA-BUF·sendfile·io_uring·splice
- 95 NUMA Memory Topology — numactl·numa_alloc·HBM 적용
- 96 SIMD 활용 분석 — Intrinsics·Auto-Vectorization·OpenMP SIMD
- 97 ARM NEON 심화 — Matrix Multiply·FFT·Image Filter 적용
- 98 임베디드 스택 분석 — high-water·overflow 탐지
- 99 임베디드 코드 크기 최적화 — -Os·LTO·Section Garbage Collection
- 100 임베디드 전력 최적화 — Sleep Mode·Clock Gating·DVFS
- 101 WCET 분석 기법 — Static·Measurement·Hybrid 방법론
- 102 Lock-Free Ring Buffer 구현 — SPSC·Power-of-2·Memory Order
- 103 Wait-Free Signaling — Atomic Flag·Sequence·Latest-Value
- 104 RCU (Read-Copy-Update) 기초 — Quiescent State·Grace Period
- 105 Hazard Pointer 분석 — Lock-Free Memory Reclamation
- 106 Compare-And-Swap 패턴 — Stack·Counter·Linked List 적용
- 107 Atomic Operation 비용 분석 — Fence·Cache Line·Contention
- 108 Spinlock vs Mutex 결정 가이드 — Context Switch·Hold Time
- 109 ABA 문제 회피 — Tagged Pointer·Hazard·Generation Counter
- 110 False Sharing 해결 — Cache Line Padding·Per-CPU·thread_local
- 111 MPMC Queue 구현 — Multi-producer Multi-consumer Lock-Free
- 112 임베디드 디버깅 마인드셋 — 가설·격리·재현·이분탐색
- 113 JTAG·SWD 안 붙을 때 — 핀·전압·속도·세션 진단
- 114 GDB 원격 디버깅 — OpenOCD·J-Link·target remote 구성
- 115 Cortex-M 하드폴트 분석 — Stacked Frame·CFSR 읽기
- 116 UART 안 찍힐 때 — Bare-metal 체크리스트
- 117 임베디드 부팅 실패 진단 — 단계별 Isolation
- 118 인터럽트 누락·중복 진단 — Priority·Pending·Re-entry 추적
- 119 메모리 오버플로우·오염 진단 — Canary·MPU·Pattern 분석
- 120 타이밍·Race 진단 — Heisenbug 잡는 법
- 121 통신 프로토콜 분석 — Logic Analyzer와 Protocol Decoder
- 122 임베디드 로깅 시스템 설계 — 레벨·버퍼·SWO·Deferred
- 123 임베디드 포스트모템 분석 — Core Dump와 Field Crash
- 124 FPGA 기초 분석 — LUT·FF·BRAM·DSP 자원 구조
- 125 Vivado 사용법 — Project·Constraint·Synth·Impl·Bitstream
- 126 PCIe BAR 매핑 분석 — Config Space·Enumeration·MMIO 접근
- 127 AXI 인터페이스 — AXI4·AXI4-Lite·AXI-Stream 비교
- 128 Zynq PS-PL 통신 — GP·HP·ACP 인터페이스 선택
- 129 Mailbox Protocol 분석 — Host와 Accelerator를 잇는 Doorbell
- 130 Command Queue·Submission Queue — NVMe·XDMA 공통 패턴
- 131 DMA Completion 메커니즘 — Interrupt·Polling·Completion Ring
- 132 PCIe Streaming 분석 — BAR Type·MSI-X·Kernel Bypass
- 133 Vitis HLS 분석 — Pragma·Pipeline II·Dataflow 실전 감각
- 134 HLS 최적화 기법 — Pipeline·Unroll·Partition·Dataflow
- 135 Vitis AI 분석 — DPU·xmodel·VART
- 136 OpenCL on FPGA — Kernel·Channel·Burst Memory 분석
- 137 Intel Quartus로 넘어가기 전 — 어느 toolchain에서나 쓰는 HDL과 testbench
- 138 Edge Inference 분석 — Cloud vs Edge·Latency·Privacy
- 139 Edge 추론 Pipeline 측정 — Stage Latency·Mailbox 정책·Buffer 수
- 140 NPU 아키텍처 분석 — Ethos·Hexagon·Systolic Array 비교
- 141 딥러닝 Quantization 분석 — PTQ·QAT·INT8·INT4·Calibration
- 142 TensorRT 분석 — ONNX→Engine·FP16·INT8·DLA·Multi-Stream
- 143 TFLite Micro 분석 — Op Resolver·Tensor Arena·Cortex-M
- 144 ONNX Runtime 분석 — Execution Provider와 Cross-Platform 배포
- 145 Edge Thermal Management — Throttling·DVFS·Fan Curve·Sustained
- 146 NVIDIA Jetson 분석 — Nano·Xavier·Orin·Thor·JetPack·DLA·VPI
- 147 Zero-Copy Camera Pipeline — V4L2·DMA-BUF·GPU Import·NPU 직결
- 148 온디바이스 LLM 추론 — llama.cpp·GGUF·MLX·KV Cache·NPU Backend
- 149 Cortex-M33 TF-M·TrustZone — Secure Firmware·PSA·MCUboot
- 150 Matter·Thread 분석 — IoT 통합 표준·Commissioning·Multi-Fabric
- 151 PCIe → CXL 진화 — 같은 PHY 위 cache-coherent 프로토콜 추가
- 152 QEMU CXL Type 3 디바이스 에뮬레이션 — 노트북에서 CXL 개발 환경 구축
- 153 Linux CXL 드라이버 분석 — cxl_pci·cxl_core·region·DAX