0

Simple CircuitPython Driver for Generic 64Mb PSRAM (AF4677)
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Simple CircuitPython Driver for Generic 64Mb PSRAM (AF4677)

by MarksBench on Fri Jun 11, 2021 3:51 am

Hello!

I scratched together a working MicroPython driver for the 64Mb SPI PSRAM chip from Adafruit (https://www.adafruit.com/product/4677) a little while ago and finally got some time to get it working in CircuitPython. I've tested it with v6.2, 6.3, and 7.0.0-alpha.3 on a Raspberry Pi Pico (RP2040) and while it's not fast, it did continuous read/write loops for 48 hours with no failures.

If you're interested, you can find the driver and an example program here: https://github.com/MarksBench/mb_PSRAM_64Mb_SPI_CP

Like the other memory-ish drivers I've done up so far, it's meant to be as simple as possible to use. Give it an address (0-8388607) and an 8-bit value and it will write to that location. To read, just give it the address and it will return an integer (range 0-255).

Have a good day!

MarksBench
 
Posts: 59
Joined: Tue Apr 20, 2021 5:40 pm

Re: Simple CircuitPython Driver for Generic 64Mb PSRAM (AF46

by adafruit_support_mike on Mon Jun 14, 2021 11:27 pm

Nice.. thanks for posting it!

adafruit_support_mike
 
Posts: 63059
Joined: Thu Feb 11, 2010 2:51 pm

Re: Simple CircuitPython Driver for Generic 64Mb PSRAM (AF46

by MarksBench on Wed Jun 16, 2021 3:27 am

My pleasure - I've been enjoying figuring this stuff out!

MarksBench
 
Posts: 59
Joined: Tue Apr 20, 2021 5:40 pm

Please be positive and constructive with your questions and comments.