This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

FAT_FS - SPI1 dead

I'm trying to access an SD card with FAT_FS, with no success. I hooked an analyser to the SPI, but it's completely dead. I'm using NCS v1.6.0.

&spi1	 {
	compatible = "nordic,nrf-spim";
	status = "okay";
	sck-pin = <7>;
	mosi-pin = <5>;
	miso-pin = <6>;

	cs-gpios =	<&gpio0  8 GPIO_ACTIVE_LOW>,
			<&gpio0  9 GPIO_ACTIVE_LOW>,
			<&gpio0 15 GPIO_ACTIVE_LOW>,
			<&gpio0 19 GPIO_ACTIVE_LOW>;

[... three other spi drivers... then the fourth, my SD card driver...]

        sdhc3: sdhc@3 {
                compatible = "zephyr,mmc-spi-slot";
                reg = <3>;
                status = "okay";
                label = "SDHC0";
                spi-max-frequency = <24000000>;
        };
};

Is there something I forgot, since I can't see any traffic on SPI1?

If the device tree looks correct for FAT_FS, what else could it be?

For later reference, how do find the correct "compatible = [xxx]" in the driver source, so I can match the device tree instance with the driver/sample I want to test?

PS. I just downloaded v1.6.1 through nRF Connect, but it only downloaded the toolchain, not the SDK. When I select update SDK it doesn't even try to download (finishes instantly). When I select update toolchain, it downloads and installs (few minutes). This isn't a priority now, the FAT_FS problem is. That's why I'm still on 1.6.0. 

Parents Reply Children
No Data
Related