Why do USB drives behave differently? 2g vs 4g
T Chap
Posts: 4,223
I use a Vinculum and VS1033 to playback mp3 files. The system is a voice prompt for user programming. If the user pressed any key ahead of time or maybe exit, the code tells the file to stop. This is VMusic firmware. On a 2g Sandisk Cruzer the mp3 stops right away and the next file can start. On the same drive but a 4g, the file continues to play, and the next file then plays.
Comments
Since these are MP3s, you can get a lot on a 1GB or 2GB card. Maybe always use a smaller card. You can still find them mail order, they are now very cheap.
-- Gordon
Jim
These use firmware drivers within the FTDI Vinculum chip (the chip is upgradable and reprogrammable). The USB driver in these chips needs to communicate with the SD card, and it's here where differences in implementation between cards come into play.
Needing to reformat cards isn't unusual, even when cards are fresh. They may have used weird cluster sizes on those 4G cards, for example.
-- Gordon
It's just Gordon. Jesus is that other guy.
I'm just guessing here, BTW. Over the last three weeks I've had to work a lot of this out, so it's fresh in my mind with what can go wrong. The system I'm working with uses a comparable audio decoder chip (same company, but decodes Ogg Vorbis files), but supporting internal flash, external uSD, and USB. The program is so tightly packed into memory that with just one out of place sneeze it won't compile. I have a choice of also supporting WAV, but not HC cards, supporting seemless playback but not something else. It's very maddening.
-- Gordon
Glad you got it working. For the record, you are using a thumb drive, correct?
All the responses when off about SD cards. While the information from Gordon was very informative, (Thanks Gordon!), I would be good to have the correct hardware information used, for people querying this thread later.
It's a surface mount board with everything already connected. Would be very difficult to hand-solder it all. This is for a project for an upcoming SERVO or Nuts & Volts.
-- Gordon
Sorry, I did use the term "card," out of habit I guess. Above where I say "SD card" it should say flash memory.
-- Gordon
No worries Gordon,
Memory--it's all the same, we loose it when we get older.
Jim