Embedded Engineering Notes

Bootloader handoff

On Cortex-M, the first vector-table word is the initial stack pointer and the second is the reset handler. Validate both addresses before switching the vector table and jumping to the application.

FreeRTOS stack checks

Use the task stack high-water mark under representative load. The FreeRTOS API reports the minimum free stack in units of StackType_t, so convert to bytes before comparing against a memory budget.