tvlad1234 / pico-rv32ima

Running Linux on RP2040 with the help of RISC-V emulation
Other
235 stars 18 forks source link

spi ram #2

Closed fanoush closed 1 year ago

fanoush commented 1 year ago

You can get cheap 8MB 3.3V SPI RAM from https://www.aliexpress.com/item/4000164056594.html Or even multiple of them would work with shared SPI and separate cs pins per each 8MB adress range.

Just gooogle "ly68l6400 datasheet" for details, it mostly works just as SPI flash. Definitely easier than using SD.

tvlad1234 commented 1 year ago

Thank you for your suggestion! I have considered using SPI RAM from the beginning, but I didn't have any on hand. I have just ordered some from the link you posted and I'll try using them as soon as they arrive. In case you or anyone else manages to get this project working with SPI RAM before I can get my hands on the chips, please submit a PR and I'll be more than happy to accept it into the repository.

tvlad1234 commented 1 year ago

The SPI RAM chips have arrived today. I have successfully implemented them into the project. Linux now boots to the shell in about 5 minutes and it's (relatively speaking) usable. Once again, thank you so much for sending me the link to these RAM chips.

fanoush commented 1 year ago

Oh, that was fast! You're welcome, it is great that it is working for you :-) This cheap part needs to be more widely known, it is very simple to add to any project where more RAM is needed.

flyboy-byte commented 1 year ago

hello, im am currently purchasing parts to build this project, i ran across this ram chip. https://protosupplies.com/product/psram/ , they offer 4 different ram including the one specified in the readme of this project. but it turns out they are all essentially the same chip according to one source i found. so if u wanted to purchase from this site instead, im sure you would not have to wait months on parts from china. also protosupplies seems like a great website.

fanoush commented 1 year ago

if u wanted to purchase from this site instead, im sure you would not have to wait months on parts from china. also protosupplies seems like a great website.

Well, it depends. Good tip but not everybody lives in US :-) I just tried to put it to basket and at checkout I see they only offer US shipping (for flat rate of $12.95!)

Also to Europe it is often faster to get stuff from China than from US. You can see I suggested this chip on Mar 22 and tvlad1243 got it on Apr 7 so it is 13 days, not months. I was waiting for some sparkfun stuff much longer.