← index #5163Issue #2855
Related · medium · value 0.817
QUERY · ISSUE

[nRF port] Unable to Activate the FAT File System

openby sebi5361opened 2019-09-30updated 2019-12-06
port-nrf

I noticed that FAT file system couldn't be enabled on a nRF board as open("code.py", "wb") would fail making it impossible to create files onto the board.

Indeed, after building and flashing the firmware with the FAT file system enabled
(#define MICROPY_VFS (1) in mpconfigport.h and make SD=s132 MICROPY_FATFS=1 sd) the following error occurs:

>>> open("code.py", "wb")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
OSError: [Errno 1] EPERM
CANDIDATE · ISSUE

WiPy 1.0 mp v1.8.7 - SD OSError: 19

closedby federicommopened 2017-02-08updated 2017-02-11

From telnet REPL I have :

os.listdir('/sd')
Traceback ......
File .....
OSError: 19
From micropython forum kfricke give me the following answer:
"The was a change regarding the used FAT library
and filesystem mount points. " Then suggested to
file an issue to githib.
The same suggestion I have had from pycom forum.
To be able to read the SD card I have than reflashed the v1.8.6 firmware
Thank

Keyboard

j / / n
next pair
k / / p
previous pair
1 / / h
show query pane
2 / / l
show candidate pane
c
copy suggested comment
r
toggle reasoning
g i
go to index
?
show this help
esc
close overlays

press ? or esc to close

copied