Posts: 95
Joined: Tue Feb 21, 2017 10:17 pm

Re: ESP-IDF 2.0

Postby madscientist_42 » Tue Mar 14, 2017 1:59 pm

For me, it's about knowing when to expect more of the promised functionality (that I've "groused" about previously :twisted: ) in the Silicon being exposed through the IDF. They claim a few things of the ESP32 that unless you have some enhanced IP licensing available to you, you're not going to be able to know if there's any other errata on the silicon or not- and you can't use the desired functionality. Some projects would call for BT Classic...and you can't DO that yet. Some projects call for their meshing solution...and you can't DO that yet...


User avatar
rudi ;-)
Posts: 1517
Joined: Fri Nov 13, 2015 3:25 pm

Re: ESP-IDF 2.0

Postby rudi ;-) » Fri Mar 24, 2017 12:38 am

nice, ESP-IDF v2.0 Release Candidate 2 online


Fix bug where hardware RNG could be disabled following a soft reset
Fix stack overflows in mDNS component

Wifi and BT

phy_init no longer re-writes already valid calibration data
Correctly enable/disable PHY when WiFi and/or BT are enabled/disabled
New menuconfig options to set WiFi, BT and Ethernet MAC addresses
Enable BLE advertising channel 39
BLE advertising data no longer truncated after 31st octet
Multiple BLE GATT and GATT table fixes
Allow BT Blufi to work with small MTU size
BT Blufi correctly resets security mode on state reset
DHCP client reliability improvements
WiFi RX performance
Fix WiFi sniffer behaviour
Enable AP A-MPDU RX interface
General WiFi layer fixes & optimisations
OpenSSL layer fixes for large writes, debugging output


Fix crash if cross-core interrupt sent with flash cache disabled
Fix issue where lower priority task can preempt other core
New xPortInIsrContext() function to check if CPU is in ISR


Disable flow control in L2 to L3 copy mode
Example documentation, add GPIO for PHY power control to example

Deep Sleep

Restore correct deep sleep consumption, fix power regression in v2.0-rc1


Honour "encrypted" flag in partition table
Fix OTA when flash encryption is enabled
OTA falls back to factory if the ota data partition is invalid
OTA verifies new app image before switching sources
Fix issue with stale cache reads when flash encryption is enabled
fopen() works in append mode
Fix spi_flash operation crashes in single core mode
sdmmc: Can set slot width when configuring slot


Partition table CSV can be an absolute path
Core dump documentation expanded, reliability fixes
menuconfig now works with gperf 3.1
Correct incremental builds when components added/removed

best wishes
rudi ;-)
love it, change it or leave it.

Posts: 29
Joined: Mon Aug 29, 2016 8:26 am

Re: ESP-IDF 2.0

Postby DL88AI88 » Sun Mar 26, 2017 12:29 pm

Hi there,

in order to use the latest esp-idf version from here which is the best way to "update" a running esp32 environment?
e.g.: if a I have a linux directory like /esp/esp-idf, do I only have to delete the existing esp-idf folder an just redo step 2 of your instruction from here?

best regards

Last edited by DL88AI88 on Mon Mar 27, 2017 9:14 am, edited 1 time in total.

User avatar
Posts: 1683
Joined: Mon Nov 16, 2015 4:43 pm
Location: Texas, USA

Re: ESP-IDF 2.0

Postby kolban » Sun Mar 26, 2017 7:15 pm

Don't think of the ESP32 as desktop PC with an operating system onto which you can install upgrades and patches. Rather, think that the ESP32 runs ONLY one application at a time and that the application is a binary file which is "fixed in form" at compile time. When you run an ESP32 application, the ESP-IDF (the software development toolkit) is compiled INTO the application at that time. Once the application is deployed to the ESP32 there is no way to "patch" that running application. Instead what one would do is recompile the source of the application using a later version of the ESP-IDF and then re-flash the ESP32 device with the new copy of the application that is now at a later level.
Free book on ESP32 available here:

Posts: 1
Joined: Mon Mar 27, 2017 6:50 am

Re: ESP-IDF 2.0

Postby sveinutne » Mon Mar 27, 2017 6:55 am

I wonderif one should install det ESP32 software over again to get then new IDEv 2.0. I am working inside arduino IDE, and want to test BLE. If they have some new examples showing how to use the BLE inside arduino IDE, it would be great,but that might be to early?

Posts: 29
Joined: Mon Aug 29, 2016 8:26 am

Re: ESP-IDF 2.0

Postby DL88AI88 » Mon Mar 27, 2017 9:21 am

Hello Neil,

does that mean I can't just upgrade my esp-idf folder in my linux system and compile with the new version?
(Sorry for my simplified thinking.)

Best regards


Posts: 1675
Joined: Tue Dec 01, 2015 8:37 am

Re: ESP-IDF 2.0

Postby ESP_igrr » Mon Mar 27, 2017 9:58 am

You can update an existing esp-idf folder like this:

Code: Select all

git fetch
git checkout v2.0-rc2
git submodule update --init

Posts: 29
Joined: Mon Aug 29, 2016 8:26 am

Re: ESP-IDF 2.0

Postby DL88AI88 » Mon Mar 27, 2017 1:26 pm

Hello Igrr, hello Neil,

that is indeed easy.

Thank you very much.

Best regards


Posts: 16
Joined: Mon Mar 20, 2017 5:59 pm

Re: ESP-IDF 2.0

Postby krajaan » Tue Mar 28, 2017 10:49 am

I seem to have an issue using rc2 with Arduino as a component (on an existing rc1 project):

Code: Select all

[project src dir]/components/arduino/libraries/SD/src/sd_diskio.cpp: In function 'uint8_t sdcard_uninit(uint8_t)':
[project src dir]/components/arduino/libraries/SD/src/sd_diskio.cpp:624:58: error: 'esp_vfs_fat_unregister_path' was not declared in this scope
         err = esp_vfs_fat_unregister_path(card->base_path);
[project src dir]/components/arduino/libraries/SD/src/sd_diskio.cpp: In function 'uint8_t sdcard_init(uint8_t, SPIClass*, int)':
[project src dir]/components/arduino/libraries/SD/src/sd_diskio.cpp:634:34: error: 'ff_diskio_get_drive' was not declared in this scope
     if (ff_diskio_get_drive(&pdrv) != ESP_OK || pdrv == 0xFF) {
[project src dir]/components/arduino/libraries/SD/src/sd_diskio.cpp: In function 'bool sdcard_mount(uint8_t, const char*)':
[project src dir]/components/arduino/libraries/SD/src/sd_diskio.cpp:709:41: error: 'esp_vfs_fat_unregister_path' was not declared in this scope
~/my_user/workspace/esp-idf-v2.0-rc2/make/ recipe for target 'libraries/SD/src/sd_diskio.o' failed
make[1]: *** [libraries/SD/src/sd_diskio.o] Error 1
~/my_user/workspace/esp-idf-v2.0-rc2/make/ recipe for target 'arduino-build' failed
make: *** [arduino-build] Error 2

Posts: 1675
Joined: Tue Dec 01, 2015 8:37 am

Re: ESP-IDF 2.0

Postby ESP_igrr » Thu Apr 06, 2017 4:51 am

Who is online

Users browsing this forum: No registered users and 3 guests