-
Notifications
You must be signed in to change notification settings - Fork 1.1k
ESP-IDF release v4.2 upgrade and support for ESP32-S2 #2893
ESP-IDF release v4.2 upgrade and support for ESP32-S2 #2893
Conversation
Hey shubhamkulkarni97, Can you confirm that this PR is ready for review? (There is an option at the bottom of the PR to turn it out of the draft stage). |
@yngki This PR is ready for review. Thanks. |
/bot run checks |
Hi @shubhamkulkarni97, can you rebase your branch to the top of master? |
9d98204
to
6c98840
Compare
Hi @mingyue86010, I have rebased this branch on top of latest master. |
Thank you @shubhamkulkarni97 ! I verified this PR locally it looks no problem and is able to build. The blocker on the build check is caused by the toolchain setup in our CI (some python dependencies need to be updated). I'm working on this with our CI team. Once it is done then I will git this PR and the others relearted PRs meaged. |
Can you resolve the confilct? I think it just need to include the change from #2897 . Thanks! |
6c98840
to
f2610b8
Compare
Hi @mingyue86010, I have resolved the merge conflict. Thanks, |
/bot run checks |
1 similar comment
/bot run checks |
This reverts ESP32 specific changes in commit 200d2ed
…ild system Remove linker flags from toolchain specific files iot_wifi.c: Use esp_netif APIs Fix warnings in WiFi port layer Change smartconfig implementation extras.c: Add stack overflow hook in freertos component Remove secure_sockets layer in ports directory and use AFR secure_socket layer iot_pkcs11_pal.c: Change ESP_LOGx to ESP_EARLY_LOGx in initialize_nvs_partition
…source code in app_update component
Add mbedtls specific config options in sdkconfig.defaults Disable ESP_NETIF_TCPIP_ADAPTER_COMPATIBLE_LAYER in sdkconfig to fix IP issue with WiFi reconnection Sync freertos component Kconfig with IDF Update linker fragment for freertos component Update sdkconfig.defaults to disable GCC8 warnings and remove corresponding CFLAGS from Makefile
all boards. Remove mbedTLS port files and use ESP-IDF provided files. Changes in CMakeLists for mbedTLS to support ESP32-S2.
iot_board_gpio.h: Use pins which are common for ESP32 and ESP32-S2
f2610b8
to
03f32dd
Compare
Rebased to latest master to fix merge conflict |
/bot run checks |
Hi, I am currently trying to work with this commit and I'm running into some issues... I'm using an ESP32-D0WD-V3 chip on a custom board connected to a ESP-Prog board for programming. I'm developing on a Windows 10 PC and I've installed esp-idf tools v2.3. In my project, I am using amazon-freertos as a submodule and when I tried to build with I was getting the error :
It appears the changes in vendors\espressif\boards\esp32\CMakeLists.txt broke the build. By reverting this file to commit cc5530d I was able to continue on in the build, but I ran into a different error. Question 1:
Question 2:
|
@octopusbunch - I moved your issue here: #2931 Thanks. |
After this PR get merged. It breaks the AWS OCW matadata generation by some errors of "links to target "idf::bt" but the target was not found". And the same error to "idf::newlib". You can reproduce the error by running the cmake command with metadata mode from the amazon-freertos root directory, such as: It looks the errors are intruduced by this two lines:
The components of "idf::newlib" and "idf::bt" are added with IDF 4.2 PR. I think you might more familar with ESP build system, so can you help check with the error above? Thank you! Ming |
Hi @mingyue86010, Thanks for reporting this issue, I'll check for the issue and keep you updated. |
Hi @mingyue86010,
Thanks, |
Can you try applying attached patch and check if it fixes the issue with AFR metadata mode? 0001-esp32-esp32s2-Update-CMakeLists.txt-to-exclude-linki.patch.zip |
Thanks Shubham. The generated metadata is used by our internal services to deliver a customized project from FreeRTOS Console. You are right that there is no documentation or a way to verify that the generated metadata is correct. We will try to add these. Thank you for the patch. I made a similar fix as your patch yesterday, but without the following change.
It can get the metadata generated. I will apply your changes later. After my fix there is still some build issues of the "customized projects", which is caused by missing files from the customized project folder. Our internal services "picks" the files from the repo into the customized porject zip file according to the generated metadata information. So the problem may caused by some missing path in the cmake. I will further take a look into this. Thank you for your help! Regards, |
Description
Note: ESP-IDF v4.2 release requires updated toolchain (
xtensa-esp32-elf-gcc 8.2.0
) and is not compatible with older toolchain used in Amazon FreeRTOS(xtensa-esp32-elf-gcc 5.2.0
).Please find Getting Started Guide for ESP32-S2
This PR is dependent on FreeRTOS/FreeRTOS-Kernel#231
Checklist:
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.