From 730235c203cb1f1dcedbeb367a2f05ea1fa6614a Mon Sep 17 00:00:00 2001 From: Linar Yusupov Date: Thu, 6 Jun 2024 06:46:47 +0300 Subject: [PATCH] [ESP32-C6/H2] build with Core 3.0.1 --- .github/workflows/main.yml | 12 ++++++------ software/firmware/source/README.md | 9 +++++++-- 2 files changed, 13 insertions(+), 8 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 37b3c7f6d..0766dd1e6 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -205,7 +205,7 @@ jobs: #fi if [[ "$BOARD" =~ "esp32:esp32:esp32c6" ]]; then arduino --pref "boardsmanager.additional.urls=https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_dev_index.json" --save-prefs ; - arduino --install-boards esp32:esp32:3.0.0 ; + arduino --install-boards esp32:esp32:3.0.1 ; arduino --board $BOARD --save-prefs ; arduino --pref "custom_CPUFreq=esp32c6_80" --save-prefs ; arduino --pref "custom_DebugLevel=esp32c6_none" --save-prefs ; @@ -213,9 +213,9 @@ jobs: arduino --pref "custom_FlashMode=esp32c6_dio" --save-prefs ; arduino --pref "custom_FlashSize=esp32c6_4M" --save-prefs ; arduino --pref "custom_PSRAM=esp32c6_enabled" --save-prefs ; - arduino --pref "custom_PartitionScheme=esp32c6_huge_app" --save-prefs ; + arduino --pref "custom_PartitionScheme=esp32c6_no_fs" --save-prefs ; arduino --pref "custom_UploadSpeed=esp32c6_921600" --save-prefs ; - # cd $HOME/.arduino15/packages/esp32/hardware/esp32/3.0.0 ; + # cd $HOME/.arduino15/packages/esp32/hardware/esp32/3.0.1 ; # sed -i "s\echo '-DARDUINO_CORE_BUILD'\echo -DARDUINO_CORE_BUILD\g" platform.txt ; wget https://github.com/h2zero/NimBLE-Arduino/archive/refs/tags/${NIM_BLE_VERSION}.tar.gz ; # wget https://github.com/h2zero/NimBLE-Arduino/archive/refs/heads/${NIM_BLE_VERSION}.tar.gz ; @@ -234,7 +234,7 @@ jobs: #fi if [[ "$BOARD" =~ "esp32:esp32:esp32h2" ]]; then arduino --pref "boardsmanager.additional.urls=https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_dev_index.json" --save-prefs ; - arduino --install-boards esp32:esp32:3.0.0 ; + arduino --install-boards esp32:esp32:3.0.1 ; arduino --board $BOARD --save-prefs ; arduino --pref "custom_CPUFreq=esp32h2_80" --save-prefs ; arduino --pref "custom_DebugLevel=esp32h2_none" --save-prefs ; @@ -242,9 +242,9 @@ jobs: arduino --pref "custom_FlashMode=esp32h2_dio" --save-prefs ; arduino --pref "custom_FlashSize=esp32h2_4M" --save-prefs ; arduino --pref "custom_PSRAM=esp32h2_enabled" --save-prefs ; - arduino --pref "custom_PartitionScheme=esp32h2_huge_app" --save-prefs ; + arduino --pref "custom_PartitionScheme=esp32h2_no_fs" --save-prefs ; arduino --pref "custom_UploadSpeed=esp32h2_921600" --save-prefs ; - # cd $HOME/.arduino15/packages/esp32/hardware/esp32/3.0.0 ; + # cd $HOME/.arduino15/packages/esp32/hardware/esp32/3.0.1 ; # sed -i "s\echo '-DARDUINO_CORE_BUILD'\echo -DARDUINO_CORE_BUILD\g" platform.txt ; cd $GITHUB_WORKSPACE ; fi diff --git a/software/firmware/source/README.md b/software/firmware/source/README.md index 6906794c9..b97a5e96e 100644 --- a/software/firmware/source/README.md +++ b/software/firmware/source/README.md @@ -48,7 +48,7 @@ For **ESP32**:                 [**1.0.5**](https://github.com/espressif/arduino-esp32/releases/tag/1.0.5)
For **ESP32-S3**:           [**2.0.9**](https://github.com/espressif/arduino-esp32/releases/tag/2.0.9)
For **ESP32-C3**:           [**2.0.9**](https://github.com/espressif/arduino-esp32/releases/tag/2.0.9)
- For **ESP32-C6**:           [**3.0.0**](https://github.com/espressif/arduino-esp32/releases/tag/3.0.0)
+ For **ESP32-C6**:           [**3.0.1**](https://github.com/espressif/arduino-esp32/releases/tag/3.0.1)
2. Become familiar with IDE and **DoIt ESP32 DevKit** by building and uploading of a basic **Blink** sketch:
``` int ledPin = 2; // use pin 14 for TTGO T-Beam rev.05 or higher @@ -89,7 +89,12 @@ void loop()       Select _Tools_ -> _Board_ -> _ESP32-C6_ _Dev_ _Module_
10. Select _Tools_ -> _Flash_ _Mode_ -> _DIO_ 11. Select _Tools_ -> _Flash_ _Size_ -> _4MB_ -12. Select _Tools_ -> _Partition_ _Scheme_ -> _Minimal_ _SPIFFS_ +12. For **ESP32**:
+ For **ESP32-S3**:
+ For **ESP32-C3**:
+       Select _Tools_ -> _Partition_ _Scheme_ -> _Minimal_ _SPIFFS_
+ For **ESP32-C6**:
+       Select _Tools_ -> _Partition_ _Scheme_ -> _No_ _FS_ _4MB_ _(2MB_ _APP_ _x2)_
13. Select _Tools_ -> _Flash_ _Frequency_ -> _80MHz_ 14. Select _Tools_ -> _CPU_ _Frequency_ -> _80MHz_ 15. Select _Tools_ -> _PSRAM_ -> _Enabled_