博文

目前显示的是标签为“ISP”的博文

What is IAP in microcontroller?

图片
 In microcontroller context, IAP almost always means In-Application Programming . 1. Basic idea In-Application Programming (IAP) = The MCU can re-program its own Flash while your application code is running , without needing an external programmer (ST-Link, J-Link, etc.) or going into a separate factory programming mode. So instead of: PC → programmer → MCU (ISP / SWD / JTAG) you can do: PC / other device → your firmware → MCU’s Flash (via IAP) Your code acts as its own flash programmer . 2. IAP vs ISP vs bootloader ISP (In-System Programming) Usually means programming via a debug/programmer tool (JTAG/SWD, UART, etc.) Often uses a bootloader mode that runs instead of your application. Bootloader Small piece of code that runs first after reset. It may: Check for a new firmware image, Receive it over UART/USB/CAN/etc., Program it into Flash (using IAP services), Then jump to the main application. IAP The mechanism by whi...