Debugging a LoadProhibited during a PSRAM alloc #3227
-
Hey all, From previous discussions I gathered that LoadProhibited might be related to the stack, however I don't think this is the case here (A1=0x3fccb980 < 0x3fcdc700 (start of the .dram2_uninit section which is the one after the stack). I would assume that a non-fit would result in a rust exception instead of that. For some reason it also seems to load EXCVADDR=0xffffffff, which sounds like some math has been done on a null pointer. Do you have any suggestions on how to properly debug this? Versions used:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
Are you using an ESP32-S2 by any chance? |
Beta Was this translation helpful? Give feedback.
One thing I see is you're not configuring PSRAM for octal mode. Try
ESP_HAL_CONFIG_PSRAM_MODE = "octal"