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

PIC to SD Card
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
temtronic



Joined: 01 Jul 2010
Posts: 9244
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Thu Aug 11, 2011 8:30 am     Reply with quote

Whoa !!!
If your changes appear in Hexedit, then it's NOT your problem ! Notepad has a few 'quirks'.

Trust Hexedit.
Ttelmah



Joined: 11 Mar 2010
Posts: 19541

View user's profile Send private message

PostPosted: Thu Aug 11, 2011 8:59 am     Reply with quote

Have to agree.
Had a delicious time trying to track a data problem. An XML string, which appeared absolutely perfect in Notepad (and also in the textedit app on a Mac), but would not work.
Turned out the characters were using unicode, and looked correct in these text editors, but had completely the wrong values, when you looked in hexedit.
Hexedit shows byte by byte, what is in a file. Notepad, gives a 'text approximation', which can often be wrong....

Best Wishes
sjharris



Joined: 11 May 2006
Posts: 78

View user's profile Send private message

PostPosted: Thu Aug 11, 2011 9:31 am     Reply with quote

I have found that in sector 0x18 the files have their lengths in bytes stored as here
http://www.ecgf.uakron.edu/grover/web/ee470/labs/SDCardMap.pdf
I have managed to read this whole sector into the PIC, search for the file name and increase the number of bytes. This seems to work.
All I want to do now is to make new files on the PIC.
Anyone any ideas??
Cheers
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