Zephyr fatfs example fails with SD card

Hi,

I'm trying to reproduce the fatfs example on a nrf52840 DK and Sandisk micro SD card that's plugged into a Sparkfun Transflash breakout board. I can't seem to mount the micro SD card in the sample example (I've confirmed that the micro SD card is formatted correctly). I've tried this on NCS v2.0.0 and v2.1.0

Here is the overlay I'm using:

```

&spi1 {
    status = "okay";

    cs-gpios = <&gpio1 17 GPIO_ACTIVE_HIGH>;

    sdhc0: sdhc@0 {
        compatible = "zephyr,mmc-spi-slot";
        reg = <0>;
        status = "okay";
        label = "SDHC0";
        spi-max-frequency = <1000000>;
    };
};
```
and here is the prj.conf:
````
CONFIG_DISK_DRIVER_SDMMC=y
CONFIG_SPI=y
CONFIG_DISK_ACCESS=y
CONFIG_LOG=y
CONFIG_FILE_SYSTEM=y
CONFIG_FAT_FILESYSTEM_ELM=y
CONFIG_PRINTK=y
CONFIG_MAIN_STACK_SIZE=2048
```
 

Can you advise?

Parents Reply Children
Related