This is an automated email from the ASF dual-hosted git repository.
linguini1 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new 4047b9f42b8 arch/risc-v: Clear BSS section for RISC-V-based Espressif
SoCs
4047b9f42b8 is described below
commit 4047b9f42b837be243166b24f69c44b02b9ef02d
Author: Tiago Medicci Serrano <[email protected]>
AuthorDate: Fri May 8 13:52:05 2026 -0300
arch/risc-v: Clear BSS section for RISC-V-based Espressif SoCs
Always clear the BSS section before calling `bootloader_init`.
This is necessary because, otherwise, `bootloader_init` may fail
even before `bootloader_clear_bss_section` is called again by that
function.
Signed-off-by: Tiago Medicci Serrano <[email protected]>
---
arch/risc-v/src/common/espressif/CMakeLists.txt | 2 +-
arch/risc-v/src/common/espressif/Make.defs | 2 +-
arch/risc-v/src/common/espressif/esp_start.c | 4 ++--
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/arch/risc-v/src/common/espressif/CMakeLists.txt
b/arch/risc-v/src/common/espressif/CMakeLists.txt
index e91ebe9e4bc..bde13fc16be 100644
--- a/arch/risc-v/src/common/espressif/CMakeLists.txt
+++ b/arch/risc-v/src/common/espressif/CMakeLists.txt
@@ -221,7 +221,7 @@ if(DEFINED ENV{ESP_HAL_3RDPARTY_VERSION})
CACHE STRING "ESP HAL 3rdparty version")
else()
set(ESP_HAL_3RDPARTY_VERSION
- baafe6da2b9cf6a700bc3794472dad143bce3a2d
+ 91d8aa6e82c74cc73eeb3df7e4005739fab8c322
CACHE STRING "ESP HAL 3rdparty version")
endif()
diff --git a/arch/risc-v/src/common/espressif/Make.defs
b/arch/risc-v/src/common/espressif/Make.defs
index c80c0fa4561..e65aeb1aaf9 100644
--- a/arch/risc-v/src/common/espressif/Make.defs
+++ b/arch/risc-v/src/common/espressif/Make.defs
@@ -229,7 +229,7 @@ endif
ESP_HAL_3RDPARTY_REPO = esp-hal-3rdparty
ifndef ESP_HAL_3RDPARTY_VERSION
- ESP_HAL_3RDPARTY_VERSION = baafe6da2b9cf6a700bc3794472dad143bce3a2d
+ ESP_HAL_3RDPARTY_VERSION = 91d8aa6e82c74cc73eeb3df7e4005739fab8c322
endif
ifndef ESP_HAL_3RDPARTY_URL
diff --git a/arch/risc-v/src/common/espressif/esp_start.c
b/arch/risc-v/src/common/espressif/esp_start.c
index 7207349a0e8..debc53e5eb2 100644
--- a/arch/risc-v/src/common/espressif/esp_start.c
+++ b/arch/risc-v/src/common/espressif/esp_start.c
@@ -497,14 +497,14 @@ void __esp_start(void)
uint32_t cache_mmu_irom_size;
#endif
+ bootloader_clear_bss_section();
+
#ifdef CONFIG_ESPRESSIF_SIMPLE_BOOT
if (bootloader_init() != 0)
{
ets_printf("Hardware init failed, aborting\n");
while (true);
}
-#else
- bootloader_clear_bss_section();
#endif
/* Initialize the per CPU areas */