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

Changing SD card configuration pins doesn't work on nrf52832

Hi, I am a beginner and trying to understand the SD card example for nrf52 DK. When I change the pins from the given configuration

#define SDC_CS_PIN ARDUINO_10_PIN
#define SDC_MOSI_PIN ARDUINO_11_PIN
#define SDC_SCK_PIN ARDUINO_13_PIN
#define SDC_MISO_PIN ARDUINO_12_PIN

to the following:

#define SDC_CS_PIN 19 #define SDC_MOSI_PIN 17 #define SDC_SCK_PIN 10 #define SDC_MISO_PIN 9

The example doesn't work and get stuck in for loop of disk_initialize(0) in fatfs_example() function. I have also tried to update the pin values in pca10040.h but it still doesn't work. Please help. Thanks!

Parents Reply
  • Thank you for your reply. Actually, I am trying to program an external nrf52832 chip using the nrf52 DK. There is no circuitry (LED and resistors) attached to pin 17 and pin 19 in the external chip rather they are directly connected to the SD card port so there is no concern of cutting the solder bridge. I have written "CONFIG_NFCT_PINS_AS_GPIOS" in Options for target box to configure NFC pins as GPIOs. FYI, pins PO.09 and PO.10 are also directly connected to SD card ports with no additional circuitry. But the SD card example doesn't seem to work on the external chip. Please help. Thanks!

Children
No Data
Related