← board

esp32s2: atomics by interrupt masking

The mechanism (2026-09-24)

SocHasAtomicISA (defs.inc) is false for SOC_ESP32S2. When an IR atomic reaches the xtensa emitter on that chip, it refuses with a message that names this ticket. Before 2026-09-24, --target=esp32s2 emitted wsr.scompare1 / s32c1i pairs (six in scheduler.pas), which is an illegal instruction on S2 silicon. It built without complaint and would have crashed on the first CAS.

What the arm needs