Help with Flash Drive Interface
mynet43
Posts: 644
in Propeller 1
On my circuit board, I'm currently using an SD card socket with the FSRW driver to update the Propeller Firmware. This works fine.
I'd like to switch to a standard Flash Drive interface to do the same thing.
Can someone suggest and easy way to do this? Wish a simple circuit and driver?
Thank you for your help.
Jim
I'd like to switch to a standard Flash Drive interface to do the same thing.
Can someone suggest and easy way to do this? Wish a simple circuit and driver?
Thank you for your help.
Jim
Comments
Parallax used to carry a board that was a serial-to-flash-drive interface. I looked online, but couldn't find it -- it may still be in their catalog; I just didn't see it.
I only found a couple 2GB drives which worked with the adapter. I think I had adapters with out of date firmware because others on the forum have had good results using a variety of thumb drives.
I never worried about trying to upgrade the firmware on my adapter boards since SD cards worked so well.
Do you have a particular reason you don't want to use SD cards? IMO, SD cards work better with the Propeller than USB thumb drives.
Takes two less pins than an SD interface.
I also prefer the SD card interface. Very reliable and fairly easy to use.
I need to switch to the Thumb Drive because I want to email a file to a customer and have them copy it to their thumb drive. Then plug it in and update the Prop firmware. Many customers aren't familiar with or don't have an SD card.
I'm using the Vinculum VDIP1-32 to read a Kensington Trackball, and it works great. I had to figure out the output myself, so I don't trust it for anything more complex.
Do you know if the VDRIVE2 uses the same chip as the Datalogger? I can probably get the schematic. I don't mind laying out the components on my board, so I can go with anything that works reliably.
If one of you can recommend a setup with support code, that will really help.
Tracy, you said you used the VDRIVE2. Can you dig up the code you used?
Thanks again for your help.
Jim
I haven't used the VDRIVE2 for upgrading Prop or Stamp firmware, only for data logging. Although, it shouldn't be too hard to implement a nice upgrade feature.
Peter. I suggested the SD dongle to my customer. I like it, he prefers just the flash drive.
Bob. I need to read the firmware file from the drive. Can the data logger handle that?
Tracy. Do you have your code for the Vinculum (and which code you used ON the Vinculum)? I'm already using the V2DIP1-32 on my board, to interface with a Kensington Trackball. That uses the HID interface. I don't mind adding another one to handle the flash drive. I looked at the documentation, and they claim to handle all three of the FAT formats, so I'm encouraged to give it a try.
Please let me know what you recommend. I'm about to jump into it.
Thanks!
Jim
It also seem to use SD-card.
That video is great! It looks like it shouldn't be too hard to make it work on the Prop.
I looked at your BS2 code. I understand it, but it's not what I'm familiar with. You mentioned that you had it working with the Prop. Do you have the code for that?
Final question. My only goal at this time is to read a binary file to update the Prop firmware. Does someone have a suggestion for reading and processing the binary data from the drive? When I read from and SD card, I check the file name format. If it's OK then I read 512 byte chunks and store them on the EEPROM as 4 128 byte records. Do you know if reading the binary data instead of text is OK here? Since I'm not writing anything, it shouldn't confuse the data with commands. Right?
Thank you for all your help. Really appreciated!
Jim