miljume
October 31, 2022, 11:57am
#1
Hello,
I get the following error when I try to upload my compiled program to my ESP32
The terminal process "C:\Users\<username>\.platformio\penv\Scripts\platformio.exe 'run', '--target', 'upload'" terminated with exit code: 1.
Tried re-installing but no success, any clue what it can be?
What’s the exact error message before that?
miljume
October 31, 2022, 12:59pm
#3
Its blank for some reason
Please open a CLI and post the output of pio run -v
.
miljume
October 31, 2022, 1:04pm
#5
maxgerhardt:
pio run -v
PS C:\Users\<userid>\PlatformIO\Projects\LoRaGateway> pio run -v
Processing myenv (platform: espressif32; board: featheresp32; framework: arduino; upload_port: C:\temp; lib_deps: adafruit/Adafruit GFX Library@^1.11.3, adafruit/Adafruit SSD1306@^2.5.7)
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/featheresp32.html
PLATFORM: Espressif 32 (5.2.0) > Adafruit ESP32 Feather
HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
DEBUG: Current (cmsis-dap) External (cmsis-dap, esp-bridge, esp-prog, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa)
PACKAGES:
- framework-arduinoespressif32 @ 3.20005.220925 (2.0.5)
- tool-esptoolpy @ 1.40201.0 (4.2.1)
- toolchain-xtensa-esp32 @ 8.4.0+2021r2-patch3
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 35 compatible libraries
Scanning dependencies...
Dependency Graph
|-- Adafruit GFX Library @ 1.11.3 (License: Unknown, Path: C:\Users\Group\PlatformIO\Projects\LoRaGateway\.pio\libdeps\myenv\Adafruit GFX Library)
| |-- Adafruit BusIO @ 1.14.0 (License: Unknown, Path: C:\Users\Group\PlatformIO\Projects\LoRaGateway\.pio\libdeps\myenv\Adafruit BusIO)
| | |-- Wire @ 2.0.0 (License: Unknown, Path: C:\Users\v082752\.platformio\packages\framework-arduinoespressif32\libraries\Wire)
| | |-- SPI @ 2.0.0 (License: Unknown, Path: C:\Users\.platformio\packages\framework-arduinoespressif32\libraries\SPI)
| |-- Wire @ 2.0.0 (License: Unknown, Path: C:\Users\.platformio\packages\framework-arduinoespressif32\libraries\Wire)
| |-- SPI @ 2.0.0 (License: Unknown, Path: C:\Users\.platformio\packages\framework-arduinoespressif32\libraries\SPI)
|-- Adafruit SSD1306 @ 2.5.7 (License: Unknown, Path: C:\Users\Group\PlatformIO\Projects\LoRaGateway\.pio\libdeps\myenv\Adafruit SSD1306)
| |-- Adafruit GFX Library @ 1.11.3 (License: Unknown, Path: C:\Users\Group\PlatformIO\Projects\LoRaGateway\.pio\libdeps\myenv\Adafruit GFX Library)
| | |-- Adafruit BusIO @ 1.14.0 (License: Unknown, Path: C:\Users\PlatformIO\Projects\LoRaGateway\.pio\libdeps\myenv\Adafruit BusIO)
| | | |-- Wire @ 2.0.0 (License: Unknown, Path: C:\Users\.platformio\packages\framework-arduinoespressif32\libraries\Wire)
| | | |-- SPI @ 2.0.0 (License: Unknown, Path: C:\Users\.platformio\packages\framework-arduinoespressif32\libraries\SPI)
| | |-- Wire @ 2.0.0 (License: Unknown, Path: C:\Users\.platformio\packages\framework-arduinoespressif32\libraries\Wire)
| | |-- SPI @ 2.0.0 (License: Unknown, Path: C:\Users\.platformio\packages\framework-arduinoespressif32\libraries\SPI)
| |-- Adafruit BusIO @ 1.14.0 (License: Unknown, Path: C:\Users\Group\PlatformIO\Projects\LoRaGateway\.pio\libdeps\myenv\Adafruit BusIO)
| | |-- Wire @ 2.0.0 (License: Unknown, Path: C:\Users\.platformio\packages\framework-arduinoespressif32\libraries\Wire)
| | |-- SPI @ 2.0.0 (License: Unknown, Path: C:\Users\.platformio\packages\framework-arduinoespressif32\libraries\SPI)
| |-- Wire @ 2.0.0 (License: Unknown, Path: C:\Users\.platformio\packages\framework-arduinoespressif32\libraries\Wire)
| |-- SPI @ 2.0.0 (License: Unknown, Path: C:\Users\.platformio\packages\framework-arduinoespressif32\libraries\SPI)
|-- Wire @ 2.0.0 (License: Unknown, Path: C:\Users\.platformio\packages\framework-arduinoespressif32\libraries\Wire)
Building in release mode
<lambda>(["checkprogsize"], [".pio\build\myenv\firmware.elf"])
MethodWrapper(["checkprogsize"], [".pio\build\myenv\firmware.elf"])
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
RAM: [= ] 5.2% (used 16928 bytes from 327680 bytes)
Flash: [== ] 21.0% (used 274961 bytes from 1310720 bytes)
.pio\build\myenv\firmware.elf :
section size addr
.rtc.text 0 1074528256
.rtc.dummy 0 1073217536
.rtc.force_fast 0 1073217536
.rtc.data 16 1342177792
.rtc_noinit 0 1342177808
.rtc.force_slow 0 1342177808
.iram0.vectors 1027 1074266112
.iram0.text 56623 1074267140
.dram0.data 13856 1073470304
.ext_ram_noinit 0 1065353216
.noinit 0 1073484160
.ext_ram.bss 0 1065353216
.dram0.bss 3072 1073484160
.flash.appdesc 256 1061158944
.flash.rodata 58564 1061159200
.flash.rodata_noload 0 1061217764
.flash.text 144891 1074593824
.iram0.text_end 1 1074323763
.iram0.data 0 1074323764
.iram0.bss 0 1074323764
.dram0.heap_start 0 1073487232
.xtensa.info 56 0
.comment 166 0
.xt.prop._ZN5Print17availableForWriteEv 36 0
.xt.prop._ZN6Stream9readBytesEPhj 36 0
.xt.prop._ZTV7TwoWire 12 0
.xt.prop._ZN5Print5flushEv 36 0
.xt.prop._ZTV12Adafruit_GFX 12 0
.xt.prop._ZTV16Adafruit_SSD1306 12 0
.xt.lit._ZNKSt8functionIFvvEEclEv 0 0
.xt.prop._ZNKSt8functionIFvvEEclEv 48 0
.xt.prop._ZNSt14_Function_baseD2Ev 36 0
.xt.prop._ZTV14HardwareSerial 12 0
.xt.lit._ZN5Print5writeEPKc 0 0
.xt.prop._ZN5Print5writeEPKc 48 0
.xt.lit._ZN6String4initEv 0 0
.xt.prop._ZN6String4initEv 36 0
.xt.prop._ZNK6String3lenEv 60 0
.xt.prop._ZN6String6setLenEi 72 0
.xt.lit._ZN3nvs4Lock4initEv 0 0
.xt.prop._ZN3nvs4Lock4initEv 72 0
.xt.lit._ZN14intrusive_listIN3nvs7Storage14NamespaceEntryEE17clearAndFreeNodesEv 0 0
.xt.prop._ZN14intrusive_listIN3nvs7Storage14NamespaceEntryEE17clearAndFreeNodesEv 108 0
.xt.prop._ZN14intrusive_listIN3nvs7Storage14NamespaceEntryEE9push_backEPS2_ 60 0
.xt.lit._ZN3nvs12NVSPartitionD5Ev 0 0
.xt.prop._ZN3nvs12NVSPartitionD5Ev 0 0
.xt.prop._ZN3nvs12NVSPartitionD2Ev 36 0
.xt.prop._ZN3nvs12NVSPartitionD0Ev 36 0
.xt.prop._ZTVN3nvs12NVSPartitionE 12 0
.xt.lit._ZN3nvs19NVSPartitionManagerD5Ev 0 0
.xt.prop._ZN3nvs19NVSPartitionManagerD5Ev 0 0
.xt.prop._ZN3nvs19NVSPartitionManagerD2Ev 36 0
.xt.prop._ZN3nvs19NVSPartitionManagerD0Ev 36 0
.xt.prop._ZN14intrusive_listIN3nvs12NVSPartitionEE5eraseENS2_8iteratorE 84 0
.xt.prop._ZTVN3nvs19NVSPartitionManagerE 12 0
.xt.prop._ZN14intrusive_listIN3nvs8HashList13HashListBlockEE5eraseENS3_8iteratorE 84 0
.xt.lit._ZN3nvs4ItemC5EhNS_8ItemTypeEhPKch 0 0
.xt.prop._ZN3nvs4ItemC5EhNS_8ItemTypeEhPKch 0 0
.xt.prop._ZN3nvs20isVariableLengthTypeENS_8ItemTypeE 48 0
.xt.prop._ZN3nvs4ItemC2EhNS_8ItemTypeEhPKch 60 0
.xt.prop._ZNK19CompressedEnumTableIN3nvs4Page10EntryStateELj2ELj126EE3getEjPS2_ 48 0
.xt.lit._ZN14intrusive_listIN3nvs4PageEE5clearEv 0 0
.xt.prop._ZN14intrusive_listIN3nvs4PageEE5clearEv 60 0
.xt.prop._ZN14intrusive_listIN3nvs4PageEE9push_backEPS1_ 60 0
.xt.prop._ZN14intrusive_listIN3nvs4PageEE5eraseENS2_8iteratorE 84 0
.xt.prop._ZTISt9exception 12 0
.xt.prop._ZTISt9bad_alloc 12 0
.xt.prop._ZTVN10__cxxabiv117__class_type_infoE 12 0
.xt.prop._ZTVN10__cxxabiv120__si_class_type_infoE 12 0
.xt.prop._ZTISt17bad_function_call 12 0
.xt.prop._ZTVSt17bad_function_call 12 0
.xt.lit._ZNK9__gnu_cxx24__concurrence_lock_error4whatEv 8 0
.xt.lit._ZNK9__gnu_cxx26__concurrence_unlock_error4whatEv 8 0
.xt.lit._ZN9__gnu_cxx24__concurrence_lock_errorD5Ev 8 0
.xt.lit._ZN9__gnu_cxx26__concurrence_unlock_errorD5Ev 8 0
.xt.lit._ZN9__gnu_cxx7__mutex4lockEv 8 0
.xt.lit._ZN9__gnu_cxx13__scoped_lockD5Ev 8 0
.xt.prop._ZNK9__gnu_cxx24__concurrence_lock_error4whatEv 48 0
.xt.prop._ZNK9__gnu_cxx26__concurrence_unlock_error4whatEv 48 0
.xt.prop._ZN9__gnu_cxx24__concurrence_lock_errorD5Ev 12 0
.xt.prop._ZN9__gnu_cxx26__concurrence_unlock_errorD5Ev 12 0
.xt.prop._ZN9__gnu_cxx7__mutex4lockEv 48 0
.xt.prop._ZN9__gnu_cxx13__scoped_lockD5Ev 12 0
.xt.prop._ZN9__gnu_cxx24__concurrence_lock_errorD2Ev 36 0
.xt.prop._ZN9__gnu_cxx26__concurrence_unlock_errorD2Ev 36 0
.xt.prop._ZN9__gnu_cxx24__concurrence_lock_errorD0Ev 36 0
.xt.prop._ZN9__gnu_cxx26__concurrence_unlock_errorD0Ev 36 0
.xt.prop._ZN9__gnu_cxx13__scoped_lockD2Ev 72 0
.xt.prop._ZTIN9__gnu_cxx24__concurrence_lock_errorE 12 0
.xt.prop._ZTIN9__gnu_cxx26__concurrence_unlock_errorE 12 0
.xt.prop._ZTVN9__gnu_cxx24__concurrence_lock_errorE 12 0
.xt.prop._ZTVN9__gnu_cxx26__concurrence_unlock_errorE 12 0
.debug_frame 70048 0
.debug_info 3241026 0
.debug_abbrev 274354 0
.debug_loc 508537 0
.debug_aranges 27584 0
.debug_ranges 69048 0
.debug_line 1235924 0
.debug_str 261051 0
Total 5968056
======================================================================== [SUCCESS] Took 8.46 seconds ========================================================================
My bad, I meant pio run -t upload -v
.
miljume
October 31, 2022, 1:22pm
#8
Unfortunately blank there as well
PS C:\Users\PlatformIO\Projects\LoRaGateway> pio run -t upload -v
Processing myenv (platform: espressif32; board: featheresp32; framework: arduino; upload_port: C:\temp; lib_deps: adafruit/Adafruit GFX Library@^1.11.3, adafruit/Adafruit SSD1306@^2.5.7)
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------Tool Manager: Installing platformio/tool-mkspiffs @ ~2.230.0
Error:
That’s really weird.
Please remove the folders (if it exists) C:\Users\<user>\.platformio\packages\tool-mkspiffs
and C:\Users\<user>\.platformio\.cache
.
Then execute
pio pkg install -g -t "platformio/tool-mkspiffs @ ~2.230.0"
What’s the output of that?
It seems we have fixed this issue in the latest PIO Core. Could you run pio upgrade --dev
and try again?
miljume
November 1, 2022, 8:55am
#11
ivankravets:
pio upgrade --dev
That actually solved my issue, now tool-mkspiffs installs without issue!
Do you use a proxy? If yes, have you configured it via VSCode or system environment variables?
miljume
November 1, 2022, 9:49am
#13
Yes, I have it configured in VSCode settings.json
Did you also disable SSL verification? We have recently improved PIO Core to inherit proxy settings from VSCode. It is time to make a final release of PIO Core 6.1.5.
miljume
November 1, 2022, 9:57am
#15
I don’t use any SSL verification