Skip to content
This repository has been archived by the owner on Dec 8, 2022. It is now read-only.

vendors/espressif: ESP-IDF v4.4.2 upgrade and added support for ESP32-S3 #3541

Closed
wants to merge 8 commits into from

Conversation

laukik-hase
Copy link
Contributor

@laukik-hase laukik-hase commented Oct 7, 2022

Description

  • Updated the ESP-IDF submodule to the stable v4.4.2 release.
  • Updated the Amazon FreeRTOS port for compatibility with ESP-IDF v4.4.2.
  • Added support for ESP32-S3 SoC

Related

Notes

  • The FreeRTOS-Kernel submodule for this PR is based on the latest main branch commit - FreeRTOS/FreeRTOS-Kernel@195a351.
  • The ESP-IDF v4.4.x release requires an updated toolchain (xtensa-esp32xx-elf-gcc esp-2021r2-patch3-8.4.0) and is not compatible with the older toolchain used in Amazon FreeRTOS (xtensa-esp32xx-elf-gcc esp-2020r3-8.4.0).
  • For getting started with ESP32-S3, please refer to the guide here.
  • Users who want to test this PR can use the following commands -
git fetch origin pull/3541/head:afr_branch
git checkout afr_branch
git submodule update --init --recursive --checkout

Checklist:

  • I have tested my changes. No regression in existing tests.
  • My code is Linted.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@laukik-hase laukik-hase force-pushed the esp-idf/upgrade_to_v4.4.2 branch from c6c5302 to 608bf03 Compare October 7, 2022 08:49
@eelaix
Copy link

eelaix commented Oct 10, 2022

plz, merge this change to aws/amazon-freertos as soon as you can, I have download hase/amazon-freertos and build my esp32s2 code successful.

1 similar comment
@eelaix
Copy link

eelaix commented Oct 10, 2022

plz, merge this change to aws/amazon-freertos as soon as you can, I have download hase/amazon-freertos and build my esp32s2 code successful.

@laukik-hase
Copy link
Contributor Author

Hello, @aggarg and @paulbartell!

This pull request updates ESP-IDF shipped with AFR to v4.4.2 and also adds support for the ESP32-S3 SoC.

As mentioned, the FreeRTOS-Kernel submodule for this PR is based on the latest main branch commit - FreeRTOS/FreeRTOS-Kernel@195a351. The same for AFR main branch is set at v10.4.3 LTS Patch 2 and there is a draft PR for updating it - #3507.

Will we have to wait till the above draft PR is merged? Is there a plan to use only LTS versions of the FreeRTOS kernel in the AFR main branch henceforth?

CC: @mahavirj

@laukik-hase laukik-hase force-pushed the esp-idf/upgrade_to_v4.4.2 branch from 608bf03 to dbe480d Compare October 11, 2022 04:52
@laukik-hase laukik-hase marked this pull request as ready for review October 11, 2022 04:53
@laukik-hase laukik-hase requested a review from a team as a code owner October 11, 2022 04:53
- Added new Kconfig options and updated some old options
  - FREERTOS_PLACE_FUNCTIONS_INTO_FLASH
  - FREERTOS_TICK_SUPPORT_SYSTIMER (for esp32-s3)
- Added task snapshot feature (enables core-dump for all esp32-xx targets)
-
- mbedtls
  - Refactored Kconfig options
      - Removed MBEDTLS_HARDWARE_MPI
      - Added MBEDTLS_DYNAMIC_BUFFER
  - Refactored CMakeLists.txt
- Updated port components as per ESP-IDF update
- Refactored CMakeLists.txt
- Updated sdkconfig.defaults
- Updated partition table to align both the app partitions
- Refactored CMakeLists.txt
- Updated sdkconfig.defaults
- Updated partition table to align both the app partitions
@laukik-hase laukik-hase force-pushed the esp-idf/upgrade_to_v4.4.2 branch from dbe480d to 4183960 Compare October 12, 2022 04:03
@thomasklaush
Copy link

works without issues
I have download hase/amazon-freertos and build my esp32s3 code successful.

@n9wxu
Copy link
Member

n9wxu commented Nov 11, 2022

The iot-reference integration for the ESP32S2 can be found as part of this repo:
https://github.com/FreeRTOS/iot-reference-esp32c3
This repo uses IDF 4.4 so it has support for all ESP32 devices.

@n9wxu n9wxu closed this Nov 11, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
4 participants