Simple CircuitPython Driver for Generic 64Mb PSRAM (AF4677)

CircuitPython on hardware including Adafruit's boards, and CircuitPython libraries using Blinka on host computers.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
MarksBench
 
Posts: 69
Joined: Tue Apr 20, 2021 5:40 pm

Simple CircuitPython Driver for Generic 64Mb PSRAM (AF4677)

Post by MarksBench »

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!

User avatar
adafruit_support_mike
 
Posts: 67485
Joined: Thu Feb 11, 2010 2:51 pm

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

Post by adafruit_support_mike »

Nice.. thanks for posting it!

User avatar
MarksBench
 
Posts: 69
Joined: Tue Apr 20, 2021 5:40 pm

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

Post by MarksBench »

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

Locked
Please be positive and constructive with your questions and comments.

Return to “Adafruit CircuitPython”