You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
i am using M5 stack core 2 board and using its built in SD card function to save data on it ,there is continuous data to save data but at some point it stop working and giving error of the line os.mount(sd, '/sd') then the card need to be reinserted after stoping the code then its start to work my SD card initialization and make directory as follow # SD card initialization as follow
try:
os.mkdir("/sd")
except OSError as err:
if err.args[0] != 17:
raise
i did not save the function in boot.py or main.py just running at in the prompt for testing .Can anyone help me to get rid of this problem i would aprreciate your Feedback.Thanks
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
i am using M5 stack core 2 board and using its built in SD card function to save data on it ,there is continuous data to save data but at some point it stop working and giving error of the line os.mount(sd, '/sd') then the card need to be reinserted after stoping the code then its start to work my SD card initialization and make directory as follow # SD card initialization as follow
sd = machine.SDCard(slot=2, sck=machine.Pin(18), mosi=machine.Pin(23), miso=machine.Pin(38), cs=machine.Pin(4))
os.mount(sd, '/sd')
Create SD directory
try:
os.mkdir("/sd")
except OSError as err:
if err.args[0] != 17:
raise
i did not save the function in boot.py or main.py just running at in the prompt for testing .Can anyone help me to get rid of this problem i would aprreciate your Feedback.Thanks
Beta Was this translation helpful? Give feedback.
All reactions