SPI RAM - Support for other chips

caseymdk
Posts: 15
Joined: Wed Feb 07, 2018 2:35 am

SPI RAM - Support for other chips

Postby caseymdk » Mon Jun 04, 2018 6:09 am

Hi all,

I love the fact that the ESP32 supports SPI RAM. I understand that there are limitations to putting a lot of RAM on-die, so I appreciate the option of being able to implement external RAM.

However, I was surprised to see that the only chip that's supported is the PSRAM chip manufactured by Espressif. There are a lot of SPI RAM chips available on Digikey that only use a slightly different instruction set. Is it difficult to modify the code to support these chips?

I looked at the "PSRAM.c" code, but it's a bit over my head, and I suspect there may be some hardware functionality that's going on that I can't see...(the file looks too small to implement all functionality). So I'm wondering, what's the limiting factor to supporting other types of external SPI SRAM chips?

Thanks!

Casey

User avatar
loboris
Posts: 514
Joined: Wed Dec 21, 2016 7:40 pm

Re: SPI RAM - Support for other chips

Postby loboris » Mon Jun 04, 2018 6:42 am

caseymdk wrote:Hi all,

I love the fact that the ESP32 supports SPI RAM. I understand that there are limitations to putting a lot of RAM on-die, so I appreciate the option of being able to implement external RAM.

However, I was surprised to see that the only chip that's supported is the PSRAM chip manufactured by Espressif. There are a lot of SPI RAM chips available on Digikey that only use a slightly different instruction set. Is it difficult to modify the code to support these chips?

I looked at the "PSRAM.c" code, but it's a bit over my head, and I suspect there may be some hardware functionality that's going on that I can't see...(the file looks too small to implement all functionality). So I'm wondering, what's the limiting factor to supporting other types of external SPI SRAM chips?

Thanks!

Casey
I couldn't find any SPI RAM chip available on DigiKey, could you give a link to any.

Except Espressif SPIRAM, Lyontek's psRAM chips also works with ESP32.
I have also tested IPUS IPS6404 SPIRAM (the 3.3V version available at Electrodragon and it works without issues.

WiFive
Posts: 3529
Joined: Tue Dec 01, 2015 7:35 am

Re: SPI RAM - Support for other chips

Postby WiFive » Mon Jun 04, 2018 9:47 am


User avatar
loboris
Posts: 514
Joined: Wed Dec 21, 2016 7:40 pm

Re: SPI RAM - Support for other chips

Postby loboris » Mon Jun 04, 2018 12:56 pm

WiFive wrote:https://www.digikey.com/en/product-high ... am-devices?

But $2/mbit vs $0.10/mbit
And max size 128 KB + max clock 20 MHz, quite unusable as ESP32 external RAM.

caseymdk
Posts: 15
Joined: Wed Feb 07, 2018 2:35 am

Re: SPI RAM - Support for other chips

Postby caseymdk » Mon Jun 04, 2018 7:58 pm

loboris wrote: And max size 128 KB + max clock 20 MHz, quite unusable as ESP32 external RAM.
Yes, but even more unusable is the lack of the ESP-PSRAM chip from distributors...I would much rather use a different, 128KB chip than nothing.

Is the 20MHz a deal-breaker? Looks like the ESP32 runs external RAM at 40MHz by default...could this be decreased to 20MHz?

WiFive
Posts: 3529
Joined: Tue Dec 01, 2015 7:35 am

Re: SPI RAM - Support for other chips

Postby WiFive » Tue Jun 05, 2018 8:12 am

caseymdk wrote: Yes, but even more unusable is the lack of the ESP-PSRAM chip from distributors.
Did you try to buy direct from espressif?

caseymdk
Posts: 15
Joined: Wed Feb 07, 2018 2:35 am

Re: SPI RAM - Support for other chips

Postby caseymdk » Wed Jun 20, 2018 7:11 pm

I have not, I'm not at a point where I can buy large volumes, which I assume I'd need to in order to get it direct.

WiFive
Posts: 3529
Joined: Tue Dec 01, 2015 7:35 am

Re: SPI RAM - Support for other chips

Postby WiFive » Wed Jun 20, 2018 7:44 pm

Usually the first 2 sample orders have no volume requirements. Especially if the part is not available through distribution I think they will be more accommodating.

mrbhou
Posts: 1
Joined: Mon Jul 23, 2018 3:21 pm

Re: SPI RAM - Support for other chips

Postby mrbhou » Wed Nov 07, 2018 3:15 am

loboris wrote:
Except Espressif SPIRAM, Lyontek's psRAM chips also works with ESP32.
I have also tested IPUS IPS6404 SPIRAM (the 3.3V version available at Electrodragon and it works without issues.
Hi loboris,
I also add more Rams for ESP32 Wroom 32D by using IPUS IPS6404, what you recommend.
But it doesn't work.
Do you have to modify anything in code ?
Of cousre, I connect it following reference design of ESp32 Wrover, which has 4Mb Psram External.
Can you help me?
Thanks.

User avatar
loboris
Posts: 514
Joined: Wed Dec 21, 2016 7:40 pm

Re: SPI RAM - Support for other chips

Postby loboris » Wed Nov 07, 2018 9:25 am

mrbhou wrote:Hi loboris,
I also add more Rams for ESP32 Wroom 32D by using IPUS IPS6404, what you recommend.
But it doesn't work.
Do you have to modify anything in code ?
Of cousre, I connect it following reference design of ESp32 Wrover, which has 4Mb Psram External.
Can you help me?
Thanks.
You just have to connect SPI-RAM chip to the right pins and use one 10K pull-up on CS pin.
You can check my post here.

Who is online

Users browsing this forum: No registered users and 78 guests