How to use spi_bitbang to drive SD card

2023-01-10 Thread prelude
I use spi_bitbang to drive the SD card on the k210 chip development board, 
referring to the content in the sam_mmcsd.c file,
The following two configuration items are opened: CONFIG_SPI_BITBANG and 
CONFIG_MMCSD_SPI,After compiling, programming and starting, 
you can see /dev/mmcsd0, but when you insert the sd card and execute "mount -t 
vfat /dev/mmcsd0 /mnt" to mount the sd card, 
the following error is reported "nsh : mount: mount failed: Function not 
implemented".I want to ask my friends, is there a solution to this problem?



Re: How to use spi_bitbang to drive SD card

2023-01-10 Thread Alan C. Assis
Hi prelude,

Please enable the debug (ERR, WARN e INFO) for MMC/SDCard:

[*]   Memory Card Driver Debug Features
[*] Memory Card Driver Error Output
[*] Memory Card Driver Warnings Output
[*] Memory Card Driver Informational Output

It could give us more details about the issue.

BR,

Alan

On 1/10/23, prelude  wrote:
> I use spi_bitbang to drive the SD card on the k210 chip development board,
> referring to the content in the sam_mmcsd.c file,
> The following two configuration items are opened: CONFIG_SPI_BITBANG and
> CONFIG_MMCSD_SPI,After compiling, programming and starting,
> you can see /dev/mmcsd0, but when you insert the sd card and execute "mount
> -t vfat /dev/mmcsd0 /mnt" to mount the sd card,
> the following error is reported "nsh : mount: mount failed: Function not
> implemented".I want to ask my friends, is there a solution to this problem?
>
>