frame

Filesystem on ESP32 EVB not working?

Hello

I am new to Zerynth so I started with some basic tutorials(from the editor). While running the tutorials I got a problem testing the Zerynth filesystem. I have searched on google but didn't find any possible solution. When I try to mount my sd card it doesn't work. I tried different pins(that i found on the pinlayout) but this is just blind testing... The mount does not give any error but when I try to access a file or directory the program stops working. 
#works
fatfs.mount('0', {"drv": SPI0, "cs": D25, "clock": 1000000})
#still working

# create "test.txt" file
ww = os.open('0:/test.txt', 'w+')
#program exits without any error
ww.write("Zerynth allows me to easily manage files, cool.", sync = True)
Is there a problem with the SPI protocol or do I just have selected the wrong pins? Can you give me an example or link to a tutorial that works on the esp32 evb?
Tagged:

Comments

  • Hi Tobias,

    This is a known issue, and we are already working on it to fix it.
    It is related to the Filesystem lib that during the initialization (mount) phase produces the signal timing by calling SPI write() method once for each byte to be sent in the init sequence instead of a single call for all sequence.

    For other chips, this works fine, but for ESP32 devices every low-level call to SPI module produces a delay that mismatch all the timing of the init sequence and the microSD doesn't "understand" the init procedure.

    Stay tuned for new updates :)
    Matteo Cipriani
    Zerynth Support Team
Sign In or Register to comment.

ZERYNTH Community

@ 2016 Zerynth.com, all rights reserved.