Page 1 of 1

Arduino 1.8.12 and ESP-IDF-V4.0

Posted: Fri Mar 06, 2020 9:58 am
by OutOfLine
After many attempts to use Arduino 1.8.12 and ESP-IDF-V4.0
I still get

Code: Select all

esp_get_idf_version()	// gives v3.2.3-14-gd3e562907
first try was to git clone, something like

Code: Select all

## ~/arduino-1.8.12/hardware/espressif
## cd <ARDUINO>/hardware
## mkdir espressif
## cd espressif	|| exit 1
git clone -b idf-release/v4.0 --recursive https://github.com/espressif/arduino-esp32.git esp32
cd esp32	|| exit 1
git submodule update --init
cd tools	|| exit 1
python get.py
cd ~/arduino-1.8.12/hardware/espressif/esp32
git status
  On branch idf-release/v4.0
  Your branch is up to date with 'origin/idf-release/v4.0'.
started arduino
checked preferences Additional Boards Manager URLs
compile
still see v3.2.3-14-gd3e562907

also followed https://github.com/espressif/arduino-es ... manager.md

I am still trying, any hints very welcome...

Re: Arduino 1.8.12 and ESP-IDF-V4.0

Posted: Sat Mar 07, 2020 9:10 am
by ESP_igrr
I think you may need to uninstall the version of Arduino-esp32 which came from the boards manager, and then Arduino will pick up the version which you have installed manually into the Arduino directory. You may need to restart Arduino after uninstalling the package in the boards manager.

Re: Arduino 1.8.12 and ESP-IDF-V4.0

Posted: Sat Mar 07, 2020 11:54 am
by OutOfLine
<QUOTE author="ESP_igrr" post_id="56573" time="1583572234" user_id="241"><s>
ESP_igrr wrote:
Sat Mar 07, 2020 9:10 am
</s>
I think you may need to uninstall the version of Arduino-esp32 which came from the boards manager, and then Arduino will pick up the version which you have installed manually into the Arduino directory.
</e></QUOTE>

I have seen from compiler output that it compiled from ~/.arduino15 and not ~/.arduino-1.8.12/<br/>
Removing the additional URL in preferences, saving and restarting changed that (for some reason it did not work the first time, but did on second try).<br/>
<br/>
now i get:
<CODE><s>

Code: Select all

</s><i>
</i>/home/dada/arduino-1.8.12/hardware/espressif/esp32/tools/sdk/lib/liblwip.a(dns.o):(.literal.dns_compare_name+0x4): undefined reference to `__locale_ctype_ptr'
/home/dada/arduino-1.8.12/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:417: 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:417: undefined reference to `__locale_ctype_ptr'
/home/dada/arduino-1.8.12/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'
/home/dada/arduino-1.8.12/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: error: ld returned 1 exit status
<e>
</e></CODE></r>

edit: sorry, managed to break formatting by saving and reloading draft...

Re: Arduino 1.8.12 and ESP-IDF-V4.0

Posted: Tue Mar 10, 2020 2:27 pm
by OutOfLine
still trying to find out more...

I do not understand much about the inner working of this esp-idf & arduino combination

I *did* expect having to do some adaptions in my code but
the above compiler output does not look like much related to my application code
but maybe I get that wrong?

should this V4.0 - A1.8.12 work (if I do things right) or is it not ready?

hoping for hints: what can I do to explore the issue?

Re: Arduino 1.8.12 and ESP-IDF-V4.0

Posted: Wed Mar 11, 2020 11:08 pm
by jwestmoreland
Hello All,

In a related question - can the core be customized that is downloaded by the Arduino tools?

My build reported this:

core_esp32_esp32_nina_w10_UploadSpeed_115200_0f6e4ef6f861a05c4a4e509859b8bac1.a

Thanks!
John W.