
What a Bootloader Does and How It Hands Control to the Application
A plain explanation of what a microcontroller bootloader does at reset, how the vector table makes a hand-over possible, and what the application inherits.
Tag
362 posts

A plain explanation of what a microcontroller bootloader does at reset, how the vector table makes a hand-over possible, and what the application inherits.

Write a Q15 FIR filter in portable C with a circular delay line, a 32-bit accumulator and one saturating shift at the end, with worked moving-average output.

Compare one Linux 6.18 module in C and Rust for safety, error handling, build cost and API coverage, then pick the language for your next kernel module.

Call arm_fir_q15 and arm_biquad_cascade_df1_q31 from CMSIS-DSP to filter fixed-point samples on a Cortex-M, with correct state sizes, scaling and block layout.

Widen before you multiply, shift with rounding, pre-scale before you divide, and saturate the result. Q15 and Q16.16 routines in portable C that never overflow.

Use nrfx drivers directly on an nRF52 in the nRF Connect SDK: enable the nrfx timer, connect its interrupt and run a periodic callback without Zephyr drivers.

Define a custom 128-bit GATT service on nRF52 with Zephyr: characteristic properties, read and write callbacks, notifications through the CCC and MTU limits.

Read lines of any length in C with getline, reuse one growing buffer, strip the newline, spot read errors and handle files without a final newline.
Advertise a non-connectable BLE beacon on an nRF52 with Zephyr: advertising data, bt_le_adv_start parameters, intervals and an iBeacon payload.

Report failures from a C tool the Unix way: perror, strerror and the err and warn family, with errno saved correctly and messages sent to stderr.

Learn the eight printk log levels, the pr_info and pr_err helpers, pr_fmt prefixes, rate limiting and the console loglevel that decides what reaches the screen.

Flash an nRF52840 Dongle over USB with nrfutil, the built-in bootloader and a DFU package, without a debug probe, then recover it back into bootloader mode.