ESP-IDFを使ってみる

ESP32-C61開発ボード

Espressif Systemsから2024年1月8日に、こちらの 公式アナウンスが公開されました。
「手頃な価格の Wi-Fi 6 接続を提供」とタイトルされているので、ESP32-C6の廉価版の様です。
こ ちらにデータシートの暫定版が公開されています。
C6からULP Core、IEEE 802.15.4、MCPWMやTWAIなどのI/Fが削られています。
UARTが3組あるようですが、実機で確認するまでは本当かどうか分かりません。
Bluetooth Mesh Protocol 1.1 についてはこちらに 情報が公開されています。

ESP32-C6はPSRAMをサポートしていませんでしたが、C61HRタイプはコア内にPSRAMを持っています。
PSRAMについてはデータシートに面白い記載が有ります。
C61HFタイプはコア内にFlashだけを持っていて、外部PSRAMをサポートしていません。
C61HRタイプはコア内にPSRAMだけを持っていて、外部Flashをサポートしています。
PSRAMは揮発性なので、コードを保持するためにはFlashが必須になります。
つまり、PSRAMが使えるのはC61HRタイプ(コア内PSRAM)+外部Flashの組み合わせになります。

ESP32-C6 ESP32-C61
HP Core 32-bit RISC-V single-core processor, up to 160MHz 32-bit RISC-V single-core processor, up to 160MHz
ULP Core 32-bit RISC-V single-core processor, up to 20MHz
Memory 320 KB ROM
512 KB HP SRAM
16 KB LP SRAM
Flash controller with cache is supported
Flash in-Circuit Programming (ICP) is supported
256 KB ROM
320 KB SRAM

Flash/external RAM controller with cache is supported
Flash in-Circuit Programming (ICP) is supported
Wi-Fi 802.11 b/g/n/ax 802.11 b/g/n/ax
Bluetooth Bluetooth 5.3/Bluetooth Mesh Bluetooth 6.0/Bluetooth Mesh 1.1
IEEE 802.15.4 Compliant with IEEE 802.15.4-2015 protocol
• Thread 1.3
• Zigbee 3.0

In-Package Flash C6 None
C6FH 4MB/8MB
C61HF 4MB
C61HR None
In-Package PSRAM None C61HF None
C61HR 2MB/4MB
Off-Package Flash Supported C61HF No support
C61HR Supported
Advanced Peripheral Interfaces • 30 or 22 × programmable GPIOs
• 1 × 12-bit SAR ADCs, up to 7 channels
• 1 × Temperature sensor
• 1 × Brownout detector

• 2 × UART
• 1 × Low-power UART
• 2 × SPI ports for communication with flash
• 1 × General purpose SPI port
• 1 × I2C
• 1 × Low-power (LP) I2C
• 1 × I2S
• 1 × Pulse count controller
• 1 × USB Serial/JTAG controller
• 2 × TWAI controller (compatible with ISO 11898-1)
• 1 × SDIO 2.0 slave controller
• 1 × LED PWM controller, up to 6 channels
• 1 × Motor Control PWM (MCPWM), up to 6 channels
• 1 × Remote control peripheral (RMT) (TX/RX)
• 1 × Parallel IO interface (PARLIO)
• 1 × General DMA controller (GDMA), with 3 transmit channels and 3 receive channels
• 1 × Event task matrix (ETM)
• 22 or 18 × programmable GPIOs
• 1 × 12-bit SAR ADCs, up to 4 channels
• 1 × Temperature sensor
• 1 × Brownout detector
• 1 × Analog voltage comparator
• 3 × UART

• 2 × SPI ports for communication with flash
• 1 × General purpose SPI port
• 1 × I2C

• 1 × I2S

• 1 × USB Serial/JTAG controller

• 1 × SDIO 2.0 slave controller
• 1 × LED PWM controller, up to 6 channels



• 1 × General DMA controller (GDMA), with 2 transmit channels and 2 receive channels
• 1 × Event task matrix (ETM)

esp-idf v5.3では既にターゲットとして設定されています。
$ idf.py --version
ESP-IDF v5.3-dev-2381-g9f4e8eb0cd

$ idf.py set-target
Usage: idf.py set-target [OPTIONS] {esp32|esp32s2|esp32c3|esp32s3|esp32c2|esp3
                         2c6|esp32h2|linux|esp32p4|esp32c5|esp32c61}
Try 'idf.py set-target --help' for help.

Error: Missing argument '{esp32|esp32s2|esp32c3|esp32s3|esp32c2|esp32c6|esp32h2|linux|esp32p4|esp32c5|esp32c61}'. Choose from:
        esp32,
        esp32s2,
        esp32c3,
        esp32s3,
        esp32c2,
        esp32c6,
        esp32h2,
        linux,
        esp32p4,
        esp32c5,
        esp32c61



こ ちらのESP32の一覧では、2025年7月時点で、ESP32-C61の製品出荷が始まっています。
2025年中には開発ボードが入手できると思います。
2025年8月時点でESP32-C6(4MB)の開発ボードが$3.26(送料別)程度で入手できます。
ESP32-C61ではおそらく内蔵PSRAM+外部Flashの製品が標準になると思われます。
ESP32-C6に比べて、部品点数(外部Flash)が明らかに増えるので、価格差が気になります。

続く....