SD card interfacing

Hi,

I have written SD & SDHC card routine for reading, writing and erasing data from SD card. It used the hardware SPI of nRF51822.

NOTE:

1)Define the PINs of SD card first before initialing.

2)Define MOSI, MISO and SCK pins only, define the CS pin to some other pin that is not being used( these pin are define in spi_master_config.h )

3)CS pin should be separately define in SD_Routines.c by the name #define MMCSD_PIN_SELECT 29

4)If you are facing problem in using my library then first test you SPI separately.

SD_Routines.c SD_Routines.h

Parents
  • Hi All,

    I just seen this post and it seems to be useful to me. I tried the earlier approach specified in above two library files using SPI. I interfaced NRF52 with SD card.

    In first approach, I have tried with SD card and SDHC card. In both cases initialization failed massage came. I am using library files specified by Stanislav Silnitskiy .

    I tried FATFS example to interface SD card with nrf52. It works fine . But for writing at high rate based on SAADC interrupt, I am getting some issues specified at this link

    My code with fatfs is specified at above mentioned link.

    Does any one has any idea why I am getting these issues and how Can resolve them?

Comment
  • Hi All,

    I just seen this post and it seems to be useful to me. I tried the earlier approach specified in above two library files using SPI. I interfaced NRF52 with SD card.

    In first approach, I have tried with SD card and SDHC card. In both cases initialization failed massage came. I am using library files specified by Stanislav Silnitskiy .

    I tried FATFS example to interface SD card with nrf52. It works fine . But for writing at high rate based on SAADC interrupt, I am getting some issues specified at this link

    My code with fatfs is specified at above mentioned link.

    Does any one has any idea why I am getting these issues and how Can resolve them?

Children
No Data