STM32F769DISC SD card usage

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
emile.cronje
Posts: 6
Joined: Mon Apr 04, 2022 8:21 am

STM32F769DISC SD card usage

Post by emile.cronje » Mon Apr 04, 2022 8:33 am

Good day

Which is the correct way to use the SD Card on STM32F769DISC?

I have tried machine.SDCard, but no joy.

Regards

tepalia02
Posts: 99
Joined: Mon Mar 21, 2022 5:13 am

Re: STM32F769DISC SD card usage

Post by tepalia02 » Tue Apr 26, 2022 10:41 am

Hi, have you seen this video series? These are about SD card interfacing with STM32F discovery board.
https://www.youtube.com/watch?v=kRhF44v2ezM
https://www.youtube.com/watch?v=ZdvzYE7c26k
https://www.youtube.com/watch?v=FbYj_vw02WQ

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

Re: STM32F769DISC SD card usage

Post by Roberthh » Tue Apr 26, 2022 1:27 pm

@tepalia02 This is a board about MicroPython and ways to use it. Erratic comments and hints for other platforms and tools do not help art all. Please focus on the topic of this forum,

emile.cronje
Posts: 6
Joined: Mon Apr 04, 2022 8:21 am

Re: STM32F769DISC SD card usage

Post by emile.cronje » Fri Jun 17, 2022 11:57 am

Hi @Roberthh

Can u point me in a direction how to use the SD card on the STM32F769, please?

Regards

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

Re: STM32F769DISC SD card usage

Post by Roberthh » Fri Jun 17, 2022 1:25 pm

Which board do you use? If the board has a SDCard socket, look in the schematics for the connections. If the port does not have the machine.SDCard module included, you can try using the Python SPI based SD Card driver at https://github.com/micropython/micropyt ... ers/sdcard. That one works well. It requires however that FAT file system is built into the firmware. look out in your port for vfs.VfsFat.

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

Re: STM32F769DISC SD card usage

Post by jimmo » Mon Jun 20, 2022 3:41 am

emile.cronje wrote:
Mon Apr 04, 2022 8:33 am
Which is the correct way to use the SD Card on STM32F769DISC?
The 769 discovery board should work exactly the same as the Pyboard -- https://docs.micropython.org/en/latest/ ... nd-sd-card -- and if present, the SD card will be mounted automatically at boot.

If you need to work directly with the SDCard block device, then use pyb.SDCard (we haven't updated the STM32 port to use machine.SDCard yet).

emile.cronje
Posts: 6
Joined: Mon Apr 04, 2022 8:21 am

Re: STM32F769DISC SD card usage

Post by emile.cronje » Tue Jun 21, 2022 12:23 pm

Thank you @jimmo, works now

Post Reply