[SOLVED] problem when mounting/access external spi flash

General discussions and questions abound development of code with MicroPython that is not hardware specific.
Target audience: MicroPython Users.
Post Reply
ajie_dirgantara
Posts: 81
Joined: Fri Sep 02, 2016 9:26 am

[SOLVED] problem when mounting/access external spi flash

Post by ajie_dirgantara » Sun Jul 09, 2017 5:55 pm

UPDATE :

Apparently there are some minor modification mistake, in my chip the SPI command 0xFF is not supported, so anybody who got the same problem could look back at the datasheet. the code from micropython-epaper is work great.

Hi,

I am using flash.py from here and make a little modification :

https://github.com/peterhinch/micropython-epaper

then mounting with pyb.mount(device, '/ext', mkfs=True). everything went fine. the device is mounted, and there are two devices listed. 'flash' and 'ext'.

but I can't access it using os.chdir('/ext'), with exception :

Traceback (most recent call last):
File "<stdin>", line 1, in <module>
OSError: [Errno 19] ENODEV

this also happen when I try to mount but without mkfs=True.

any ideas why is this happening?

Post Reply