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

SPI communication method of nrf 52832 and SD card.

Hello!

I am a beginner.

I am trying to communicate with the SD card with SPI using nrf 52832.(BLE Nano v2)

I am using fatfs of nRF5_SDK_15.0.0_a53641a. I am writing a program with keil.

I refer to sdcard.c to initialize the SD card, but I do not know how to use it and I not initialize it.

How do you describe it in the main program?

Thank you!

Parents Reply
  • HI,

    thank you for your reply!

    nRF5_SDK_15.0.0_a53641a/examples/peripheral/fatfs  is referred to.

    On the first row

    #define SDC_SCK_PIN     2   ///< SDC serial clock (SCK) pin.
    #define SDC_MOSI_PIN    29  ///< SDC serial data in (DI) pin.
    #define SDC_MISO_PIN    30  ///< SDC serial data out (DO) pin.
    #define SDC_CS_PIN      28  ///< SDC chip select (CS) pin.

    If you change the pin number and use it, a file is created and added to a text file.

    #define TEST_STRING "SD card example."

    Will characters weitten as defined in are written ?

    Are there other parts to change?

Children
Related