nRF5340: SPSC ring buffers across the application and the network core (2026-11-17)

Plan item 2a (lab/plans/2026-11-16-mp-bundle-and-open-areas.md). The second dual-core case after the RP2350's SMP mode, and an asymmetric one: the application core (Cortex-M33, 64 MHz) and the network core (Cortex-M33, 64 MHz, no DSP extension) share the application core's RAM, each running the library's code from its own flash.

The chip, first (firmware/nrf5340-net-probe/)

Test (firmware/rb-xcore-stress/)

Producer on one core, consumer on the other, both directions; the library object at the same address in both images (checked at build time, 32 symbols); random pauses on both sides, fast and slow phases. One library per reset over the serial port. Libraries: those documented for several cores or threads (the RP2350 SMP set), pxq for information (a single-core design), and the ISR test's broken buffer with its SMP window as the control. Firmware commit 7a3d248.

Result: 300000 bytes per library and direction

Single bytes Blocks (1-16 / 1-4)
15 libraries documented for several cores (lwrb, jnk0le, ETL atomic, QP LFRB, micoring, kostyk348 lf_spsc, diffstorm, rigtorp, polycratia, rt-spsc, Zephyr CONFIG_SMP, DNedic lockfree spsc, moodycamel, heapless spsc, bbqueue) 0 errors, both directions 0 errors, both directions
pxq RingBuffer_PackedState ⚠ (not counted) 0 errors 0 errors
control (broken, SMP window) 274 / 68708 errors 329 / 14918 errors

Not covered yet

Records: ~/lab-runs/xcore-20261117/ (lib-lab1).