Browse Source
Merge pull request #122 from SZenglein/ota8mb
Add example for 8MB flash devices
master
biologist79
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
23 additions and
0 deletions
-
custom_8mb_ota.csv
-
platformio.ini
|
|
@ -0,0 +1,10 @@ |
|
|
|
# 256 kB (instead of 24 kB) for nvs, the rest is used by application |
|
|
|
# Infos: https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-guides/partition-tables.html |
|
|
|
# TOTAL AVAILABLE: 0x800000 |
|
|
|
# Name, Type, SubType, Offset, Size, Flags |
|
|
|
otadata, data, ota, 0x9000 , 0x2000, |
|
|
|
phy_init, data, phy, 0xb000 , 0x1000 |
|
|
|
app0, app, ota_0, 0x10000, 0x3B0000, |
|
|
|
app1, app, ota_1, , 0x3B0000, |
|
|
|
nvs, data, nvs, , 0x40000, |
|
|
|
storage, data, spiffs, , 0x50000, |
|
|
@ -147,6 +147,19 @@ build_flags = -DHAL=6 |
|
|
|
board_upload.maximum_size = 16777216 |
|
|
|
board_upload.flash_size = 16MB |
|
|
|
|
|
|
|
; custom board based on 8 MB flash devkitc |
|
|
|
[env:esp32-wrover-devkitc-v4-8mb] |
|
|
|
;https://docs.platformio.org/en/latest/boards/espressif32/esp-wrover-kit.html |
|
|
|
board = esp-wrover-kit |
|
|
|
board_build.partitions = custom_8mb_ota.csv |
|
|
|
build_flags = -DHAL=99 |
|
|
|
-DBOARD_HAS_PSRAM |
|
|
|
-mfix-esp32-psram-cache-issue |
|
|
|
-DLOG_BUFFER_SIZE=10240 |
|
|
|
-DBOARD_HAS_16MB_FLASH_AND_OTA_SUPPORT ; 8MB is fine |
|
|
|
board_upload.maximum_size = 8388608 |
|
|
|
board_upload.flash_size = 8MB |
|
|
|
|
|
|
|
;;; Change upload/monitor-port of your board regarding your operating-system and develboard! |
|
|
|
;MAC: /dev/cu.SLAB_USBtoUART / /dev/cu.wchusbserial1420 / /dev/cu.wchusbserial1410 |
|
|
|
;WINDOWS: COM3 |
|
|
|