Skip to content

Commit 463e6ee

Browse files
authored
Update IDF v5.5.4 (#3279)
1 parent ebdb60b commit 463e6ee

9 files changed

Lines changed: 12 additions & 74 deletions

File tree

.devcontainer/All/Dockerfile.All

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
FROM ghcr.io/nanoframework/dev-container-all:v2.60
1+
FROM ghcr.io/nanoframework/dev-container-all:v2.61

.devcontainer/All/Dockerfile.All.SRC

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# IDF MIGRATION CHECKLIST
33
# When upgrading ESP-IDF to a new version, review and update the following:
44
#
5-
# 1. ESP-IDF version: search for the git clone --branch tag below (currently v5.5.3)
5+
# 1. ESP-IDF version: search for the git clone --branch tag below (currently v5.5.4)
66
# 2. ESP_PATCH_VER: the GCC toolchain patch version installed by IDF.
77
# After running install.sh in the new IDF, check the toolchain version at:
88
# ~/.espressif/tools/xtensa-esp-elf/ and ~/.espressif/tools/riscv32-esp-elf/
@@ -117,7 +117,7 @@ RUN git clone --branch STABLE-2_1_3_RELEASE https://github.com/lwip-tcpip/lwip.g
117117

118118
# Clone ESP-IDF
119119
# >>> IDF MIGRATION: update the branch tag to the new IDF version <<<
120-
RUN git clone --branch v5.5.3 https://github.com/espressif/esp-idf --depth 1 --recursive ./sources/esp-idf
120+
RUN git clone --branch v5.5.4 https://github.com/espressif/esp-idf --depth 1 --recursive ./sources/esp-idf
121121

122122
# Clone what is needed for TI
123123
RUN git clone --branch 4.10.00.07 https://github.com/nanoframework/SimpleLink_CC32xx_SDK.git --depth 1 ./sources/SimpleLinkCC32 \
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
FROM ghcr.io/nanoframework/dev-container-esp32:v2.38
1+
FROM ghcr.io/nanoframework/dev-container-esp32:v2.39

.devcontainer/ESP32/Dockerfile.ESP32.SRC

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# IDF MIGRATION CHECKLIST
33
# When upgrading ESP-IDF to a new version, review and update the following:
44
#
5-
# 1. ESP-IDF version: search for the git clone --branch tag below (currently v5.5.3)
5+
# 1. ESP-IDF version: search for the git clone --branch tag below (currently v5.5.4)
66
# 2. ESP_PATCH_VER: the GCC toolchain patch version installed by IDF.
77
# After running install.sh in the new IDF, check the toolchain version at:
88
# ~/.espressif/tools/xtensa-esp-elf/ and ~/.espressif/tools/riscv32-esp-elf/
@@ -71,7 +71,7 @@ RUN git clone --branch R0.15a https://github.com/abbrev/fatfs.git --depth 1 ./so
7171

7272
# Clone ESP-IDF
7373
# >>> IDF MIGRATION: update the branch tag to the new IDF version <<<
74-
RUN git clone --branch v5.5.3 https://github.com/espressif/esp-idf --depth 1 --recursive ./sources/esp-idf
74+
RUN git clone --branch v5.5.4 https://github.com/espressif/esp-idf --depth 1 --recursive ./sources/esp-idf
7575

7676
# Creating static link python for pyhton3
7777
RUN ln -fs /usr/bin/python3 /usr/bin/python \

CMake/binutils.ESP32.cmake

Lines changed: 0 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -151,65 +151,6 @@ macro(nf_fix_esp32c3_rom_file)
151151

152152
endmacro()
153153

154-
# fixes the NimBLE version for IDF 5.5.3 which causes connection issues
155-
function(nf_fix_nimble_idf553)
156-
157-
# Check we are running on IDF v5.5.3, if not, no need to do anything
158-
string(FIND "${MY_IDF_VER}" "v5.5.3" ESP32_IDF_VERSION_INDEX)
159-
if(ESP32_IDF_VERSION_INDEX EQUAL -1)
160-
return()
161-
endif()
162-
163-
set(TRANSPORT_PATH ${esp32_idf_SOURCE_DIR}/components/bt/host/nimble/nimble/nimble/transport/src/transport.c)
164-
file(READ
165-
${TRANSPORT_PATH}
166-
ESP32_NIMBLE_TRANSPORT_CONTENT)
167-
168-
message(STATUS "Check if Nimble on IDF v5.5.3 needs patching")
169-
170-
# Check if the file already has the correct include to avoid doing the replacement multiple times
171-
string(FIND "${ESP32_NIMBLE_TRANSPORT_CONTENT}" "#include <nimble/nimble_opt.h>" ESP32_NIMBLE_TRANSPORT_FOUND_INDEX)
172-
if(NOT ${ESP32_NIMBLE_TRANSPORT_FOUND_INDEX} EQUAL -1)
173-
# the file already has the correct include, no need to do anything
174-
message(STATUS "Nimble on IDF v5.5.3 already patched")
175-
return()
176-
endif()
177-
178-
message(STATUS "Patching Nimble on IDF v5.5.3 - transport.c")
179-
180-
string(REPLACE
181-
"#include <nimble/hci_common.h>"
182-
"#include <nimble/hci_common.h>
183-
#include <nimble/nimble_opt.h>"
184-
ESP32_NIMBLE_TRANSPORT_NEW_CONTENT
185-
"${ESP32_NIMBLE_TRANSPORT_CONTENT}")
186-
187-
file(WRITE
188-
${TRANSPORT_PATH}
189-
"${ESP32_NIMBLE_TRANSPORT_NEW_CONTENT}")
190-
191-
set(HCI_UART_PATH ${esp32_idf_SOURCE_DIR}/components/bt/host/nimble/nimble/nimble/transport/uart/src/hci_uart.c)
192-
193-
message(STATUS "Patching Nimble on IDF v5.5.3 - hci_uart.c")
194-
195-
file(READ
196-
${HCI_UART_PATH}
197-
ESP32_NIMBLE_HCI_UART_CONTENT)
198-
199-
string(REPLACE
200-
"#include \"hal/hal_uart.h\""
201-
"#include \"hal/hal_uart.h\"
202-
#include \"nimble/nimble_opt.h\""
203-
ESP32_NIMBLE_HCI_UART_NEW_CONTENT
204-
"${ESP32_NIMBLE_HCI_UART_CONTENT}")
205-
206-
file(WRITE
207-
${HCI_UART_PATH}
208-
"${ESP32_NIMBLE_HCI_UART_NEW_CONTENT}")
209-
210-
message(STATUS "Patching Nimble on IDF v5.5.3 - complete")
211-
212-
endfunction()
213154

214155
# setting compile definitions for a target based on general build options
215156
# TARGET parameter to set the target that's setting them for
@@ -1092,9 +1033,6 @@ macro(nf_add_idf_as_library)
10921033

10931034
nf_fix_esp32c3_rom_file()
10941035

1095-
# Check if nimble needs patching, only relevant for IDF v5.5.3
1096-
nf_fix_nimble_idf553()
1097-
10981036
# find out if there is support for BLE
10991037
string(FIND ${SDKCONFIG_DEFAULT_CONTENTS} "CONFIG_BT_ENABLED=y" CONFIG_BT_ENABLED_POS)
11001038

azure-pipelines-nightly.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ resources:
1717
type: github
1818
name: espressif/esp-idf
1919
endpoint: nanoframework
20-
ref: refs/tags/v5.5.3
20+
ref: refs/tags/v5.5.4
2121

2222
# scheduled build
2323
# the schedule is defined at the AZDO web interface because of inconsistencies with time zones
@@ -642,7 +642,7 @@ jobs:
642642
IDF_PATH: "D:/a/1/s/esp-idf"
643643
PIP_CACHE_DIR: $(Pipeline.Workspace)/.pip
644644
TargetPlatform: "esp32"
645-
IDF_TAG: "v5.5.3"
645+
IDF_TAG: "v5.5.4"
646646

647647
steps:
648648
- checkout: self

azure-pipelines.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ resources:
4444
type: github
4545
name: espressif/esp-idf
4646
endpoint: nanoframework
47-
ref: refs/tags/v5.5.3
47+
ref: refs/tags/v5.5.4
4848
- repository: mscorlib
4949
type: github
5050
name: nanoframework/CoreLibrary
@@ -543,7 +543,7 @@ jobs:
543543
IDF_PATH: "D:/a/1/s/esp-idf"
544544
PIP_CACHE_DIR: $(Pipeline.Workspace)/.pip
545545
TargetPlatform: "esp32"
546-
IDF_TAG: "v5.5.3"
546+
IDF_TAG: "v5.5.4"
547547

548548
steps:
549549
- checkout: self

targets/ESP32/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ endif()
4747
# 3. cache tag in build and download AZDO yaml templates #
4848
#################################################################################
4949
#################################################################################
50-
set(ESP32_IDF_TAG "5.5.3" CACHE INTERNAL "ESP32 IDF tag")
50+
set(ESP32_IDF_TAG "5.5.4" CACHE INTERNAL "ESP32 IDF tag")
5151
#################################################################################
5252
#################################################################################
5353

version.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"$schema": "https://raw.githubusercontent.com/dotnet/Nerdbank.GitVersioning/master/src/NerdBank.GitVersioning/version.schema.json",
3-
"version": "1.15.0",
3+
"version": "1.16.0",
44
"assemblyVersion": {
55
"precision": "revision"
66
},

0 commit comments

Comments
 (0)