STM32WB55 SD card over USB
Posted: Mon May 31, 2021 2:03 pm
Hi all,
I have a board with an STM32WB55 and an SD card slot. I'm trying to find a way to mount the SD card, and writing files over USB to the card.
The first thing I tried was setting and setting the correct pins for the card in mpconfigboard.h. This should make pyb.SDCard() available, which I can pass to pyb.usb_mode() to make the card available over USB. When compiling this, I get the following error:
The second thing I tried was using the following driver: https://github.com/micropython/micropyt ... /sdcard.py
Using this, the card mounts just fine in the file system, but I see no way to make this available over USB.
Are there any other options I can try?
Thanks!
I have a board with an STM32WB55 and an SD card slot. I'm trying to find a way to mount the SD card, and writing files over USB to the card.
The first thing I tried was setting
Code: Select all
#define MICROPY_HW_ENABLE_SDCARD (1)
Code: Select all
dma.c:108:30: error: 'dma_init_struct_sdio' defined but not used [-Werror=unused-const-variable=]
static const DMA_InitTypeDef dma_init_struct_sdio = {
Using this, the card mounts just fine in the file system, but I see no way to make this available over USB.
Are there any other options I can try?
Thanks!