Problem with SD Card in Pysense



  • I've read all the posts I could fine - they don't seem to be up to date.

    >>> import os
    >>> from machine import SD
    >>> sd=SD()
    >>> os.mount(sd,'/sd')
    Traceback (most recent call last):
    File "<stdin>", line 1, in <module>
    OSError: the requested operation failed
    >>> os.mkfs('/sd')
    Traceback (most recent call last):
    File "<stdin>", line 1, in <module>
    OSError: error while attempting to format /sd
    >>>

    I'm using Samsung 32GB EVO cards. I tried both as-shipped, and gparted/formated FAT32

    I have the latest firmware: release='1.7.0.b1'

    No joy. Can someone point me in the right direction?



  • @ghelbig The latest firmware release is 1.18.0.r1. Try to update first. Then try to reset the device after the card was inserted. That help sometimes. If not, try a different, maybe smaller card.


Log in to reply
 

Pycom on Twitter