E (523) spiram: SPI RAM enabled but initialization failed. Bailing out.

All ESP32 boards running MicroPython.
Target audience: MicroPython users with an ESP32 board.
User avatar
dps
Posts: 51
Joined: Mon Oct 28, 2019 9:37 pm

Re: E (523) spiram: SPI RAM enabled but initialization failed. Bailing out.

Post by dps » Fri Nov 22, 2019 9:11 pm

Nice! thank you for helping to clarify this. being that this breakout board has this extra SPIRAM device, this is just added to the already present :

• 448 KB of ROM for booting and core functions.
• 520 KB of on-chip SRAM for data and instructions.
• 8 KB of SRAM in RTC, which is called RTC FAST Memory and can be used for data storage; it is accessed
by the main CPU during RTC Boot from the Deep-sleep mode.
• 8 KB of SRAM in RTC, which is called RTC SLOW Memory and can be accessed by the co-processor during
the Deep-sleep mode

in the WROOM-32 module?

or are SRAM and SPIRAM two different things?

User avatar
dps
Posts: 51
Joined: Mon Oct 28, 2019 9:37 pm

Re: E (523) spiram: SPI RAM enabled but initialization failed. Bailing out.

Post by dps » Fri Nov 22, 2019 9:16 pm

i think i may have found my answer, on another post here asking that same question:

"The ESP32 has a few hundred KiB of internal RAM, residing on the same die as the rest of the ESP32. For some purposes, this is insufficient, and therefore the ESP32 incorporates the ability to also use up to 4MiB of external SPI RAM memory as memory. The external memory is incorporated in the memory map and is, within certain restrictions, usable in the same way internal data RAM is.

The ESP32 supports SPI (P)SRAM connected in parallel with the SPI flash chip."

so when you add external SPIRAM, it gets incorporated into the already present memory map, and it gets used just the same as the already present memory?

User avatar
dps
Posts: 51
Joined: Mon Oct 28, 2019 9:37 pm

Re: E (523) spiram: SPI RAM enabled but initialization failed. Bailing out.

Post by dps » Fri Nov 22, 2019 9:21 pm

To wrap up my initial question about the warning message that pops up in the repl, when im connected to my ESP32-WROOM module:

the reason that this message was shown, was because i used the firmware for the version of ESP32 that has SPIRAM (which is external?), but the version of the board that i actually have is the WROOM module, which only has internal memory (SRAM), but it can be extended with external SPIRAM?

User avatar
Roberthh
Posts: 3667
Joined: Sat May 09, 2015 4:13 pm
Location: Rhineland, Europe

Re: E (523) spiram: SPI RAM enabled but initialization failed. Bailing out.

Post by Roberthh » Fri Nov 22, 2019 9:38 pm

The SPIRAM version should also work on devices without SPIRAM, but is slower than the firmware made for board without SPIRAM. Extending a WROOM module with PSRAM is possible, if you pull of the shield, have good eyes and a steady hand.
see this link: https://loboris.eu/forum/showthread.php?tid=117
But it might not be worth the effort, given the price for breakouts with PSRAM.

User avatar
dps
Posts: 51
Joined: Mon Oct 28, 2019 9:37 pm

Re: E (523) spiram: SPI RAM enabled but initialization failed. Bailing out.

Post by dps » Fri Nov 22, 2019 10:44 pm

right on, thank you.
so it'll still work on devices that dont have SPIRAM, but it will throw that warning? or is that warning being caused by something else?

User avatar
Roberthh
Posts: 3667
Joined: Sat May 09, 2015 4:13 pm
Location: Rhineland, Europe

Re: E (523) spiram: SPI RAM enabled but initialization failed. Bailing out.

Post by Roberthh » Sat Nov 23, 2019 7:27 am

It will work, but it#s better to use the firmware version matching the board.

User avatar
dps
Posts: 51
Joined: Mon Oct 28, 2019 9:37 pm

Re: E (523) spiram: SPI RAM enabled but initialization failed. Bailing out.

Post by dps » Tue Nov 26, 2019 11:20 pm

Thanks!

Post Reply