Skip to content

"final link failed: bad value" on ESP-S2-SOLO #6566

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
1 task done
Kasperdelasopa opened this issue Apr 12, 2022 · 4 comments
Closed
1 task done

"final link failed: bad value" on ESP-S2-SOLO #6566

Kasperdelasopa opened this issue Apr 12, 2022 · 4 comments
Labels
IDE: PlaformIO Issue relates to PlatformIO IDE Status: Solved Type: Question Only question

Comments

@Kasperdelasopa
Copy link

Board

ESP32-S2-Solo

Device Description

ESP32-S2-Solo on a custom board

Hardware Configuration

none

Version

latest master

IDE Name

Platformio

Operating System

Win 10

Flash frequency

80Mhz

PSRAM enabled

no

Upload speed

default

Description

Hello,

i tried to build my code on the latest master using this Platfomio Settings:

[env:TempControl32-solo]
platform = espressif32
platform_packages = 
	platformio/framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32.git
framework = arduino
board = esp32dev
build_flags = -D  CONFIG_FREERTOS_UNICORE -D CONFIG_ESP32_DEFAULT_CPU_FREQ_80
board_build.mcu = esp32s2
board_build.variant = esp32s2
board_build.f_cpu = 240000000L
board_build.f_flash = 80000000L
board_build.flash_mode = qio

Everything looks fine during compiling, but at the final link process this happens:

Linking .pio\build\TempControl32-solo\firmware.elf
c:/users/manue/.platformio/packages/toolchain-xtensa32s2/bin/../lib/gcc/xtensa-esp32s2-elf/8.4.0/../../../../xtensa-esp32s2-elf/bin/ld.exe: final link failed: bad value
collect2.exe: error: ld returned 1 exit status
*** [.pio\build\TempControl32-solo\firmware.elf] Error 1

....when I`m using these Platform packages versions, everything compiles just fine:

platform_packages = 
	pramework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32#2.0.0-alpha1
  	platformio/tool-esptoolpy @ ~1.30100

Is there anything more to do, having a ESP32-S2-SOLO to to link properly?

thanks for your help,

Best regards

Sketch

not provided as error seems not to depend on the sketch but on the platform versions

Debug Message

not provides as error appears during comiling

Other Steps to Reproduce

No response

I have checked existing issues, online documentation and the Troubleshooting Guide

  • I confirm I have checked existing issues, online documentation and Troubleshooting guide.
@Kasperdelasopa Kasperdelasopa added the Status: Awaiting triage Issue is waiting for triage label Apr 12, 2022
@VojtechBartoska VojtechBartoska added IDE: PlaformIO Issue relates to PlatformIO IDE Type: Question Only question and removed Status: Awaiting triage Issue is waiting for triage labels Apr 12, 2022
@VojtechBartoska
Copy link
Contributor

Hello, please take a look on this issue to fix PlatformIO setup. #6044

@Kasperdelasopa
Copy link
Author

@VojtechBartoska txh for the reply

according to the given issue i changed my config with this:

platform_packages = 
	framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32.git#master
  	toolchain-xtensa32@~2.80400.0

i also cleaned the build files and deleted all packages in Platformio to force Platformio to download the versions new.
.... unfortunately, the same error in the link process happens

@Kasperdelasopa
Copy link
Author

I need to correct myself... i missed the platform config...

This works for me:

platform = https://github.com/Jason2866/platform-espressif32.git
platform_packages = 
	framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32.git#master
  	toolchain-xtensa32@~2.80400.0

Thx for the help !!!!

@dvogureckiy99
Copy link

I need to correct myself... i missed the platform config...

This works for me:

platform = https://github.com/Jason2866/platform-espressif32.git
platform_packages = 
	framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32.git#master
  	toolchain-xtensa32@~2.80400.0

Thx for the help !!!!

Where is situated this settings ? In what file ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
IDE: PlaformIO Issue relates to PlatformIO IDE Status: Solved Type: Question Only question
Projects
None yet
Development

No branches or pull requests

3 participants