[TM4C123] SD card with SPI

Discussion and questions about boards that can run MicroPython but don't have a dedicated forum.
Target audience: Everyone interested in running MicroPython on other hardware.
Post Reply
ExXec
Posts: 83
Joined: Sat Oct 20, 2018 4:02 pm

[TM4C123] SD card with SPI

Post by ExXec » Sat May 18, 2019 12:12 pm

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?

User avatar
jimmo
Posts: 2754
Joined: Tue Aug 08, 2017 1:57 am
Location: Sydney, Australia
Contact:

Re: [TM4C123] SD card with SPI

Post by jimmo » Sat May 18, 2019 12:35 pm

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

ExXec
Posts: 83
Joined: Sat Oct 20, 2018 4:02 pm

Re: [TM4C123] SD card with SPI

Post by ExXec » Sat May 18, 2019 12:47 pm

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?

User avatar
Roberthh
Posts: 3667
Joined: Sat May 09, 2015 4:13 pm
Location: Rhineland, Europe

Re: [TM4C123] SD card with SPI

Post by Roberthh » Sat May 18, 2019 4:22 pm

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.

Post Reply