Hello.
I have a custom board featuring nRF5340. I placed a microSD card reader in my board connected to SPI. I followed the fatfs zephyr example, but I'm struggling in mounting the disk.
I can correctly see the block count, sector size and capacity of the microSD, but as soon as I try to run fs_mount(&mp), the board resets.
When debugging, I saw that the board resets as it tries to run the function sdhc_spi_send_cmd
I don't know where the problem can be, since as I said I can correctly see the capacity of the card (I'm using a Premium microSDHC 32gb card by Verbatim )
I already tried to format the card both with Windows10 and the program SDCardFormatter, but nothing changed.
My devicetree for the spi/sd device is
And my connector is the following