Closed
Description
According the the guide, https://learn.adafruit.com/spi-fram-2mbit-4mbit
this library should be used with the new 2Mbit and 4Mbit FRAM breakouts, but it is not working.
I have a 4Mbit FRAM breakout connected to a feather_m4_express and tried as below.
Note that len(fram) only shows 8192 -- should be 512K
Writing to the board does not appear to work.
Press any key to enter the REPL. Use CTRL-D to reload.
Adafruit CircuitPython 6.0.0-alpha.3-180-g7611e71a1 on 2020-09-12; Adafruit Feather M4 Express with samd51j19
>>>
>>> import board
>>> import busio
>>> import digitalio
>>> import adafruit_fram
>>>
>>> ## Create a FRAM object.
>>> spi = busio.SPI(board.SCK, board.MOSI, board.MISO)
>>> cs = digitalio.DigitalInOut(board.D5)
>>> fram = adafruit_fram.FRAM_SPI(spi, cs)
>>> fram[0]
bytearray(b'\xff')
>>> len(fram)
8192
>>> fram[0]=1
>>> fram[0]
bytearray(b'\xff')
>>>
edited to add -- it works fine with an 8Kbyte FRAM
looking at the code -- it does not appear to be able to handle the larger parts
https://github.com/adafruit/Adafruit_CircuitPython_FRAM/blob/master/adafruit_fram.py#L55
Metadata
Metadata
Assignees
Labels
No labels