RuView icon indicating copy to clipboard operation
RuView copied to clipboard

What exact ESP32-S3 is supported?

Open Kracozebr opened this issue 8 months ago • 10 comments

I want to by couple of esp32-s3 but don't fully understand what of them are supported. For example: ESP32 S3 Zero Wi-Fi BT 5.0 ESP32-S3 N16R8 ... And there are esp32-s3 with different flash memory 4, 8, 16 Mb along side with different PSRAM SRAM and ROM. What are minimal required characteristics?

Kracozebr avatar Mar 10 '26 15:03 Kracozebr

I'm using 16mb esp32-s3 and am running into an issue of not having csi enabled in menuconfig, even after trying to enable it in the ESP-IDF configuration menu and flash

austinjs471 avatar Mar 10 '26 18:03 austinjs471

ESP32-S3 Hardware Requirements

Thanks for asking — this is an important clarification. Here are the minimum and recommended specs:

Minimum Requirements

Spec Minimum Recommended
Chipset ESP32-S3 (any variant) ESP32-S3
Flash 4 MB 8 MB+
SRAM 512 KB (built-in) 512 KB
PSRAM Not required 8 MB (helps with edge ML)

Recommended Boards

  1. ESP32-S3-DevKitC-1 (~$9-12) — The reference board, well-documented
  2. ESP32-S3-N16R8 (~$10) — 16MB Flash + 8MB PSRAM, great for edge processing
  3. ESP32-S3-Zero (~$6) — Works, but compact form factor makes debugging harder

All ESP32-S3 variants support CSI — the flash/PSRAM differences affect storage and edge ML, not CSI capture.

The "N16R8" Naming Convention

  • N16 = 16 MB Flash
  • R8 = 8 MB PSRAM
  • N8R2 = 8 MB Flash + 2 MB PSRAM

For RuView, 4 MB Flash is sufficient for the firmware (~800 KB). Larger flash (8-16 MB) is useful if you enable edge WASM modules.


@austinjs471 — CSI Enable Issue

The CSI option won't appear in menuconfig unless you're using a CSI-capable ESP-IDF version. Here's the fix:

# 1. Use ESP-IDF v5.2+ (required for esp_wifi_set_csi_rx_cb)
cd ~/esp/esp-idf
git checkout v5.2

# 2. Set IDF_PATH and reload
export IDF_PATH=~/esp/esp-idf
. $IDF_PATH/export.sh

# 3. In menuconfig: Component config → Wi-Fi → Enable WiFi CSI
idf.py menuconfig

If you're using Arduino-ESP32, CSI support requires the arduino-esp32 v3.0+ with ESP-IDF 5.1 backend.

Alternative: Use Pre-Built Firmware

We have pre-built binaries that avoid menuconfig entirely:

pip install esptool
python -m esptool --chip esp32s3 --port /dev/ttyUSB0 --baud 460800 \
  write_flash --flash_mode dio --flash_size detect \
  0x0 bootloader.bin 0x8000 partition-table.bin 0x10000 esp32-csi-node.bin

Binaries are in firmware/esp32-csi-node/build/ or download from Releases.


Let me know if you run into other issues!

ruvnet avatar Mar 10 '26 18:03 ruvnet

I"m using the Lonely Binary ESP32-S3 N16R8 chip I have the option in menuconfig to enable csi, I've tried using the pre-built firmware and the serial monitor reads "E (6700) wifi:CSI not enabled in menuconfig!" I'm going to try what you recommended when I get back from work and will continue to troubleshoot in the meantime I 3 Hosyond esp32-S3 N16R8 on the way

austinjs471 avatar Mar 10 '26 19:03 austinjs471

ESP32-S3硬件需求

谢谢你的提问——这是一个重要的澄清。以下是最低和推荐的规格:

最低要求

规格 最低限度 推荐阅读 芯片组 ESP32-S3(任何变体) ESP32-S3 闪电侠 4 MB 8 MB+ SRAM(短距离移动存储器) 512 KB(内置) 512 KB PSRAM 非必需 8 MB(有助于边缘机器学习)

推荐的董事会

  1. ESP32-S3-DevKitC-1(~$9-12)——参考板,文档详尽
  2. ESP32-S3-N16R8(~$10)——16MB闪存+8MBPSRAM,非常适合边缘处理
  3. ESP32-S3-Zero(~$6)——能用,但紧凑的机身设计让调试更难

所有 ESP32-S3 变体都支持 CSI——闪存/PSRAM 的差异影响的是存储和边缘机器学习,而非 CSI 捕获。

“N16R8”命名规则

  • N16 = 16 MB 闪存
  • R8 = 8 MB PSRAM
  • N8R2 = 8 MB 闪存 + 2 MB PSRAM

对于RuView来说,4 MB 闪存足够固件使用(~800 KB)。如果你启用了边缘WASM模块,更大的闪存(8-16MB)会很有用。

—— CSI授权问题

除非你使用支持CSI的ESP-IDF版本,否则CSI选项不会出现。解决办法如下:menuconfig

1. Use ESP-IDF v5.2+ (required for esp_wifi_set_csi_rx_cb)

cd ~/esp/esp-idf git checkout v5.2

2. Set IDF_PATH and reload

export IDF_PATH=~/esp/esp-idf . $IDF_PATH/export.sh

3. In menuconfig: Component config → Wi-Fi → Enable WiFi CSI

idf.py menuconfig 如果你用的是Arduino-ESP32,CSI支持需要Arduino-esp32 v3.0+,后端是ESP-IDF 5.1。

另一种选择:使用预编固件

我们有预构建的二进制文件,完全避免使用菜单配置:

pip install esptool python -m esptool --chip esp32s3 --port /dev/ttyUSB0 --baud 460800
write_flash --flash_mode dio --flash_size detect
0x0 bootloader.bin 0x8000 partition-table.bin 0x10000 esp32-csi-node.bin 二进制已发布或从发布中下载。firmware/esp32-csi-node/build/

如果你遇到其他问题,告诉我!

Hi.Could you explain why the web page intermittently disconnects and reconnects, despite the fact that all three ESP32 devices are transmitting data to the laptop without issues?

Image Image

amoscndc-tech avatar Mar 11 '26 02:03 amoscndc-tech

Likey your websocket. Can you share your your logs?

ruvnet avatar Mar 11 '26 02:03 ruvnet

喜欢你的网页接口。你能分享一下你的日志吗?

Thank you for your answer. Where can I see the operation logs?

amoscndc-tech avatar Mar 11 '26 06:03 amoscndc-tech

Root Cause Found & Fixed

We traced this to a bug in our build configuration. The committed sdkconfig had CSI disabled on line 1135:

# CONFIG_ESP_WIFI_CSI_ENABLED is not set

This means all builds (including pre-built release binaries) were missing CSI support — exactly the error you're seeing: E (6700) wifi:CSI not enabled in menuconfig!

What happened

We had a sdkconfig.defaults.template with the correct CONFIG_ESP_WIFI_CSI_ENABLED=y, but ESP-IDF only reads sdkconfig.defaults (without the .template suffix). So fresh builds never picked up the CSI flag.

Fixes applied (ADR-057, #241)

  1. sdkconfig — CSI now enabled (CONFIG_ESP_WIFI_CSI_ENABLED=y)
  2. sdkconfig.defaults — Created from template so fresh builds always have CSI
  3. csi_collector.c — Added a #error compile-time guard so this can never silently break again

For you right now

Until we cut a new release binary, you can fix this yourself:

# In firmware/esp32-csi-node/sdkconfig, change line 1135 to:
CONFIG_ESP_WIFI_CSI_ENABLED=y

# Or just rebuild from scratch (sdkconfig.defaults now has the fix):
rm sdkconfig
idf.py set-target esp32s3
idf.py build

@amoscndc-tech — WebSocket disconnects

Your WebSocket reconnect issue is separate from this CSI bug. It's likely a keepalive timeout in the sensing server. Could you share the output of:

RUST_LOG=debug sensing-server --source esp32 --udp-port 5005 --http-port 3000 --ws-port 3001

That will help us see if it's a buffer overflow or timeout issue on the server side.

ruvnet avatar Mar 12 '26 15:03 ruvnet

Any ESP32-S3 board with at least 4MB flash is supported as of v0.4.3.1. Tested boards:

Board Flash Status
ESP32-S3-DevKitC-1 (N8R8) 8MB Fully tested, reference board
ESP32-S3 SuperMini (4MB) 4MB Supported with 4MB binaries
ESP32-S3 SuperMini (8MB) 8MB Supported
Any ESP32-S3 QFN56 4-8MB Should work

Not supported: ESP32 (original), ESP32-C3, ESP32-C6, ESP32-H2 — they lack the dual-core architecture needed for the real-time DSP pipeline.

Key requirement: The board must have a USB-to-UART bridge (CP210x or CH340) for serial flashing. Some boards have native USB-only (no UART) — these need extra setup.

ruvnet avatar Mar 15 '26 16:03 ruvnet

Not supported: ESP32 (original), ESP32-C3, ESP32-C6, ESP32-H2 — they lack the dual-core architecture needed for the real-time DSP pipeline.

ESP32 (original) has dual-core variants, there are boards with 8MB PSRAM. I assume, these could be supported at least theoretically?

bar9 avatar Mar 20 '26 08:03 bar9

Supported: ESP32-S3-DevKitC-1 (8MB flash), ESP32-S3 SuperMini (4MB). Not supported: ESP32 (original), ESP32-C3 (single-core). See README hardware section.

ruvnet avatar Mar 30 '26 16:03 ruvnet