I am posting these here, rather then in the 'Other Products from Adafruit' section.
Hardware:
- Adafruit Feather STM32F405 Express
- Adafruit I2C Non-Volatile FRAM Breakout - 256Kbit / 32KByte
Software:
- Adafruit CircuitPython 6.1.0
- 'adafruit_bus_device' and 'adafruit_fram.mpy' from the CircuitPython Libraries 'adafruit-circuitpython-bundle-6.x-mpy-20210218.zip'
Problem:
The Express Board and I2C FRAM Breakout Board are connected via. Qwiic/STEMMA-QT. The physical I2C connection is ok, a 'i2c.scan()' does find the Breakout Board at '0x50'.
When trying the 'Full Example Code' from 'https://learn.adafruit.com/adafruit-i2c-fram-breakout/python-circuitpython' these does not run and stops with a 'OSError: [Errno 5] Input/output error'.
When trying it via the 'REPL' at 'fram = adafruit_fram.FRAM_I2C(i2c)' the same 'OSError: [Errno 5] Input/output error' happens.
Error message for the 'Full Example Code':
..
code.py output:
Traceback (most recent call last):
File "code.py", line 12, in <module>
File "adafruit_fram.py", line 217, in __init__
File "adafruit_fram.py", line 217, in __init__
File "adafruit_bus_device/i2c_device.py", line 125, in write_then_readinto
OSError: [Errno 5] Input/output error
Code done running.
..
Error message for the 'REPL':
..
Adafruit CircuitPython 6.1.0 on 2021-01-21; Adafruit Feather STM32F405 Express with STM32F405RG
>>> import board
>>> import busio
>>> import digitalio
>>> import adafruit_fram
>>> i2c = busio.I2C(board.SCL, board.SDA)
>>> fram = adafruit_fram.FRAM_I2C(i2c)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "adafruit_fram.py", line 217, in __init__
File "adafruit_fram.py", line 217, in __init__
File "adafruit_bus_device/i2c_device.py", line 125, in write_then_readinto
OSError: [Errno 5] Input/output error
>>>
..
What am i doing wrong?
How can I use the I2C FRAM Breakout Board with my Feather STM32F405 Express Board under CircuitPython?
Thank you