Quiet Pulse

FreeRTOS Heartbeat Stops Debug

Symptom

After HB:1 and HB:2, all three correct block checksums print. Then the heartbeat stops for good.

Circuit

Block diagram: U1, an STM32F4, sends USART1 TX on PA9 to J1, a serial host and console, and receives the block numbers J1 sends on USART1 RX, PA10.

Pass condition

All twelve heartbeats print, HB:1 to HB:12, with one BLOCK:<n> CRC:<hex> line per requested block where figure 2 shows it.

Expected serial console: HB:1 and HB:2, then three BLOCK checksum lines for the requested blocks, then the heartbeat continuing HB:3 through HB:12 interleaved after the blocks.

Notes

The host sends three block numbers 25 ms after reset, at 9600 baud (BRR = 0x683). FreeRTOS 11.1, 1 ms tick, 24 KB heap.

Related challenges

Loading the interactive arena.