Hi,
I am able to write a string to a text file into an external SD card and read from it using below .overlay configuration.
&spi2 {
status = "okay";
compatible = "nordic,nrf-spim";
sck-pin = < 8 >;
miso-pin = < 10 >;
mosi-pin = < 9 >;
cs-gpios = < &gpio0 11 GPIO_ACTIVE_LOW >;
sdhc0: sdhc@0 {
compatible = "zephyr,mmc-spi-slot";
reg = < 0x0 >;
status = "okay";
label = "SDHC0";
spi-max-frequency = < 0x16e3600 >;
};
};
Further, I read that by enabling the SPIM, I can read/write to the SD card with faster speed. However, I am not sure how to do enable and verify it. So, please let me know about the enabling and verifying the same.
Thanks