-
-
Notifications
You must be signed in to change notification settings - Fork 177
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
Update ESP32 series to IDF 5.1.3 #2829
Conversation
Seems to be some build issues, i'll sort them out. |
@josesimoes |
02e0d18
to
591537f
Compare
Automated fixes for code style.
Needed for version 2 mbedtls. Already included via platform.h for version 3
Update method names for address conversions to specify for IPV4
- Also fixed identation.
Found that the Component manager is not supported by the IDF as a Library project. Added code to binutils.esp32.cmake to download and install tinyusb & esp_tinyusb to IDF components directory and sort other requirements to get them to compile and link. Now the S2 & S3 targets are working with Tinyusb The only thing left now is to finish openthread work. |
@AdrianSoundy that sound great!! Just looked at the CMake and it looks OK. Well done! |
@AdrianSoundy again looking at the code, it seems that several files not related at all with the PR are now showing diferences! 😯 |
Thats basically what I did. |
That's a very heavy lifting! Can't wait to see all this available! Very hard to review the PR as there are also changes brought form existing merge. You may want to update the main branch/rebase on it to bring clarity. |
- SPIRAM not configured as missing esp_psram component - Network start fails when any network interface fails to start causing initialisation to be incomplete. - Added code to close down network on reboot so startup ok - Fix IPV6 build - Disable automatic start for openthread till more work done. - Adjust IDF allocations on S3 builds - Add OCT spiram for S3 build - Adjust partion sizes - Don't report error on SPIFFS init when already initialised.
@networkfusion |
Automated fixes for code style.
…2-f920-4ce9-8654-719cc9e0f108' into IDF5.1
@josesimoes @Ellerbach |
From my perspective yes! I let @josesimoes do the magic rebase! |
@AdrianSoundy sure thing! I'll take care of that. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Last merge and review done! All good.
Description
This PR updates code to the IDF 5.1.3 version and adds the new ESP devices ESP32-C6 and ESP32-H2.
As part of the C6 and H2 addition the OpenThread was added to support the new radio. The openThread requires
IPV6 networking support so all the socket code was updated and tested to support IPV6 if enabled with LWIP_IPV6 option.
The V5.X IDF updates the API of a number of peripherals and the original API have been deprecated.
The other peripherals should have the API updated as some give a warning on boot. These can be done separately to this PR. I will raise issues for them. Devices RMT, ADC, DAC
Outstanding Issues.
@josesimoes do you have time to have a look at these problems.
For some reason can't debug ESP32 from VS it always gives a [Event dispatch failed:Object reference not set to an instance of an object.] but other devices including C3,C6 & H2 work fine. Not sure what's happening here.
With IDF 5.X a number of components are not included in the IDF and loaded separately using the espressif component manager from the component register. The TinyUsb component as used by ESP32-S2 & ESP32-S3 is one of these. I tried to get this working but for now commented out in Binutils.ESP32.cmake. So these targets will compile but won't work via USB.
List of changes
Motivation and Context
Update to IDF 5.1.1 was so we could add the esp32 C6 & H2 devices.
How Has This Been Tested?
A lot of things have been tested.
But further testing will be required for
Types of changes
Checklist