-
Notifications
You must be signed in to change notification settings - Fork 19
Open
Description
I got a bad value error while during linking firmware.elf after cloning this repo yesterday, doing a 'clean all' and building this repo using Visual Studio Code (v1.74.2), PlatformIO (Core: 6.1.5; Home 3.4.3) and Windoes 11 Education (v21H2). I also get the same error when I change the platform line in platromio.ini to espressif32. Similarly, I also get the same error when compiling the source code in the v2.0.0 release. More details below.
What could be the problem here?
CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/esp32dev.html
PLATFORM: Espressif 32 (3.3.1+sha.33ff413) > Espressif ESP32 Dev Module
HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
DEBUG: Current (esp-prog) External (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 @ 0.0.0+sha.caef400
- tool-esptoolpy @ 1.30200.211025 (3.2.0)
- toolchain-xtensa-esp32 @ 8.4.0+2021r1
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
...
Linking .pio\build\release\firmware.elf
c:/users/henrgi/.platformio/packages/toolchain-xtensa32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: final link failed: bad value
collect2.exe: error: ld returned 1 exit status
*** [.pio\build\release\firmware.elf] Error 1
I also tried the solution mentioned in SmartEVSE-3/issues/36, but that did not help either:
CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/esp32dev.html
PLATFORM: Espressif 32 (3.3.1+sha.33ff413) > Espressif ESP32 Dev Module
HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
DEBUG: Current (esp-prog) External (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 @ 0.0.0+sha.caef400
- tool-esptoolpy @ 1.30200.211025 (3.2.0)
- toolchain-xtensa-esp32 @ 8.4.0+2021r1
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
...
Linking .pio\build\release\firmware.elf
c:/users/henrgi/.platformio/packages/toolchain-xtensa32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: final link failed: bad value
collect2.exe: error: ld returned 1 exit status
*** [.pio\build\release\firmware.elf] Error 1
I also get the same error when compiling the source code in the v2.0.0 release:
CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/esp32dev.html
PLATFORM: Espressif 32 (3.3.1+sha.33ff413) > Espressif ESP32 Dev Module
HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
DEBUG: Current (esp-prog) External (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 @ 0.0.0+sha.caef400
- tool-esptoolpy @ 1.30200.211025 (3.2.0)
- toolchain-xtensa-esp32 @ 8.4.0+2021r1
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
...
Linking .pio\build\release\firmware.elf
c:/users/henrgi/.platformio/packages/toolchain-xtensa32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: final link failed: bad value
collect2.exe: error: ld returned 1 exit status
*** [.pio\build\release\firmware.elf] Error 1
Metadata
Metadata
Assignees
Labels
No labels