Atmel website | ARM Community | AVR freaks | Technical Support
Banner
 FAQ •  Search •  Register •  Login 

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 9 posts ] 
Author Message
 Post subject: SD-card write problem (at91sam9263 BSP v1.3)
PostPosted: Wed May 27, 2009 10:20 am 
Offline

Joined: Fri Apr 03, 2009 12:58 pm
Posts: 3
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)


Top
 Profile  
 
 Post subject: Re: SD-card write problem (at91sam9263 BSP v1.3)
PostPosted: Tue Jun 22, 2010 7:58 pm 
Offline

Joined: Tue Oct 09, 2007 1:13 pm
Posts: 2
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...


Top
 Profile  
 
 Post subject: Re: SD-card write problem (at91sam9263 BSP v1.3)
PostPosted: Wed Jun 23, 2010 8:59 am 
Offline

Joined: Fri Mar 12, 2010 5:09 am
Posts: 1
I have the same problem,bug in driver?


Top
 Profile  
 
 Post subject: Re: SD-card write problem (at91sam9263 BSP v1.3)
PostPosted: Thu Jun 24, 2010 10:37 am 
Offline

Joined: Fri May 14, 2004 9:58 am
Posts: 183
Location: France - USA
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.

_________________
Adeneo Embedded
http://www.adeneo-embedded.com


Top
 Profile  
 
 Post subject: Re: SD-card write problem (at91sam9263 BSP v1.3)
PostPosted: Thu Jun 24, 2010 5:30 pm 
Offline

Joined: Tue Oct 09, 2007 1:13 pm
Posts: 2
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?


Top
 Profile  
 
 Post subject: Re: SD-card write problem (at91sam9263 BSP v1.3)
PostPosted: Fri Jun 25, 2010 11:13 am 
Offline

Joined: Fri May 14, 2004 9:58 am
Posts: 183
Location: France - USA
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 (http://www.at91.com/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

_________________
Adeneo Embedded
http://www.adeneo-embedded.com


Top
 Profile  
 
 Post subject: Re: SD-card write problem (at91sam9263 BSP v1.3)
PostPosted: Wed Dec 08, 2010 10:09 am 
Offline

Joined: Tue Jun 19, 2007 5:14 pm
Posts: 9
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?


Top
 Profile  
 
 Post subject: Re: SD-card write problem (at91sam9263 BSP v1.3)
PostPosted: Wed Feb 02, 2011 10:23 am 
Offline

Joined: Mon Aug 18, 2008 3:31 pm
Posts: 15
<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,... .


Top
 Profile  
 
 Post subject: Re: SD-card write problem (at91sam9263 BSP v1.3)
PostPosted: Wed Feb 09, 2011 11:30 am 
Offline

Joined: Mon Aug 18, 2008 3:31 pm
Posts: 15
...


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: