Verified On Hardware

These examples are the current LPCXpresso51U68 bring-up path. Open any card to see the expected result, commands, and a direct code download.

01 Verified
Hardware

Board Contact

Confirm that your debug probe and USB-to-UART adapter are visible before building firmware.

lsusb
02 Verified
Boot

Minimal Flash

Build and flash the smallest firmware first, proving startup, linker script, vector checksum, and probe path.

make -C firmware/lpc51u68_minimal clean all
03 Verified
Serial

UART Smoke Test

Initialize the board serial port and print a repeating counter through a USB-to-UART adapter.

make -C firmware/lpc51u68_uart clean all
04 Verified
LED

GPIO Blink

Cycle the LPCXpresso51U68 D2 RGB LED while printing each state over the serial debug channel.

make -C firmware/lpc51u68_gpio_blink clean all
05 Verified
Timing

SysTick UART

Use the millisecond SysTick to schedule periodic serial reports without a busy delay loop.

make -C firmware/lpc51u68_systick_uart clean all
06 Verified
Scheduler

CleverOS Boot

Start the CleverOS runtime with two tasks, SysTick, PendSV context switching, LED output, and serial logs.

make -C firmware/lpc51u68_cleveros_boot clean all
07 Verified
Tasks

LED/UART Runtime

Demonstrate two readable RTOS tasks: one reports over serial, while one changes the LED state.

make -C firmware/lpc51u68_cleveros_boot clean all
08 Verified
Queues

Queue Message Passing

Run producer and consumer tasks that exchange timestamped messages through a bounded queue.

make -C firmware/lpc51u68_cleveros_queue_demo clean all
09 Verified
Tool

Browser UART Viewer

Serve a small local browser page that tails the serial adapter and keeps demo logs readable.

python3 -m pip install pyserial

Queue Demo Evidence

The queue demo is the first feature-oriented demonstration because it proves task communication, critical sections, runtime timing, UART telemetry, and LED output in one compact example.

  • Producer sends two messages per second.
  • Consumer receives every 400 ms.
  • Bounded queue depth is visible in UART logs.
  • D2 RGB state follows consumed message IDs.
make -C firmware/lpc51u68_cleveros_queue_demo clean all
make -C firmware/lpc51u68_cleveros_queue_demo flash
make -C firmware/lpc51u68_cleveros_queue_demo verify flash

queue prod tick 0x00004944 0x00000024 0x00000001
queue cons tick 0x00004996 msg 0x00000024 age 0x00000052 depth 0x00000001 led red

Next Demonstrations

These pages are prepared as scaffolds so the next CleverOS features can be documented with the same result-and-download structure.

01 Next
Next

Stack Safety Telemetry

Fill task stacks with a known pattern, measure high-water marks, and report margin over serial.

make -C firmware/lpc51u68_cleveros_stack_demo clean all
02 Next
Next

Task Load Reporting

Track idle time and task activity so CPU load trends can be observed while demos run.

make -C firmware/lpc51u68_cleveros_load_demo clean all
03 Next
Next

Allocator And Leak Demo

Demonstrate allocation accounting and leak reporting hooks for future product firmware.

make -C firmware/lpc51u68_cleveros_alloc_demo clean all