question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Linking fails with latest arduino-esp32

See original GitHub issue

Hello together, with the latest arduino-esp32, I’m getting linker errors with platform-espressif32. Compilation in Arduino with the same arduino-esp32 works fine (https://pastebin.com/Z6XaJUUz). The errors with PIO: https://pastebin.com/q96pXzrm

The environment:

[env:demo_env]
platform = espressif32
board = esp-wrover-kit
upload_protocol = esptool
monitor_speed = 115200
framework = arduino
monitor_filers = esp32_exception_decoder
platform_packages =
      framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32.git

OS is Linux Mint 19.3

This does not happen when using the default framework-arduinoespressif32. Unfortunately, due to #298 that’s not a solution for me.

Best regards margau

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
margaucommented, Apr 27, 2020

Another Update: Workaround is adding board_build.ldscript = esp32_out.ld (or other ldscript) manually to the build-env - the root cause (config.build.arduino.ldscript not used when using framework-arduinoespressif32 as custom platform package) I haven’t found yet.

@valeros, could you take a look at this part of configuration? Thanks!

0reactions
valeroscommented, Apr 27, 2020

Hi @margau ! There is a pending PR https://github.com/espressif/arduino-esp32/pull/3735 with changes required to work with the upstream Arduino for ESP32. You can try to add that two lines from the PR to the freshly pulled package and should work.

Read more comments on GitHub >

github_iconTop Results From Across the Web

ESP32 Troubleshooting Guide | Random Nerd Tutorials
When you try to upload a new sketch to your ESP32 and it fails to connect to your board, it means that your...
Read more >
A fatal error occurred: Failed to connect to ESP32 - Voltlog #357
High quality PCB Services https://pcbway.com “A fatal error occurred: Failed to connect to ESP32 : Timed out waiting for packet header” This ...
Read more >
[SOLVED] Can't connect Arduino IDE with ESP32
This is the First time that I try to use the arduino IDE with a new ESP32 WROOM-S2 (38 pins). I can't connect...
Read more >
ESP32 Error When Compiling - Arduino Forum
Select File > Preferences from the Arduino IDE's menus. · Click the link on the line following "More preferences can be edited directly...
Read more >
Problems to connect Arduino IDE with ESP32
A fatal error occurred: Failed to connect to ESP32: Timed out ... You'll either have a new port in the list if you...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found