Page 1 of 1

external ram

Posted: Wed Oct 28, 2020 1:21 pm
by koendv
I've been wondering about ways to increase available memory without increasing price too much. Here's my proposal: an external 8mb spi ram, and a micropython module to access an this spi ram. You can buy these rams for around $1.

https://github.com/koendv/micropython-psram

Storing objects in external ram becomes interesting when the object is large. What I'm wondering about is the following: what do you think about modifying ulab so large arrays are stored in external ram? When you access the array, the array is copied to internal ram. When memory runs out and garbage collection is called, the least recently used array is written back to external memory and internal ram is freed. Or do you have another suggestion?

Re: external ram

Posted: Wed Oct 28, 2020 2:05 pm
by kwagyeman
32-bit SDRAM can be bought for like $1. However, the volume just needs to be high. SPI based SRAM is interesting, but, very slow. If you want to support it on a custom fork that is fine. However, it would be a lot of work for not much gain for us.

Re: external ram

Posted: Wed Oct 28, 2020 2:25 pm
by koendv
If I may make a suggestion: on the successor to the H7, put a footprint for a SPI RAM on the back of the pcb. An empty footprint does not cost anything.

Re: external ram

Posted: Wed Oct 28, 2020 3:01 pm
by kwagyeman
:) The successor will have HyperBus RAM. Standard. But, a new variant with more bandwidth and storage.