This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new 5336704 esp32_start.c: Initialize the SPI RAM before enabling its
cache.
5336704 is described below
commit 5336704c77b696248a9a6fb1050b94f5ac4c4e1c
Author: Abdelatif Guettouche <[email protected]>
AuthorDate: Mon Sep 27 12:10:05 2021 +0200
esp32_start.c: Initialize the SPI RAM before enabling its cache.
Signed-off-by: Abdelatif Guettouche <[email protected]>
---
arch/xtensa/src/esp32/esp32_start.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/arch/xtensa/src/esp32/esp32_start.c
b/arch/xtensa/src/esp32/esp32_start.c
index ee4ec46..00fd8eb 100644
--- a/arch/xtensa/src/esp32/esp32_start.c
+++ b/arch/xtensa/src/esp32/esp32_start.c
@@ -201,7 +201,6 @@ static noreturn_function void __esp32_start(void)
showprogress("A");
#if defined(CONFIG_ESP32_SPIRAM_BOOT_INIT)
- esp_spiram_init_cache();
if (esp_spiram_init() != OK)
{
# if defined(ESP32_SPIRAM_IGNORE_NOTFOUND)
@@ -210,6 +209,10 @@ static noreturn_function void __esp32_start(void)
PANIC();
# endif
}
+ else
+ {
+ esp_spiram_init_cache();
+ }
/* Set external memory bss section to zero */