Boot Example
Minimal Flash
Build and flash the smallest firmware first, proving startup, linker script, vector checksum, and probe path.
Run It
Use these commands from the COS workspace when the board and serial adapter are attached.
make -C firmware/lpc51u68_minimal clean allmake -C firmware/lpc51u68_minimal flashmake -C firmware/lpc51u68_minimal verify flash
What To Look For
- The program enters main and increments a volatile counter.
- The flash and verify flow works before peripheral code is added.
- This target is the baseline for every later demo.
#include <stdint.h>
volatile uint32_t cos_lpc51u68_minimal_counter;
int main(void)
{
for (;;) {
cos_lpc51u68_minimal_counter++;
__asm volatile("nop");
}
}