Skip to content

Commit

Permalink
OTA reactivated
Browse files Browse the repository at this point in the history
  • Loading branch information
schreibfaul1 committed Jul 25, 2024
1 parent b012e09 commit ce0abb6
Show file tree
Hide file tree
Showing 5 changed files with 3,173 additions and 14 deletions.
25 changes: 16 additions & 9 deletions platformio.ini
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
; PlatformIO Project Configuration File

[common]

monitor_speed = 115200 ; 921600, 512000, 460800, 256000, 115200

build_flags =
Expand All @@ -27,7 +26,6 @@ build_flags =
;board = ESP32-Dev-8MB ; 8MB Flash
;board = ESP32-Dev-16MB ;16MB Flash
;—————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————

[esp32s3]
;board_build.partitions = boards/miniwebradio4MB.csv ; 4MB Flash
;board_build.partitions = boards/miniwebradio8MB.csv ; 8MB Flash
Expand All @@ -40,16 +38,16 @@ build_flags =
;board = ESP32-S3-DevKitC-1-N8R8 ; 8 MB Flash, 8MB octo PSRAM *2)
board = ESP32-S3-DevKitC-1-N16R8 ; 16 MB Flash, 8MB octo PSRAM *2)
;—————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————

[ota]
upload_port = "MiniWebRadio.local"
upload_protocol = espota ;update code over WiFi, uploadPort = Auto, must have at least 8MB flash
;—————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————
[env]

extra_scripts = pre:env-extra.py

platform = https://github.com/platformio/platform-espressif32.git#v6.4.0
platform_packages = framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32.git#2.0.14
framework = arduino, espidf


;platform = https://github.com/Jason2866/platform-espressif32.git#Arduino/IDF5
;platform_packages =
; platformio/framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32.git#3.0.2
Expand All @@ -58,8 +56,6 @@ framework = arduino, espidf

build_flags = ${common.build_flags}
monitor_speed = ${common.monitor_speed}
;upload_port = "MiniWebRadio.local"
;upload_protocol = espota ;update code over WiFi, uploadPort = Auto, must have at least 8MB flash
monitor_filters = esp32_exception_decoder, send_on_enter
upload_speed = 460800 ; 921600, 512000, 460800, 256000, 115200

Expand All @@ -77,7 +73,18 @@ lib_deps =
board = ${esp32s3.board}
board_build.partitions = ${esp32s3.board_build.partitions}
;—————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————

[env:esp32_OTA]
board = ${esp32.board}
board_build.partitions = ${esp32.board_build.partitions}
upload_port = ${ota.upload_port}
upload_protocol = ${ota.upload_protocol}
;—————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————
[env:esp32s3_OTA]
board = ${esp32s3.board}
board_build.partitions = ${esp32s3.board_build.partitions}
upload_port = ${ota.upload_port}
upload_protocol = ${ota.upload_protocol}
;—————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————
; *1) in menuconfig the type of PSRAM must be set to QUAD!
; component config ---> ESP32S3-Specific ---> SPI RAM config ---> MODE (QUAD/OCT)... ---> (x) Quad Mode PSRAM
; *2) in menuconfig the type of PSRAM must be set to OCTAL!
Expand Down
Loading

0 comments on commit ce0abb6

Please sign in to comment.