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

SD card not working
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
ckielstra



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

View user's profile Send private message

PostPosted: Sat Jul 21, 2012 1:19 pm     Reply with quote

Sometimes an extra partition is created on the SD card. The CCS driver can not handle this but when formatting in Windows the extra partition stays there.
An easy work around is by formatting the card in a photo camera or mp3-player.
stoyanoff



Joined: 20 Jul 2011
Posts: 375

View user's profile Send private message

PostPosted: Sat Jul 21, 2012 2:18 pm     Reply with quote

I tied to format the card in FAT16. I`m with win 7 x64. I found instruction which said to use this command in cmd: format G:/fs:FAT16, but it`s not working.
I have Nokia phone, but it adds some extra files in the card after format. I don`t have suitable camera or mp3 player. I have but they are Sony(they are with duo stick).
Do you know any program which I can use??
Thanks!
temtronic



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

View user's profile Send private message

PostPosted: Sat Jul 21, 2012 2:36 pm     Reply with quote

You might try ...
https://www.sdcard.org/downloads/formatter_3/
... as a possible fix..

I do not use sd cards, have never tried the above program so I cna't tell you it works..but maybe worth a try .

If it doesn't I suggest 'Googling sd card format on pc' or similar wording.

You're not the first one who has had problems with sd cards...

For the extra cost I've been using Vinculum based USB flashdrive interface modules for the past couple of years.My time is far more valuable than the 5-10$ you 'save' trying to use sd cards.Also my $49 PC only has 4 USB ports,no sd card slots.

Hopefully you'll find what you need...seems 'everything' is on the Web, somewhere !

hth
jay
Ttelmah



Joined: 11 Mar 2010
Posts: 20161

View user's profile Send private message

PostPosted: Sat Jul 21, 2012 2:42 pm     Reply with quote

The format for a FAT16 format, should be:

FORMAT G: /FS:FAT

The space is needed, and it defaults to FAT16, on a 2GB device.

Best Wishes
gpsmikey



Joined: 16 Nov 2010
Posts: 588
Location: Kirkland, WA

View user's profile Send private message

PostPosted: Sat Jul 21, 2012 3:26 pm     Reply with quote

Based on Temtronic's comments and after a bit of snooping around, you might want to check out the VDRIVE2 gadget - uses the Vinculum interface to a USB port that can handle USB flash drive and the FAT file system in a nice little enclosure and a interface header. I have not used them myself, but I'm certainly going to keep it in mind for future projects ($24)

mikey
_________________
mikey
-- you can't have too many gadgets or too much disk space !
old engineering saying: 1+1 = 3 for sufficiently large values of 1 or small values of 3
temtronic



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

View user's profile Send private message

PostPosted: Sat Jul 21, 2012 3:54 pm     Reply with quote

I've used the Parallax equal to it (Memory Stick Datalogger) for past 2 years for an R&D project but the VDRIVE2 is perfect for 'instant' products !
I run mine at 115K200 baud, no handshaking and have had zero problems using it with both 16F877 and 18F4550 PICs.

hth
jay
stoyanoff



Joined: 20 Jul 2011
Posts: 375

View user's profile Send private message

PostPosted: Wed Jul 25, 2012 7:03 am     Reply with quote

Hi, again!
I want to be sure my chart is OK. So here are the connections:
PIN 1 of the SD card is connected to PIN 33(RC2/CS) of the 18F66J60
PIN 2 ----- --- to PIN 36(RC5/SDO)
PIN 3 ---- --- to GRD
PIN 4 ---- ---- to Vcc
PIN 5 ---- --- to PIN 34(RC3/SCK)
PIN 6 ---- ---- to GRD
PIN 7 ---- ---- to PIN 35(RC4/SDI)
PIN 8 and 9 through pull-up resistor(10k) to Vcc
PINs 1,2,5,7 have pull-up resistors, too.
Is everything OK??
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