ARM processor interfacing with USB flash drive

Discussion in 'Embedded Systems and Microcontrollers' started by stainsor, Jan 14, 2009.

  1. stainsor

    Thread Starter New Member

    Jan 14, 2009
    2
    0
    I'm choosing a class project for a microcontrollers class. The class uses an ARM processor.

    One project I'm considering is to build a device that would record mp3's with a microphone and save them to a USB thumb drive. Then would be able to retrieve mp3 files from the thumb drive and play them. Okay so I guess it's basically just an mp3 player/recorder using an ARM processor.

    My professor told me that the USB interface would be by far the hardest part. He told me I could use any resources I find (including code) that would help me handle that part of the project. But the problem is I don't even know where to start looking.

    Can anybody help me?
     
  2. beenthere

    Retired Moderator

    Apr 20, 2004
    15,815
    282
    Here is a link to an overview with some links - http://www.sss-mag.com/usbp2.html. Googling "usb communications protocol" will bring up links to everything you need to learn about USB communication.
     
  3. n9352527

    AAC Fanatic!

    Oct 14, 2005
    1,198
    4
  4. stainsor

    Thread Starter New Member

    Jan 14, 2009
    2
    0
    Thanks, sometimes knowing what to Google is half the battle.
    Thanks for the links too. I can see the USB protocol is very extensive. (obviously I haven't finished reading the entire thing yet.)

    I'm especially interested in how to do file i/o to a flash drive through the usb port. And I'm wondering if I can find some drivers that have already been written and adapt them to work with my project.

    For instance, would I be able to go find some usb driver code from a basic linux distro and adapt it? Or maybe someone has already done a project using an ARM processor with a USB interface and maybe they wouldn't mind letting me use some code. I'm sorry if these questions/suggestions are off base. I'm just not confident that I would be able to complete the project in a semester if I have to write the USB drivers by myself.
     
  5. n9352527

    AAC Fanatic!

    Oct 14, 2005
    1,198
    4
    There are examples floating around the net. I remember one for PIC micro, but I don't remember the address. It should be possible to find one with Google. Linux is another possibility, if you know where to look. Just concentrate on the mass storage class.
     
  6. embpic

    Member

    May 29, 2013
    187
    3
    Hello and sorry for digging up
    i am doing work on same thing that is not getting how to communicate with arm7 and usb using USB interface.
    if u got any material please share with us.

    thank you.
     
  7. ErnieM

    AAC Fanatic!

    Apr 24, 2011
    7,394
    1,606
    I don't know nuthin bout no ARM thingies, I'm a PIC man. With PICs you can get example code that does exactly that: run a USB flash drive off it's port.

    The one I've used as a starting point keeps the USB pointed at the PC and uses an SD card for mass storage. It wasn't so hard (just days long to do) to adapt this so my app could share the SD card too, everything saving and reading to FAT files.

    I'm sure ARM has similar examples where you can jump start your work (meaning you don't really need to fully digest the entire USB spec before you begin).
     
Loading...