Skip to content

After migrating to 0.22, init_psram hangs (esp32s3) #2739

Answered by bjoernQ
yanshay asked this question in Q&A
Discussion options

You must be logged in to vote

I found the cause for this problem at least for the reproducer.

Apply this patch to 0.21.0 to test

diff --git a/esp-hal/src/soc/esp32s3/psram.rs b/esp-hal/src/soc/esp32s3/psram.rs
index 2a6d00a4..2b6557d2 100644
--- a/esp-hal/src/soc/esp32s3/psram.rs
+++ b/esp-hal/src/soc/esp32s3/psram.rs
@@ -125,16 +125,17 @@ pub fn init_psram(_peripheral: crate::peripherals::PSRAM, config: PsramConfig) -
         const MMU_INVALID: u32 = 1 << 14;
         const DR_REG_MMU_TABLE: u32 = 0x600C5000;
 
-        // calculate the PSRAM start address to map
-        let mut start = EXTMEM_ORIGIN;
+        // calculate the PSRAM start address to map - honor the fact there might be
+        // unmapped pages in …

Replies: 1 comment 41 replies

Comment options

You must be logged in to vote
41 replies
@bjoernQ
Comment options

@yanshay
Comment options

@yanshay
Comment options

@bjoernQ
Comment options

Answer selected by yanshay
@yanshay
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants