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

PCA10056 with SD card module

Hi. I'm using the NRF-52 DK (PCA10056) with an SD card module and I'm trying to upload the FatFS example code for SDK 15. I'm using a kingston 8GB SD card and I'm unable to get any result. The same is working with SDK12. How do I sort this issue. 

Parents
  • Hi,

     

    Vishal Aditya said:
    2. Can't understand can you please explain?

    I am sorry, I was assuming you were using the USB MSC example in the SDK with a SD-card. For this, there are some erratas for the USBD that needs to be applied.

    Vishal Aditya said:
    Consider, we have check these PINS more than 10 times: nRF5_SDK_15.0.0_a53641a\examples\peripheral\fatfs

    These pins are by default used (located in your pca10056.h):

    #define ARDUINO_13_PIN NRF_GPIO_PIN_MAP(1, 15) // Digital pin 13
    #define ARDUINO_12_PIN NRF_GPIO_PIN_MAP(1, 14) // Digital pin 12
    #define ARDUINO_11_PIN NRF_GPIO_PIN_MAP(1, 13) // Digital pin 11
    #define ARDUINO_10_PIN NRF_GPIO_PIN_MAP(1, 12) // Digital pin 10

     

    Note that these are on PORT1, not PORT0. It maps to P1.12 to P1.15, which are located in the top left corner of the nRF52840-DK.

    If you are using these pins, could you verify with a logic analyzer or oscilloscope that there's SPI data going over these GPIOs?

     

    Best regards,

    Håkon

Reply
  • Hi,

     

    Vishal Aditya said:
    2. Can't understand can you please explain?

    I am sorry, I was assuming you were using the USB MSC example in the SDK with a SD-card. For this, there are some erratas for the USBD that needs to be applied.

    Vishal Aditya said:
    Consider, we have check these PINS more than 10 times: nRF5_SDK_15.0.0_a53641a\examples\peripheral\fatfs

    These pins are by default used (located in your pca10056.h):

    #define ARDUINO_13_PIN NRF_GPIO_PIN_MAP(1, 15) // Digital pin 13
    #define ARDUINO_12_PIN NRF_GPIO_PIN_MAP(1, 14) // Digital pin 12
    #define ARDUINO_11_PIN NRF_GPIO_PIN_MAP(1, 13) // Digital pin 11
    #define ARDUINO_10_PIN NRF_GPIO_PIN_MAP(1, 12) // Digital pin 10

     

    Note that these are on PORT1, not PORT0. It maps to P1.12 to P1.15, which are located in the top left corner of the nRF52840-DK.

    If you are using these pins, could you verify with a logic analyzer or oscilloscope that there's SPI data going over these GPIOs?

     

    Best regards,

    Håkon

Children
No Data
Related