Skip to content

ESP32-C3

The fixed-point tier's target: an Espressif ESP32-C3, RISC-V at 160 MHz with no floating-point unit at all. iclforge::ac3_minimal decodes here the same way it does on the Cortex-M3 leg's fixed-point build — -DICLFORGE_DECODE_SCALAR=fixed, Q7.24 integers under a per-block exponent — because that is what a part with no FPU wants. It shares the same firmware/esp-idf/iclforge/ component and manifest as ESP32-S3; only the target and the arithmetic tier differ.

Status

Decode Correct, and that is all this row claims. firmware/baremetal/platform/esp32c3/ is a probe target CI runs under qemu-riscv32: twelve of the fourteen fixtures decode, every one producing PCM identical to the x86 host's and the Cortex-M3 leg's — three architectures, three compilers, one pinned set of hashes (testdata/fixed-probe-pcm-hashes.json)
Memory Peaks at 195,505 bytes of heap across the twelve fixtures that run (eac3_atmos_render). The part reports 246,332 bytes free before a decode in a heap whose largest block is 114,688, so the total is not a budget. The probe skips the two 7.1.4 rows on a budget of 230,000 bytes, against 238,094 and 244,502 recorded for them when the decoder used more memory; the Cortex-M3 leg's fixed tier now peaks at 174,850 and 181,258 bytes on them, and this leg still skips them, so whether they fit here now has not been run
Speed Unmeasured. QEMU is not cycle-accurate and no C3 board has run this. On the Cortex-M3 leg an E-AC-3 5.1 frame is 4.2 M integer instructions against 12.9 M soft-float, AC-3 5.1 3.7 M, AC-3 2/0 1.2 M and mono 0.61 M — against 5.12 M cycles per frame at 160 MHz, but instructions are not cycles and no leg models this part's 16 KB flash cache. The ESP32-C6, a 160 MHz RISC-V core with no FPU in the same tier, has been timed on a board: AC-3 5.1 at 0.64x a frame, E-AC-3 5.1 at 0.75x, stereo 0.20x and 0.32x, with no network
Encode Not validated here at all: both encoders are floating-point, which on a part with no FPU means software floating point
AC-4 Builds in the fixed-point tier (CONFIG_ICLFORGE_AC4; an image of the decoder alone is 1,158,768 bytes) and does not fit the part: the decoder peaks at 286,365 bytes at 2.0, where the probe reports 249,180 bytes free. For the same reason this part's QEMU leg cannot run the AC-4 probe; its instruction set, RV32IMC, gave the fixed tier's pinned hashes on QEMU's virt board with the C3's compiler, run by hand. No ESP32 sink takes AC-4 in a Sendspin group
Real silicon None. Correctness is established under qemu-riscv32 emulation
CI The esp32c3 fixed-point leg (build-esp32c3, under QEMU) beside build-esp32s3 in .github/workflows/_build.yml, in the esp lane of ci.yml: after a merge to main that changes the ESP32 trees or a tree its component ships (the lane table lists them), and in the nightly run (CI for many agents)

Why this part, and not another ESP32 variant

Whether a part is viable comes down to floating point, not RAM. Espressif measure a single-precision cosine at ~2,377 cycles on an ESP32-C3 against 121 on an ESP32-S3 (Floating-Point Units on Espressif SoCs).

Part Usable RAM Clock FPU Vector unit Viable
ESP32-S3 341,760 DIRAM 240 MHz single PIE, integer-only; 128-bit float load/store Yes — the primary target
ESP32-P4 768 KB L2MEM 400 MHz (360 on pre-production v1.x silicon) single PIE, integer-only; no wide float load Not as S3 replacement — complementary best sink module, real time on every fixture in the probe, Wi-Fi through the board's C6 in hearth_sink, and the only part here that decodes AC-4 (ESP32-P4)
ESP32 (LX6) ~320 KB 240 MHz single none Plausible, slower
ESP32-S2 320 KB 240 MHz none none No — soft-float everything
ESP32-C3/C6/C61 400/512/320+PSRAM KB 160 MHz none none Yes, in the fixed-point tier — this page and ESP32-C6; C61 proposed, no board

Every part with an FPU has a single-precision one, so double is soft-float across the whole family and decode_scalar_t earns its keep on all of them.

Why not the ESP32-P4

Assessed and declined on 2026-09-08 as a replacement for the ESP32-S3 Wi-Fi Sendspin sink. It is dual-core RISC-V at 400 MHz with 768 KB of SRAM, and holds the peak heap without the float32 work — so it reads as the answer if the S3 misses real time. Three things were checked and two settle that closer.

Its vector extension has no floating point. The P4 is RV32IMAFC plus Xhwlp and Xesppie, vendor extensions no other implementation carries — not the ratified RISC-V Vector extension. Across the 360 instructions in ESP-IDF's own decoder test for it, the only data types are s8, s16, s32, u8, u16, u32. No f32 anywhere. Espressif's own code agrees: in esp-dsp every _arp4 file using a PIE instruction sits under fixed/, and the float32 kernels contain exactly one esp. instruction each — esp.lp.setup, the hardware loop — with scalar fmadd.s arithmetic. So an f32x4 has nothing to compile to there either. (The S3 has the same integer-only PIE limit and still decodes in scalar float.)

It has no radio, and the plan it would replace is a Wi-Fi plan. No Wi-Fi and no Bluetooth; it needs a companion ESP32-C6 or -H2 (or Ethernet). That disqualifies it as a drop-in for the S3 node. The S3 probe has since cleared every fixture in real time, so the “rescue the decode” motivation is gone for that product shape.

What the P4 would buy is clock — 12.8 M cycles per frame against the S3's 7.68 M, 1.67×, per-core in both cases — plus wider TDM (up to 16×32-bit on one controller) and more internal SRAM.

Reopened 2026-09-21 as a complementary “best” module, extended 2026-09-23 with a proposed C61 tier, on a shared dual-ES9080 PCB (C6 = OK, 2.0 shipped / durable ceiling, no PSRAM on this die; C61 = good, 5.1 desired / PSRAM-backed, proposed, no board yet; S3 = better ≤7.1.4 without enhanced coupling / both DACs @ 16-bit, shipped; P4 = best ≤9.1.6 with full tools desired / both DACs @ 32-bit). The P4 probe of that design is done: ESP32-P4 is real time on every fixture on a board with no network in the probe, and hearth_sink has since played a paired Sendspin stream on it over Wi-Fi through the onboard C6 — with a chip-revision trap specific to pre-production silicon worth reading before flashing one.

Building

Uses the same firmware/esp-idf/iclforge/ component and EXTRA_COMPONENT_DIRS setup as ESP32-S3 → The ESP-IDF component. firmware/baremetal/platform/esp32c3/ is the probe target:

. $IDF_PATH/export.sh
python "$IDF_PATH/tools/idf_tools.py" install qemu-riscv32   # once
cd firmware/baremetal/platform/esp32c3
idf.py set-target esp32c3
idf.py build                                  # -DICLFORGE_DECODE_SCALAR=fixed by default
idf.py qemu

tools/checks/run_esp32c3_probe.sh drives that leg. Its distinguishing gate is not a footprint ceiling but the PCM itself: the tier's arithmetic is integer, so the probe's per-fixture hashes are the same on RISC-V as on the x86 host and the Cortex-M3 leg, and the runner holds all three to one pinned set (testdata/fixed-probe-pcm-hashes.json). --scalar=float builds the same part with the S3's tier, which is what the two arithmetics are compared with.

Any other project built for this target against the component gets the fixed-point tier too: when a project leaves ICLFORGE_DECODE_SCALAR unset, the component sets it from the part, and a part with no FPU gets fixed (ESP32-S3 → The ESP-IDF component).

Where to go next