CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

PIC16F877A, supporting MMC/SD cards
Goto page Previous  1, 2
 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
asmallri



Joined: 12 Aug 2004
Posts: 1680
Location: Perth, Australia

View user's profile Send private message Send e-mail Visit poster's website

PostPosted: Sun Apr 07, 2013 1:36 am     Reply with quote

irilias wrote:
...now since the hardware setup is correct, would you please consider taking a look at the code, it was originally written for MMC memory cards, and i tried adding SD support by using the ACMD41 (CMD55+CMD41) command required for it to initialize.


There are plenty of code examples on the CCS site to do this. Why would anyone waste their time debugging your code if you are not prepared to spend the time yourself looking at working code already on the site?
_________________
Regards, Andrew

http://www.brushelectronics.com/software
Home of Ethernet, SD card and Encrypted Serial Bootloaders for PICs!!
ckielstra



Joined: 18 Mar 2004
Posts: 3680
Location: The Netherlands

View user's profile Send private message

PostPosted: Sun Apr 07, 2013 8:55 am     Reply with quote

asmallri wrote:
There are plenty of code examples on the CCS site to do this. Why would anyone waste their time debugging your code if you are not prepared to spend the time yourself looking at working code already on the site?
Exactly my thinking!
Even more when I see a comment like:
Quote:
i deleted the SPI_SS_DISABLED, because the slave select pin is only present in the slave
This is a correct change to the original code, but then I'm thinking: "where did the original code come from?". The original code was flawed and most likely never worked.
Garbage in == garbage out

Please use the CCS supplied MMCSD.c as a driver or use one of the drivers from the Code Library on this forum as a starting point.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
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 vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group