I am attempting to mount a set of three S25FL128L FLASH devices on a NUCLEO-F767ZI board using the library micropython_eeprom. All seems to go well until I attempt to mount the devices, and then receive an error code 19, "No such device". Code as follows:
Code: Select all
>>> import os
>>> from machine import SPI, Pin
>>> from flash_spi import FLASH
>>> cspins = (Pin(Pin.cpu.A4, Pin.OUT, value=1), Pin(Pin.cpu.A15, Pin.OUT, value=1), Pin(Pin.cpu.C7, Pin.OUT, value=1))
>>> flash = FLASH(SPI(3, baudrate=20_000_000), cspins)
3 chips detected. Total flash size 48MiB.
>>> os.VfsFat.mkfs(flash)
>>> os.mount(flash,'/fl_ext')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
OSError: [Errno 19] ENODEV
Code: Select all
>>> flash[2000] = 42
>>> print(flash[2000])
42
>>> flash[20000000] = 21
>>> print(flash[20000000])
21
>>> flash[40000000] = 64
>>> print(flash[40000000])
64