Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Thread

I recently got back into working with SD-Cards . . .

I recently got back into working with SD-Cards . . .

2007-04-29 by kernels_nz

Hi guys, Id like to get back to SD-cards, maybe the boys at Sabre
technology can help ?

I spent most of my Sunday turning my "rough-as" SD card access code
into nice functions and just generally modularizing the code.

I did run into a weird problem tho . . .

I initialize the SD-card with no problems, I then pull the CS line
high, do some other stuff that doesnt interfere in any way with the
SPI or SD card, pull the CS line low, try to write to the card and get
R=0x01 (in idle state) 

Same thing happens when I try to read the card.

It reads and writes fine if I do a initialization every time before I
read or write. . .

The datasheet says that I should only have to initialize the card once ?

Has anybody seen this before ? Any ideas or suggestions ?

Thanks in advance
Hein B
Auckland, New Zealand

RE: [AVR-Chat] I recently got back into working with SD-Cards . . .

2007-04-30 by Roy

Are you willing to share your code for the SD card?

 

_______________________________________

Roy Hopkins             ZL2RJH
Tauranga
New Zealand
_______________________________________
Show quoted textHide quoted text
-----Original Message-----
From: AVR-Chat@yahoogroups.com [mailto:AVR-Chat@yahoogroups.com] On Behalf
Of kernels_nz
Sent: Monday, 30 April 2007 8:09 a.m.
To: AVR-Chat@yahoogroups.com
Subject: [AVR-Chat] I recently got back into working with SD-Cards . . .

 

Hi guys, Id like to get back to SD-cards, maybe the boys at Sabre
technology can help ?

I spent most of my Sunday turning my "rough-as" SD card access code
into nice functions and just generally modularizing the code.

I did run into a weird problem tho . . .

I initialize the SD-card with no problems, I then pull the CS line
high, do some other stuff that doesnt interfere in any way with the
SPI or SD card, pull the CS line low, try to write to the card and get
R=0x01 (in idle state) 

Same thing happens when I try to read the card.

It reads and writes fine if I do a initialization every time before I
read or write. . .

The datasheet says that I should only have to initialize the card once ?

Has anybody seen this before ? Any ideas or suggestions ?

Thanks in advance
Hein B
Auckland, New Zealand

 



[Non-text portions of this message have been removed]

Re: I recently got back into working with SD-Cards . . .

2007-04-30 by kernels_nz

For non-commercial use ?

--- In AVR-Chat@yahoogroups.com, "Roy" <roy.h@...> wrote:
>
> Are you willing to share your code for the SD card?
> 
>  
> 
> _______________________________________
> 
> Roy Hopkins             ZL2RJH
> Tauranga
> New Zealand
> _______________________________________
> 
> -----Original Message-----
> From: AVR-Chat@yahoogroups.com [mailto:AVR-Chat@yahoogroups.com] On
Behalf
Show quoted textHide quoted text
> Of kernels_nz
> Sent: Monday, 30 April 2007 8:09 a.m.
> To: AVR-Chat@yahoogroups.com
> Subject: [AVR-Chat] I recently got back into working with SD-Cards . . .
> 
>  
> 
> Hi guys, Id like to get back to SD-cards, maybe the boys at Sabre
> technology can help ?
> 
> I spent most of my Sunday turning my "rough-as" SD card access code
> into nice functions and just generally modularizing the code.
> 
> I did run into a weird problem tho . . .
> 
> I initialize the SD-card with no problems, I then pull the CS line
> high, do some other stuff that doesnt interfere in any way with the
> SPI or SD card, pull the CS line low, try to write to the card and get
> R=0x01 (in idle state) 
> 
> Same thing happens when I try to read the card.
> 
> It reads and writes fine if I do a initialization every time before I
> read or write. . .
> 
> The datasheet says that I should only have to initialize the card once ?
> 
> Has anybody seen this before ? Any ideas or suggestions ?
> 
> Thanks in advance
> Hein B
> Auckland, New Zealand
> 
>  
> 
> 
> 
> [Non-text portions of this message have been removed]
>

Re: I recently got back into working with SD-Cards . . .

2007-04-30 by kernels_nz

No worries, email me on hein @ andante . co . nz (without the spaces
of course) and ill send you the C file and datasheet. It's pretty self
explanatory. My pleasure to help fellow kiwis.

Cheers
Hein B

--- In AVR-Chat@yahoogroups.com, "Roy" <roy.h@...> wrote:
>
> Yes I am just doing this for home projects.
> 
>  
> 
> _______________________________________
> 
> Roy Hopkins             ZL2RJH
> Tauranga
> New Zealand
> _______________________________________
> 
> -----Original Message-----
> From: AVR-Chat@yahoogroups.com [mailto:AVR-Chat@yahoogroups.com] On
Behalf
> Of kernels_nz
> Sent: Monday, 30 April 2007 7:41 p.m.
> To: AVR-Chat@yahoogroups.com
> Subject: [AVR-Chat] Re: I recently got back into working with
SD-Cards . . .
> 
>  
> 
> For non-commercial use ?
> 
> 
> 
> 
>  
>
<http://geo.yahoo.com/serv?s=97359714/grpId=4313974/grpspId=1706554205/msgId
Show quoted textHide quoted text
> =12683/stime=1177918894/nc1=3848621/nc2=4507179/nc3=3848527> 
>  
> 
> 
> 
> [Non-text portions of this message have been removed]
>

RE: [AVR-Chat] Re: I recently got back into working with SD-Cards . . .

2007-04-30 by Roy

Yes I am just doing this for home projects.

 

_______________________________________

Roy Hopkins             ZL2RJH
Tauranga
New Zealand
_______________________________________
Show quoted textHide quoted text
-----Original Message-----
From: AVR-Chat@yahoogroups.com [mailto:AVR-Chat@yahoogroups.com] On Behalf
Of kernels_nz
Sent: Monday, 30 April 2007 7:41 p.m.
To: AVR-Chat@yahoogroups.com
Subject: [AVR-Chat] Re: I recently got back into working with SD-Cards . . .

 

For non-commercial use ?




 
<http://geo.yahoo.com/serv?s=97359714/grpId=4313974/grpspId=1706554205/msgId
=12683/stime=1177918894/nc1=3848621/nc2=4507179/nc3=3848527> 
 



[Non-text portions of this message have been removed]

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.