mirror of
https://github.com/rstrouse/ESPSomfy-RTS.git
synced 2026-04-20 11:02:14 +02:00
fixed esp32-c6 platform detection issue
This commit is contained in:
parent
f67da0917a
commit
bb61a1703d
4 changed files with 27 additions and 42 deletions
6
esp32_huge_app.csv
Normal file
6
esp32_huge_app.csv
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
# Name, Type, SubType, Offset, Size
|
||||||
|
nvs, data, nvs, 0x9000, 0x5000,
|
||||||
|
otadata, data, ota, 0xE000, 0x2000,
|
||||||
|
app0, app, factory, 0x10000, 0x300000,
|
||||||
|
spiffs, data, spiffs, 0x310000, 0xD0000,
|
||||||
|
coredump, data, coredump, 0x3E0000, 0x10000,
|
||||||
|
|
|
@ -9,24 +9,22 @@
|
||||||
; https://docs.platformio.org/page/projectconf.html
|
; https://docs.platformio.org/page/projectconf.html
|
||||||
|
|
||||||
[platformio]
|
[platformio]
|
||||||
default_envs = esp32devdbg
|
default_envs = esp32c6
|
||||||
|
src_dir = src
|
||||||
|
|
||||||
[env]
|
[env]
|
||||||
platform = espressif32 @ 5.4.0
|
platform = https://github.com/pioarduino/platform-espressif32
|
||||||
|
; platform = espressif32 @ 5.4.0
|
||||||
framework = arduino
|
framework = arduino
|
||||||
lib_deps =
|
lib_deps =
|
||||||
bblanchon/ArduinoJson@^7.2.2
|
bblanchon/ArduinoJson@^7.2.2
|
||||||
lsatan/SmartRC-CC1101-Driver-Lib@^2.5.7
|
lsatan/SmartRC-CC1101-Driver-Lib@^2.5.7
|
||||||
knolleary/PubSubClient@^2.8
|
knolleary/PubSubClient@^2.8
|
||||||
; esp32async/ESPAsyncWebServer@^3.10.3
|
esp32async/ESPAsyncWebServer@^3.10.3
|
||||||
; esp32async/AsyncTCP@^3.4.10
|
esp32async/AsyncTCP@^3.4.10
|
||||||
; 4. ESP32-C6 / Arduino 3.0 Compatible Async Stack (CRITICAL)
|
|
||||||
https://github.com/mathieucarbou/AsyncTCP.git
|
|
||||||
https://github.com/mathieucarbou/ESPAsyncWebServer.git
|
|
||||||
extra_scripts =
|
extra_scripts =
|
||||||
pre:minify.py
|
pre:minify.py
|
||||||
post:archive_elf.py
|
post:archive_elf.py
|
||||||
|
|
||||||
board_build.filesystem = littlefs
|
board_build.filesystem = littlefs
|
||||||
build_flags =
|
build_flags =
|
||||||
-DCORE_DEBUG_LEVEL=1
|
-DCORE_DEBUG_LEVEL=1
|
||||||
|
|
@ -58,36 +56,20 @@ board_build.partitions = esp32_3MB.csv
|
||||||
board = esp32-s3-devkitc-1
|
board = esp32-s3-devkitc-1
|
||||||
|
|
||||||
[env:esp32c6]
|
[env:esp32c6]
|
||||||
; platform = https://github.com/mnowak32/platform-espressif32.git#boards/seeed_xiao_esp32c6
|
|
||||||
; platform_packages =
|
|
||||||
; framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32.git#3.0.4
|
|
||||||
; framework-arduinoespressif32-libs @ https://github.com/espressif/arduino-esp32/releases/download/3.0.4/esp32-arduino-libs-3.0.4.zip
|
|
||||||
; board = seeed_xiao_esp32c6
|
|
||||||
; board_build.partitions = esp32_3MB.csv
|
|
||||||
; build_flags =
|
|
||||||
; ${env.build_flags}
|
|
||||||
; -I${platformio.packages_dir}/framework-arduinoespressif32/libraries/Network/src
|
|
||||||
; platform = espressif32 ; Not working
|
|
||||||
platform = https://github.com/pioarduino/platform-espressif32
|
|
||||||
# Ensure we are using the 3.0+ core
|
|
||||||
; platform_packages =
|
|
||||||
; framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32.git#3.0.7
|
|
||||||
; framework-arduinoespressif32-libs @ https://github.com/espressif/arduino-esp32/releases/download/3.0.7/esp32-arduino-libs-3.0.7.zip
|
|
||||||
board = seeed_xiao_esp32c6
|
board = seeed_xiao_esp32c6
|
||||||
; board = esp32-c6-devkitc-1
|
board_build.partitions = esp32_huge_app.csv
|
||||||
|
|
||||||
lib_deps =
|
|
||||||
bblanchon/ArduinoJson@^7.2.2
|
|
||||||
lsatan/SmartRC-CC1101-Driver-Lib@^2.5.7
|
|
||||||
knolleary/PubSubClient@^2.8
|
|
||||||
https://github.com/ESP32Async/AsyncTCP.git
|
|
||||||
https://github.com/ESP32Async/ESPAsyncWebServer.git
|
|
||||||
; platform_packages =
|
|
||||||
; framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32.git#3.0.7
|
|
||||||
|
|
||||||
board_build.partitions = esp32_3MB.csv
|
|
||||||
|
|
||||||
build_flags =
|
build_flags =
|
||||||
${env.build_flags}
|
${env.build_flags}
|
||||||
-I${platformio.packages_dir}/framework-arduinoespressif32/libraries/Network/src
|
-include "driver/gpio.h"
|
||||||
|
lib_deps =
|
||||||
|
; Low-Level libs, frameowrks and drivers
|
||||||
|
ESP32Async/AsyncTCP
|
||||||
|
https://github.com/Viproz/SmartRC-CC1101-Driver-Lib.git
|
||||||
|
; Commmunication Protocol
|
||||||
|
links2004/WebSockets
|
||||||
|
https://github.com/hmueller01/pubsubclient3.git
|
||||||
|
; Data-Parsing
|
||||||
|
bblanchon/ArduinoJson
|
||||||
|
; High-level wrappers/servers
|
||||||
|
ESP32Async/ESPAsyncWebServer
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -158,11 +158,9 @@ bool ConfigSettings::begin() {
|
||||||
case esp_chip_model_t::CHIP_ESP32C3:
|
case esp_chip_model_t::CHIP_ESP32C3:
|
||||||
strcpy(this->chipModel, "c3");
|
strcpy(this->chipModel, "c3");
|
||||||
break;
|
break;
|
||||||
#ifdef CHIP_ESP32C6
|
|
||||||
case esp_chip_model_t::CHIP_ESP32C6:
|
case esp_chip_model_t::CHIP_ESP32C6:
|
||||||
strcpy(this->chipModel, "c6");
|
strcpy(this->chipModel, "c6");
|
||||||
break;
|
break;
|
||||||
#endif
|
|
||||||
default:
|
default:
|
||||||
sprintf(this->chipModel, "UNK%d", static_cast<int>(ci.model));
|
sprintf(this->chipModel, "UNK%d", static_cast<int>(ci.model));
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
|
|
@ -4712,8 +4712,8 @@ void transceiver_config_t::load() {
|
||||||
this->SCKPin = 15;
|
this->SCKPin = 15;
|
||||||
this->CSNPin = 14;
|
this->CSNPin = 14;
|
||||||
break;
|
break;
|
||||||
#ifdef CHIP_ESP32C6
|
|
||||||
case esp_chip_model_t::CHIP_ESP32C6:
|
case esp_chip_model_t::CHIP_ESP32C6:
|
||||||
|
// Pinout applicable for the ESP32-C6-WROOM-1 module (ESP32-C6-DevKitC-1-N4)
|
||||||
this->TXPin = 10;
|
this->TXPin = 10;
|
||||||
this->RXPin = 10;
|
this->RXPin = 10;
|
||||||
this->MOSIPin = 7;
|
this->MOSIPin = 7;
|
||||||
|
|
@ -4721,7 +4721,6 @@ void transceiver_config_t::load() {
|
||||||
this->SCKPin = 6;
|
this->SCKPin = 6;
|
||||||
this->CSNPin = 0;
|
this->CSNPin = 0;
|
||||||
break;
|
break;
|
||||||
#endif
|
|
||||||
default:
|
default:
|
||||||
this->TXPin = 13;
|
this->TXPin = 13;
|
||||||
this->RXPin = 12;
|
this->RXPin = 12;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue