None of my boards here have PSRAM (apart from me trying to add it to PICO_KIT atm)... that's my point, your code should not crash on them, but should say
E (684) spiram: SPI RAM enabled but initialization failed. Bailing out.
I (684) cpu_start: Failed to init external RAM; continuing without it.
But it doesn't - it just crashes.
In fact I never see mention of PSRAM in the logs before the crash.
If I build without PSRAM enabled, then the firmware works fine on all of my boards.
![Image](http://3sprockets.com.au/um/projects/TinyPICO/menuconfig.png)
If I install your pre-built firmware, it works, because the PICO-DS4 early exit is still there, but I remove it, it crashes.
If I put the early exit back in I get this on a PICO-D$ board:
D (1132) boot: start: 0x400816b0
E (1136) psram: ESP32PICOD4 do not support psram yet
E (1142) spiram: SPI RAM enabled but initialization failed. Bailing out.
W (2044) MicroPython: SPIRAM support enabled but SPIRAM not detected
Internal FS (SPIFFS): Mounted on partition 'internalfs' [size: 2555904; Flash address: 0x190000]
----------------
Filesystem size: 2341888 B
Used: 512 B
Free: 2341376 B
----------------
MicroPython ESP32_LoBo_v3.2.24 - 2018-09-06 on TinyPICO with ESP32 PICO D4
Type "help()" for more information.
>>>
But I get a complete hang on a WROOM32 board (with no PSRAM).... as exactly the same place.
"The first log message related to MicroPython is "D (ttt) MicroPython: Entry" (app_main() entry). Any crash before it is not in any way related to MicroPython."
It's def crashing inside or from the spiram_psram.c
![Sad :(](./images/smilies/icon_e_sad.gif)
Seon
unexpectedmaker.com