mirror of
https://github.com/rstrouse/ESPSomfy-RTS.git
synced 2026-10-31 13:52:15 +01:00
build: add the ESP32-C5
The C5 builds like the C6: a debug build with one 3 MB app slot, so it updates over USB. At CORE_DEBUG_LEVEL=2 its image left 3.4 KB of the 1.5 MB OTA slot, under CI's 8 KB. - platformio.ini: env esp32c5 (esp32-c5-devkitc-1). - Chip model "c5", so the updater and releases name its files SomfyController.*.esp32c5.bin. - Radio defaults: the framework's SPI pins (CSN 6, MOSI 8, MISO 9, SCK 10), TX 4, RX 5. - Web UI: GPIO 0-28, without 13-14 (USB) and 15-22 (flash, PSRAM). - CI builds and releases it; its bootloader sits at 0x2000. - ADR 0003: amended. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
a43f5aaaad
commit
298045ec99
9 changed files with 45 additions and 5 deletions
|
|
@ -134,6 +134,11 @@ bool ConfigSettings::begin() {
|
|||
case esp_chip_model_t::CHIP_ESP32C3:
|
||||
strcpy(this->chipModel, "c3");
|
||||
break;
|
||||
#ifdef CONFIG_IDF_TARGET_ESP32C5
|
||||
case esp_chip_model_t::CHIP_ESP32C5:
|
||||
strcpy(this->chipModel, "c5");
|
||||
break;
|
||||
#endif
|
||||
#ifdef CONFIG_IDF_TARGET_ESP32C6
|
||||
case esp_chip_model_t::CHIP_ESP32C6:
|
||||
strcpy(this->chipModel, "c6");
|
||||
|
|
|
|||
|
|
@ -5,8 +5,8 @@
|
|||
#include <sdkconfig.h>
|
||||
#endif
|
||||
|
||||
// Ethernet needs the RMII MAC, which only the original ESP32 has. The C3, S3
|
||||
// and C6 build without it.
|
||||
// Ethernet needs the RMII MAC, which only the original ESP32 has. The C3, C5,
|
||||
// S3 and C6 build without it.
|
||||
#if defined(CONFIG_ETH_USE_ESP32_EMAC) && CONFIG_ETH_USE_ESP32_EMAC
|
||||
#define HAS_ETHERNET 1
|
||||
#else
|
||||
|
|
|
|||
|
|
@ -481,6 +481,18 @@ void transceiver_config_t::load() {
|
|||
this->SCKPin = 15;
|
||||
this->CSNPin = 14;
|
||||
break;
|
||||
#ifdef CONFIG_IDF_TARGET_ESP32C5
|
||||
case esp_chip_model_t::CHIP_ESP32C5:
|
||||
// The framework's default SPI pins (variants/esp32c5). 4 and 5 aren't
|
||||
// strapping pins.
|
||||
this->TXPin = 4;
|
||||
this->RXPin = 5;
|
||||
this->MOSIPin = 8;
|
||||
this->MISOPin = 9;
|
||||
this->SCKPin = 10;
|
||||
this->CSNPin = 6;
|
||||
break;
|
||||
#endif
|
||||
#ifdef CONFIG_IDF_TARGET_ESP32C6
|
||||
case esp_chip_model_t::CHIP_ESP32C6:
|
||||
// Pinout applicable for the ESP32-C6-WROOM-1 module (ESP32-C6-DevKitC-1-N4)
|
||||
|
|
|
|||
|
|
@ -85,7 +85,7 @@ const char *wifiAuthModeName(uint8_t authMode);
|
|||
bool otaProven(bool networkUp, unsigned long uptimeMs, unsigned long minUptimeMs);
|
||||
// A release asset's name: "SomfyController.<kind>.esp32<chipModel>.bin", kind
|
||||
// "ino" for the firmware or "littlefs" for the web UI image, chipModel as in
|
||||
// ConfigSettings ("" for the ESP32, "s3", "c3", "c6").
|
||||
// ConfigSettings ("" for the ESP32, "s3", "c3", "c5", "c6").
|
||||
void releaseAssetName(char *buf, size_t size, const char *kind, const char *chipModel);
|
||||
// A coredump backtrace as " 0x%08x" per frame. bt holds maxFrames entries and
|
||||
// depth is how many the dump claims are valid.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue