Page 1 of 1

[TM4C123] SD card with SPI

Posted: Sat May 18, 2019 12:12 pm
by ExXec
Hey,

I want to implement SD card support, because I cannot dedicate flash for storage.

Do I implement this, by taking the functions from sdcard.c (STM32) and rewrite them with SPI or is there a simpler way?

Re: [TM4C123] SD card with SPI

Posted: Sat May 18, 2019 12:35 pm
by jimmo
Sorry I don't have any specific advice but you might find the discussion on this PR useful -- https://github.com/micropython/micropython/pull/4772

Re: [TM4C123] SD card with SPI

Posted: Sat May 18, 2019 12:47 pm
by ExXec
So, they're saying, that micropython has the capability to use software sdcard support over the SPI module.

That prohibits the use of a boot.py then?

Re: [TM4C123] SD card with SPI

Posted: Sat May 18, 2019 4:22 pm
by Roberthh
If you look at the ESP8266 and ESP32 ports. They have the SDcard support in a driver called sdcard.py, which is a block device driver. But still the file system software (VFS, Fat) is in the firmware.