-
Notifications
You must be signed in to change notification settings - Fork 13.3k
SDK 2.0 has been released #2304
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
Comments
Thank you for taking time to copy the release notes here 👍 |
WPA Enterprise is required for my use cases, so I was thinking to help a little bit more. However, some of SDK files were modified to fix some of the compilation errors: Arduino/tools/sdk/include/ets_sys.h Line 160 in 4c587e2
@igrr, is there any checklist for those modifications? I will probably dive into git history, but any pointers would be useful. After copying those prototypes, I'm failing with this:
|
No there is no checklist for these changes, they have accumulated over time. Bigger issue which you are going to face is that now we need to reserve an extra sector for RF calibration data somewhere (see documentation for If you are just hacking this and not interested in using EEPROM, for example, you could add a call to |
Wrong button =) |
A bit of an update. I was able to compile the firmware, but it can't boot. Output from serial is cycling through this:
In short, here is what I've done:
@igrr, do any of these issues remind you about something when you ported previous versions of SDK? I guess the next step would be to learn how to debug this stuff and get more information... |
Did you also remove mem_manager.o from libmain.a as mentioned in tools/sdk/lib/README.md? Regarding replacing lwip with old version, this may not be a good idea. Just find an implementation of memchr (it's just three lines) and dump it somewhere in a C file. |
I've tried both with removing |
Ok, I'm going to review code changes done in 2.0.0 sdk libraries early next week. |
Hell yes, I've got it to work! So, indeed, I've tried to go with original If that's OK, I can wrap up PR and we can coordinate what to do next? There's a chance that some libs (like SPIFFS) aren't working. |
Sure, feel free to post a PR. |
Regarding |
Arduino compatibility is very important, so removing EEPROM is certainly not an option :) |
Okay. Didn't know that |
Awesome to see that Espressif improved SSL/TLS and included WPA-Enterprise. Hope SSL based on mbedTLS will work with a little smaller memory footprint this time around. Anyway, thanks so much for your efforts of getting this into the Arduino SDK. Awesome job guys! Seriously appreciated! |
mbedTLS footprint is not smaller if you configure it to support 16k fragments used by most of the TLS servers, unfortunately. But at least we get TLS 1.2 support. This still has to be integrated into WiFiClientSecure. |
TTLS is very critical for me. I guess also for some others. So it will only be available in 2.5.0? What will be the earliest date? An chance to get it form some RC branches? |
Hi I'm using the latest Arduino/ESP8266 - which I have to say - very good... but In converting my code - I note in my debug that this is still using 1.53 of the SDK - any idea when it will be upgraded to 2.0 and how we (I'm new to this) go about upgrading? I'm not using the EEPROM as it has no backup in the event of power loss during update. I realised quickly that it is just as easy to use the Espressif functions which use 3 sectors to secure data in those circumstances. Really worth looking at for storing user info. 2.0??? |
Hello Alex and Ivan, I'm trying to increase the sampling rate on the ESP's ADC and I noticed that on SDK 2.0.0 there is the function system_adc_read_fast and I'd like to use it to check how much can I increase the sampling rate; could you please tell me how can I upgrade the SDK on the arduino ESP core? I have v2.3.0 installed on my arduino IDE which is using SDK version 1.5.3. I'll appreciate any help you can give me, I'd rather continue using the Arduino IDE than setting up a new development environment around the SDK 2.0.0. Thanks in advance and regards. |
@Beliwars you can try the experimental version based on SDK 2.0.0:
|
thanks @igrr, I'll clone the git version and install with the sdk_2.0.0 option, I'll let you know how everything goes. thanks again. regards |
Please post your discoveries regarding |
Note that WIFI has to be disabled for this - From: Beliwars [mailto:[email protected]] Hello Alex and Ivan, I'm trying to increase the sampling rate on the ESP's ADC and I noticed that on SDK 2.0.0 there is the function system_adc_read_fast and I'd like to use it to check how much can I increase the sampling rate; could you please tell me how can I upgrade the SDK on the arduino ESP core? I have v2.3.0 installed on my arduino IDE which is using SDK version 1.5.3. I'll appreciate any help you can give me, I'd rather continue using the Arduino IDE than setting up a new development environment around the SDK 2.0.0. Thanks in advance and regards. — |
Hello, I wrote a simple sketch converting 100 samples each time and then checking the time it took to perform the 100 samples; I filtered the output averaging 100 times the result and I obtained: ~528 us, 530 us (to perform the 100 ADC conversions) which led to a sample rate of about 188-189 KSPS; it was a basic test, no WIFI was configured on the ESP and the Operating clock was left @ 80MHz, I will change the system clock to 160 MHz to check results with the same sketch. regards, |
Hello all, I just finished with the 160 MHz testing, this changes very little in the final result, since the system bus is always 80 MHz (ADC working clock = 80M/adc_clk_div) I'm using adc_clk_div = 8, which is the recommended value; so when I change the CPU working frequency I can go up to Sampling rate ~ 220 kSPS (100 samples = 453 us) Below is the code I used: (Note I record the micros before calling system_adc_read_fast() and after I finish) // Expose Espressif SDK functionality - wrapped in ifdef so that it still } void loop() { } I also noted that as @scargill mentioned before, to use system_adc_read_fast, WiFi has to be disabled. Also, if ADC continuously sampling is needed, all interrupts have to be disabled, so PWM or NMI hardware timer can not be used when system_adc_read_fast is called. My guess is that the achievable max sample rate would be less inside an actual application loop. |
Hello all, I've been trying to use this adc_read_fast function on an actual implementation (sampling one sample at each time and then performing some operations) I found that calling such function to convert only one sample gives a 60kSPS sampling rate. |
Problem: wdt reset void loop() { |
I have a problem. I'm trying to compile the IoT_Demo example, but when I execute gen_misc.sh, it's not compiling and I'm getting this error: "multiple definition of `user_rf_cal_sector_set' " So I tried to comment the user_rf_cal_sector_set function defined on the user_main.c . When I do this, the binaries are generated, but I only see random characrters on the serial monitor. I'm already using this command at the beggining of the user_init: uart_div_modify( 0, UART_CLK_FREQ / ( 115200 ) ); . I was able to compile and execute programs before this new SDK 2.0.0 released. |
@Pedrotok I succeded in compiling esp-open-sdk w/ SDK 2.0.0. I was facing "Random characters" problem with the blue esp led blinking very fast. I discovered that if It blinks like that, the esp is in "Waiting for firmware" mode. And I succeded in compiling a Hello world user_main.c. I read about "Putting user_rf_cal_sector_set() in user_main.c" but If I do it, I can't compile my main because this function is already set in libmain.a |
@igrr any updates on the status of TLS 1.2? Thanks in advance! |
axTLS with 1.2 is in master I believe. How is it related to this issue? |
@igrr Currently, the most up-to-date version in 2.3.0 if you download the ESP8266 SDK using Arduino's Board Manager. So, I thought that I would be able to test the WPA2-Enterprise functions found at Then, I followed the steps to download the SDK you presented earlier in this thread. The error message went away (for some reason I can't get the |
You are confusing SDK version (2.0.0) with Arduino core version (2.3.0). Arduino core version 2.3.0 doesn't include SDK 2.0.0. there is an open PR which contains an attempt of integrating SDK2.0.0 I to the Arduino core. |
@timostr Did you find a solution for sampling more then 255 samples? I have the same problem. |
The 2.0 SDK has been out for over 6 months now, would be wonderful if the ESP8266/Arduino code could use it :) What sort of state is the update_sdk_2.0.0 branch - worth trying as its mostly just waiting for testing, or is there still a lot of work to do so most things wont work if I try it? |
Currently I'm waiting for feedback on nightly builds (#2936). They have SDK 2.0, fwiw. |
It has meanwhile been merged into master. Thanks @igrr |
When will the Board Manager update to a new version? I assume v2.3.0 (current as of this post) is NOT the one that supports ESP SDK v2.0.0. |
There is no function like |
@igrr this is for SDK 2.0.0, and has milestone 2.5.0. Aren't we moving straight to SDK 2.1.0? |
This can be closed, yes. Going straight to 2.1.0. |
Hi there! The new SDK version has been published on Espressif forum.
http://bbs.espressif.com/viewtopic.php?f=46&t=2451
ESP8266_NONOS_SDK_V2.0.0_16_07_19 Release Notes:
wpa2-enterprise time function derivation and time check disable can be set by users.
Fix a potential bug in espconn. (Resolved in ESP8266_NONOS_SDK_V1.5.4.1)
ESP8266_NONOS_SDK Notes:
AT Notes:
The text was updated successfully, but these errors were encountered: