Arduino Due and SD Card

AT91SAM9 Evaluation Boards

Moderator: nferre

memel182
Posts: 4
Joined: Mon Jun 02, 2014 10:40 pm

Arduino Due and SD Card

Mon Jun 02, 2014 10:51 pm

Hello everyone,

I am pretty new to ARM dev and facing the following issue.

To start, I am using an Arduino Due, Ethernet Shield (with SD Slot), Atmel Studio 6.2, ASF and JLink debugger.

I am trying to write a simple file on the SD card. But when debugging, the following line (in sd_mmc.c file) return false value :

Code: Select all

ioport_get_pin_level(sd_mmc_cards[slot].cd_gpio)
			!= SD_MMC_0_CD_DETECT_VALUE
I configured (in conf_sd_mmc.h) :

Code: Select all

#    define SD_MMC_0_CD_GPIO            (PIO_PA24_IDX)
But I don't really know if the ethernet shield has a CardDetect (CD) pin... I quite lost...

What did I miss?

Thank you

Return to “Evaluation and Development Boards”

Who is online

Users browsing this forum: No registered users and 1 guest