Closed besanur closed 7 months ago
@besanur I tried to compile it for the lolin_s2_mini and it works:
Retrieving maximum program size .pio\build\lolin_s2_mini\firmware.elf
Checking size .pio\build\lolin_s2_mini\firmware.elf
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
RAM: [== ] 17.8% (used 58196 bytes from 327680 bytes)
Flash: [======= ] 72.4% (used 1422914 bytes from 1966080 bytes)
Building .pio\build\lolin_s2_mini\firmware.bin
esptool.py v4.5.1
Creating esp32s2 image...
Merged 2 ELF sections
Successfully created esp32s2 image.
I used this snipped in platformio.ini:
[env:lolin_s2_mini]
board = lolin_s2_mini
board_build.mcu = esp32s2
; Uncomment min_spiffs.csv setting if using PROGMEM_WWW with ESP32
board_build.partitions = min_spiffs.csv
I don't have a S2 board, so I can't test upload and coding. Also there might some specific build flags required for the USB functionality of the chip.
Judging by the error you got you might have missed board_build.partitions = min_spiffs.csv
.
@besanur I tried to compile it for the lolin_s2_mini and it works:
Retrieving maximum program size .pio\build\lolin_s2_mini\firmware.elf Checking size .pio\build\lolin_s2_mini\firmware.elf Advanced Memory Usage is available via "PlatformIO Home > Project Inspect" RAM: [== ] 17.8% (used 58196 bytes from 327680 bytes) Flash: [======= ] 72.4% (used 1422914 bytes from 1966080 bytes) Building .pio\build\lolin_s2_mini\firmware.bin esptool.py v4.5.1 Creating esp32s2 image... Merged 2 ELF sections Successfully created esp32s2 image.
I used this snipped in platformio.ini:
[env:lolin_s2_mini] board = lolin_s2_mini board_build.mcu = esp32s2 ; Uncomment min_spiffs.csv setting if using PROGMEM_WWW with ESP32 board_build.partitions = min_spiffs.csv
I don't have a S2 board, so I can't test upload and coding. Also there might some specific build flags required for the USB functionality of the chip.
Judging by the error you got you might have missed
board_build.partitions = min_spiffs.csv
.
Thank you for your efforts. I closed this issue again because I managed to fix it afterwards. I had forgotten some configurations. Firstly, the min_spiffs.csv.
Do I have to set anything else in the build process? With https://github.com/rjwats/esp8266-react it works.