Skip to content

ESP-IDF Release v4.0 #3739

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
joseitor opened this issue Feb 13, 2020 · 12 comments
Closed

ESP-IDF Release v4.0 #3739

joseitor opened this issue Feb 13, 2020 · 12 comments
Labels
Status: Stale Issue is stale stage (outdated/stuck)

Comments

@joseitor
Copy link

It has just be release the new version 4.0. Are gonna be the idf of arduino-esp32 updated to it?

@jarusRnD
Copy link

Anyone
waiting for the answer.

@atanisoft
Copy link
Collaborator

IDF v4 is currently only supported on the https://github.com/espressif/arduino-esp32/tree/idf-release/v4.0 branch and is not yet generally available via the Arduino IDE and it fails entirely in PlatformIO IDE.

@Vzor-
Copy link

Vzor- commented Feb 22, 2020

Is there an ETA on that becoming stable? I use PlatformIO ATM.

@atanisoft
Copy link
Collaborator

There is no eta for PIO support.

@schlaegerz
Copy link

Are there instructions for using the 4.0 branch with Arduino IDE. I would like to be able help with the testing of it, but I can't figure out an easy way to test it, or when to expect it to stabilize.

@lbernstone
Copy link
Contributor

If you are comfortable using git, follow the development instructions and then checkout the idf-release/v4.0 branch.

@atanisoft
Copy link
Collaborator

PIO now supports IDF v4 in the latest release. You can use arduino-esp32 with it as well if you follow their examples

@schlaegerz
Copy link

schlaegerz commented Apr 2, 2020

There seems to still be a pretty bad problem with it, unless I somehow missed a setup step (building with VSCode, installed it via git)

Most of my code works well, except for wifi related parts, specifically this:

#include <HTTPClient.h>

void loop(){

}
void setup(){
	Serial.begin(115200);

    delay(3000);
	HTTPClient http;
	http.begin("www.google.com");
}

Leads to a linker error:

C:\Users\schla\Documents\Arduino\hardware\espressif\esp32/tools/sdk/lib\liblwip.a(dns.o):(.literal.dns_compare_name+0x4): undefined reference to `__locale_ctype_ptr'

C:\Users\schla\Documents\Arduino\hardware\espressif\esp32/tools/sdk/lib\liblwip.a(dns.o): In function `dns_compare_name':

/home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/lwip/lwip/src/core/dns.c:428: undefined reference to `__locale_ctype_ptr'

/home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/lwip/lwip/src/core/dns.c:428: undefined reference to `__locale_ctype_ptr'

C:\Users\schla\Documents\Arduino\hardware\espressif\esp32/tools/sdk/lib\liblwip.a(ip4_addr.o): In function `ip4addr_aton':

/home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/lwip/lwip/src/core/ipv4/ip4_addr.c:160: undefined reference to `__locale_ctype_ptr'

/home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/lwip/lwip/src/core/ipv4/ip4_addr.c:175: undefined reference to `__locale_ctype_ptr'

C:\Users\schla\Documents\Arduino\hardware\espressif\esp32/tools/sdk/lib\liblwip.a(ip4_addr.o):/home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/lwip/lwip/src/core/ipv4/ip4_addr.c:178: more undefined references to `__locale_ctype_ptr' follow

collect2.exe: error: ld returned 1 exit status

It seems somehow related to this file
https://github.com/espressif/esp-idf/blob/master/components/esp_rom/esp32s2/ld/esp32s2.rom.newlib-funcs.ld

But I don't understand what is happening.

@lbernstone
Copy link
Contributor

The branch is only designed for the Arduino IDE. Things will be broken with it until it is actually released. The code upstream has changed. You will have to wait if you can't fix it yourself.

@schlaegerz
Copy link

Ok understood, it wouldn't compile in Arduino IDE either it was making me go crazy for the last day. It was caused by the latest commit on that branch.

I was able to actually get it working by checking out the commit before

git checkout 60f20a7

@stale
Copy link

stale bot commented Jun 2, 2020

[STALE_SET] This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. Thank you for your contributions.

@stale stale bot added the Status: Stale Issue is stale stage (outdated/stuck) label Jun 2, 2020
@stale
Copy link

stale bot commented Jun 16, 2020

[STALE_DEL] This stale issue has been automatically closed. Thank you for your contributions.

@stale stale bot closed this as completed Jun 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Stale Issue is stale stage (outdated/stuck)
Projects
None yet
Development

No branches or pull requests

6 participants