Hi Nordic,
when I run the samples/subsys/fs/fat_fs, the example of FAT file system usage with SDHC media, get error as below:
I have no idea how to fix it.
the SD I am using is TOSHIBA C04G, the board I am using is nrf5340dk, and nrf connected SDK 1.7.0 used.
prj.conf is:
CONFIG_DISK_ACCESS=y CONFIG_LOG=y CONFIG_FILE_SYSTEM=y CONFIG_FAT_FILESYSTEM_ELM=y CONFIG_PRINTK=y CONFIG_MAIN_STACK_SIZE=2048 CONFIG_SPI=y CONFIG_DISK_DRIVER_SDMMC=y
and add the nrf5340dk_nrf5340_cpuapp.overlay file as below:
&spi2 { status = "okay"; cs-gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>; mosi-pin = <6>; sck-pin = <5>; miso-pin = <4>; sdhc0: sdhc@0 { compatible = "zephyr,mmc-spi-slot"; reg = <0>; status = "okay"; label = "SDHC0"; spi-max-frequency = <24000000>; }; };