The SD Card Example demonstrates the use of an SD memory card with the nRF5 chip using the SD Card library and the FatFs file system library.
The example initializes the card and performs basic operations like mounting the FAT volume, listing the files, and writing the example file.
To run the example, connect the SD card to the nRF5 DK in the following way:
SD Card pin | Arduino pin | nRF52832 DK (PCA10040) | nRF52840 DK (PCA10056) |
---|---|---|---|
1 - D3 / CS | D10 | P0.22 | P1.12 |
2 - DI / MOSI | D11 | P0.23 | P1.13 |
3 - GND | GND | GND | GND |
4 - Vcc (3,3V) | 3V3 | Vdd | Vdd |
5 - CLK | D13 | P0.25 | P1.15 |
6 - GND | GND | GND | GND |
7 - D0 / MISO | D12 | P0.24 | P1.14 |
8 - D1 | - | - | - |
9 - D2 | - | - | - |
You can find the source code and the project file of the example in the following folder: <InstallFolder>\examples\peripheral\fatfs
Test the SAADC Example application by performing the following steps:
NORDIC.txt
exists and that one line of text was appended to the file.