SAM3S-EK storage examples

Discussion around product based on ARM Cortex M3 core.

Moderators: nferre, ncollot

kshysio
Posts: 25
Joined: Thu Nov 03, 2011 11:17 am

SAM3S-EK storage examples

Mon Mar 26, 2012 4:04 pm

hello,
i'm starting my adventure with ARM - previously i've worked with AVR based microcontrollers. First goal is to run 4-bit data transfer to a SD card - and example projects from atmel won't work. (i've tried Keil examples and gnu examples). I tested this examples with 2 GB SD and 16 GB HC SanDisc cards. Console output for thus examples is something like:

Code: Select all

-- Basic HSMCI SD/MMC Example 2.0 --
-- SAM3S-EK
-- Compiled: Mar 26 2012 12:26:24 --
-I- Please connect a SD card ...
-I- SD card connection detected
-I- Cannot check if SD card is write-protected
-D- PowerON()
-D- Cmd52()
-D- Cmd0()
-D- SdMmcIdentify.SwReset fail: 3
-D- Cmd8()
-D- Cmd5()
-W- SdMmcIdentify.Cmd5: 3
-D- Cmd55()
-E- Acmd41.cmd55:3
-D- SdMmcIdentify.Acmd41: 3, try MMC
-D- Cmd0()
-D- Cmd1()
-D- Cmd1()
-D- Cmd1()
-D- Cmd1()
-D- Cmd1().....
or like this:

Code: Select all

-- Basic MultiMedia Card Project 2.0 --
-- SAM3S-EK
-- Compiled: Mar 21 2012 09:52:34 --
-- Buffer@20000378,size 0x2000
-I- Cannot check if SD card is write-protected

==========================================
-D- PowerON()
-D- Cmd52()
-D- Cmd0()
-D- SdMmcIdentify.SwReset fail: 3
-D- Cmd8()
-D- Cmd5()
-W- SdMmcIdentify.Cmd5: 3
-D- Cmd55()
-E- Acmd41.cmd55:3
-D- SdMmcIdentify.Acmd41: 3, try MMC
-D- Cmd0()
-D- Cmd1()
-D- Cmd1()
-D- Cmd1()
-D- Cmd1()....
could someone explain is this a hardware problem (my sam3s-ek board is rev.c) or some library mistake?
it is possible to find this storage examples for Atmel Studio 6? or any other showing how to use HSMCI interface?
best regards
Kshysio

Return to “SAM3 Cortex-M3 MCU”

Who is online

Users browsing this forum: No registered users and 2 guests