OS: Linux Mint 19.1
Board: ESP32-EVB
IDE: Platformio IDE on VSCode
Hello !
I am trying to implement Firmware Update via file upload in my project.
I have followed @lbernstone 's example and I made it to work when uploading a firmware.bin
file. But when I’m trying to upload spiffs.bin
it returns A LOT of Wrong Magic Byte
lines.
I get spiffs.bin
from pio run -t buildfs
.
[env:esp32-evb]
platform = https://github.com/platformio/platform-espressif32.git
board = esp32-evb
framework = arduino
board_build.flash_mode = qio
board_build.f_flash = 80000000L
upload_port = /dev/ttyUSB0
monitor_port = /dev/ttyUSB0
monitor_speed = 115200
upload_speed = 115200
build_flags = -DCORE_DEBUG_LEVEL=5
#extra_scripts = post:scripts/pio_copy.py
#libraries
lib_deps = https://github.com/me-no-dev/ESPAsyncWebServer.git
https://github.com/me-no-dev/AsyncTCP.git
Do you think I have to make custom partitions ? And if I have to, how do I do that ? I’ve only found board_build.partitions
. But what do I do with it ? What do I write after board_build.partitions=
? How many partitions do I need to make ? Can I only reformat the one for SPIFFS ?
I am beat and I have no idea idea what to do.