SD-card write problem (at91sam9263 BSP v1.3)

This forum is for users of Atmel's SAM Series and who are interested in using WinCE OS.

Moderator: nferre

feinle
Posts: 3
Joined: Fri Apr 03, 2009 12:58 pm

SD-card write problem (at91sam9263 BSP v1.3)

Wed May 27, 2009 10:20 am

Hello everybody,

I have a problem with writing to SD-cards. Reading from the cards works fine, but when I try to write to the card, it doesn't work (for smaller files it works, but takes ages. For bigger files, it fails).
The OS is WinCE6 R2,using the AT91SAM9263 BSP v1.3 from adeneo.

To give more information, I added some output from the serial debug port.
I hope someone could give me advice on this topic, thank you in advance.

Greetings.


Debug output:

SD/MMC card insertion detected on Slot B
SDMMC:InitDisk with pDisk 0xd1c26b20
SDCard Initialisation Successful
SDMMC:DiskInfo TotalSec:3994624 SecSize:512 Cyls:0 Hds:0 EstSecs:0
Master Clock is 109896810 Hz
ConfigClockFromRegistry : Clock is too high. Clipping it to 15000000 Hz
ConfigClockFromRegistry : Computed Clock = 13737101 Hz
WaitForSingleObject == WAIT_TIMEOUT (208)
StatusMask = 0x8
status 0x8095
WaitForStatus error status = 0x8095
read multiple Prb
+AT91F_MCI_WriteMultipleBlock
WaitForSingleObject == WAIT_TIMEOUT (10001)
StatusMask = 0x20
status 0xc0c5
WaitForStatus error status = 0xc0c5
WaitForSingleObject == WAIT_TIMEOUT (10002)
StatusMask = 0x20
status 0xc0c5
WaitForStatus error status = 0xc0c5
WaitForSingleObject == WAIT_TIMEOUT (1000)
StatusMask = 0x20
status 0xc0c5
WaitForStatus error status = 0xc0c5
+AT91F_MCI_WriteMultipleBlock
WaitForSingleObject == WAIT_TIMEOUT (10001)
StatusMask = 0x20
status 0xc0c5
WaitForStatus error status = 0xc0c5
WaitForSingleObject == WAIT_TIMEOUT (10002)
StatusMask = 0x20
status 0xc0c5
WaitForStatus error status = 0xc0c5
WaitForSingleObject == WAIT_TIMEOUT (1000)
StatusMask = 0x20
status 0xc0c5
WaitForStatus error status = 0xc0c5
+AT91F_MCI_WriteMultipleBlock
WaitForSingleObject == WAIT_TIMEOUT (1000)
StatusMask = 0x8
status 0x4051
WaitForStatus error status = 0x4051
writemultiple : Prb
+AT91F_MCI_WriteMultipleBlock
WaitForSingleObject == WAIT_TIMEOUT (300)
StatusMask = 0x20
status 0x4041
WaitForStatus error status = 0x4041
writemultiple : not ready
+AT91F_MCI_WriteMultipleBlock
WaitForSingleObject == WAIT_TIMEOUT (300)
sthm
Posts: 2
Joined: Tue Oct 09, 2007 1:13 pm

Re: SD-card write problem (at91sam9263 BSP v1.3)

Tue Jun 22, 2010 7:58 pm

I have the same problem, but with a card using AT91SAM9263 REV B and BSP v1.2B from ADENEO.
It's OK when using the AT91SAM9263-EK REV A board from Atmel...
hohohaha
Posts: 1
Joined: Fri Mar 12, 2010 5:09 am

Re: SD-card write problem (at91sam9263 BSP v1.3)

Wed Jun 23, 2010 8:59 am

I have the same problem,bug in driver?
Adeneo
Contact:
Location: France - USA
Posts: 183
Joined: Fri May 14, 2004 9:58 am

Re: SD-card write problem (at91sam9263 BSP v1.3)

Thu Jun 24, 2010 10:37 am

Hi all,

We made test on RevA & RevB boards and all is working well with the v1.4.0 BSP.

I've updated our FTP an now you can download this version from our website.

HTH

If this answer solves your problem, please edit the subject of this post by adding [Solved] at the beginning of the subject.
sthm
Posts: 2
Joined: Tue Oct 09, 2007 1:13 pm

Re: SD-card write problem (at91sam9263 BSP v1.3)

Thu Jun 24, 2010 5:30 pm

OK!
But i have the source version 1.2B bought from ADENEO that
i need to fix. 1.3 seems to have the same problem.
How do you support that. Do i need to buy a new version 1.4?
Seems that you have a bug in your older BSP's. REV B fix source should be public!
Where is the FTP, do you mean the binary version?
Adeneo
Contact:
Location: France - USA
Posts: 183
Joined: Fri May 14, 2004 9:58 am

Re: SD-card write problem (at91sam9263 BSP v1.3)

Fri Jun 25, 2010 11:13 am

Hi sthm,

ATMEL changed the distribution mode of their BSP and now all source BSP's are free and can be mainly downloaded from ATMEL website (windows4sam/bin/view/Windows4SAM/). Adeneo-Embedded remains the provider of these BSP's and furnishes updates regularly to ATMEL.
The v1.4.0 has not been yet updated by ATMEL but in some cases, we offer the possibility to download it directly from our website.

HTH
talabzs
Posts: 9
Joined: Tue Jun 19, 2007 5:14 pm

Re: SD-card write problem (at91sam9263 BSP v1.3)

Wed Dec 08, 2010 10:09 am

I have the same problem, under CE 6.0 with revB CPU SD card write does not operate properly.
Where can i download the BSP 1.4? Or can somebody share the impoved source code for SD driver?
craven
Posts: 14
Joined: Mon Aug 18, 2008 3:31 pm

Re: SD-card write problem (at91sam9263 BSP v1.3)

Wed Feb 02, 2011 10:23 am

<push>
I also could not find the BSP v1.4.
Unfortunatly we are one of those companies, spending a lot of money for the 1.0 BSP,... .
craven
Posts: 14
Joined: Mon Aug 18, 2008 3:31 pm

Re: SD-card write problem (at91sam9263 BSP v1.3)

Wed Feb 09, 2011 11:30 am

...

Return to “WinCE”

Who is online

Users browsing this forum: No registered users and 1 guest