Voting resources, early voting, and poll worker information - VOTE. ... Adafruit is open and shipping.
0

FRAM SPI device not found
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

FRAM SPI device not found

by ArdeaSolutionsBelgium on Wed Sep 23, 2020 7:47 am

Hi,

I'm using an "Adafruit SPI Non-Volatile FRAM Breakout - 4 Mbit / 512 KBytes - MB85RS4MT PID: 4719" combined with an "Adafruit Feather M4 Express - Featuring ATSAMD51 - ATSAMD51 Cortex M4 PID: 3857"
I'm using the standard provided source (see below) with lib version = "1.3.2"

i get the following error : "OSError: FRAM SPI device not found."

????

some suggestions? and yes i connected the wires like shown in the example ;)

wkr,
Stefan

"## Simple Example For CircuitPython/Python SPI FRAM Library

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)

## Write a single-byte value to register address '0'

fram[0] = 1

## Read that byte to ensure a proper write.
## Note: 'read()' returns a bytearray

print(fram[0])

## Or write a sequential value, then read the values back.
## Note: 'read()' returns a bytearray. It also allocates
## a buffer the size of 'length', which may cause
## problems on memory-constrained platforms.

# values = list(range(100)) # or bytearray or tuple
# fram[0] = values
# print(fram[0:99])

ArdeaSolutionsBelgium
 
Posts: 11
Joined: Mon Aug 03, 2020 12:56 pm

Re: FRAM SPI device not found

by jerryn on Wed Sep 23, 2020 8:58 am

The error you are reporting sounds like a wiring issue. Even the old release should "see" the breakout.
Double check the pins -- make sure MISO/MOSI are not swapped.

Just a heads up -- For the 4Mbit breakout, you will need to get the version 1.3.3 release of the adafruit_fram library -- In todays (9/23/2020) bundle.

To get to the addresses above 8K you will need to set the max_size to 524288 ((or hex 0x80000) in the line:
Code: Select all | TOGGLE FULL SIZE
fram = adafruit_fram.FRAM_SPI(spi, cs, max_size = 0x80000)




I don't represent Adafruit. Just trying to help.

jerryn
 
Posts: 1341
Joined: Sat Sep 14, 2013 9:05 am

Please be positive and constructive with your questions and comments.