• AVR Freaks

Helpful ReplyPIC18F & SD Card

Author
andy_n
Super Member
  • Total Posts : 114
  • Reward points : 0
  • Joined: 2009/09/09 03:49:41
  • Location: Germany
  • Status: offline
2020/05/23 03:24:46 (permalink)
0

PIC18F & SD Card

Hi,
 
I am trying to write SDHC EVO 32Gb with PIC18F without success.
Initialization, reading without problem.
 
My write sequence:
CMD16, 512byte, CRC 0x81  
CMD24, Addresse, CRC 0x6f  //WRITE_SINGLE_BLOCK
Send 0xFE
Send 512 byte data
Wait for 0x05 answer
 
0xE5 answer is coming (0xE5 & 0x1F = 0x05)  but SD Card is blocked.
No more reading & initialization only after cut from supply.
 
Thanks for help.
 
#1
upand_at_them
Super Member
  • Total Posts : 437
  • Reward points : 0
  • Joined: 2005/05/16 07:02:38
  • Location: Pennsylvania
  • Status: online
Re: PIC18F & SD Card 2020/05/23 04:05:11 (permalink) ☄ Helpfulby andy_n 2020/05/23 04:13:39
+1 (1)
Did you try it without setting the block length (CMD16)?
#2
andy_n
Super Member
  • Total Posts : 114
  • Reward points : 0
  • Joined: 2009/09/09 03:49:41
  • Location: Germany
  • Status: offline
Re: PIC18F & SD Card 2020/05/23 04:20:12 (permalink)
0
I've been sitting there for 3 days including a headache and it was so easy.
Thanks Mike.
 
Do you know that: you are lucky to done it but feel stupid :)
#3
Jump to:
© 2020 APG vNext Commercial Version 4.5