Makin a USB thumb drive

General discussion on mikroC PRO for PIC.
Post Reply
Author
Message
mega128
Posts: 15
Joined: 13 Apr 2012 20:29

Makin a USB thumb drive

#1 Post by mega128 » 14 Nov 2012 16:29

Hi all,

Can someone enlighten me how to use microchip such as PIC18F13K50 as a mass storage device so that I can connect NAND flash to it? Basically, want to create my own flash drive not using a SD card but similar to regular flash drives available in market. Simpler approach the better :-)

Thanks

MR2010
Posts: 109
Joined: 06 Jun 2010 13:28

Re: Makin a USB thumb drive

#2 Post by MR2010 » 17 Nov 2012 00:23

i think stm32 can do the job ;

LGR
Posts: 3204
Joined: 23 Sep 2004 20:07

Re: Makin a USB thumb drive

#3 Post by LGR » 10 Jan 2013 20:56

Check out Dany's site. He's got all the pieces you need, but the source is in Pascal.

http://www.rosseeld.be/DRO/PIC/index.htm?
If you know what you're doing, you're not learning anything.

p.erasmus
Posts: 3391
Joined: 05 Mar 2009 10:28

Re: Makin a USB thumb drive

#4 Post by p.erasmus » 10 Jan 2013 21:13

MR2010 wrote:i think stm32 can do the job ;
I think a PIC18 ,PIC24,dsPIC33 and PIC32 can do the job what makes STM so Special
P.Erasmus
Saratov,Russia
--------------------------------------------------------------

MR2010
Posts: 109
Joined: 06 Jun 2010 13:28

Re: Makin a USB thumb drive

#5 Post by MR2010 » 11 Jan 2013 00:42

p.erasmus wrote:
MR2010 wrote:i think stm32 can do the job ;
I think a PIC18 ,PIC24,dsPIC33 and PIC32 can do the job what makes STM so Special
For advenced projects ARM is much faster powerfull and to many pins,and already has OTG open source libraries,and cheap to buy.check for specs,anyway we are trying to help this guy,if you have got anything special about PIC why dont you post an example for what he is asking for? bla bla bla without idea does not work man ...and please dont quote on my post you know nothings;;;;;;;

Dany
Posts: 3854
Joined: 18 Jun 2008 11:43
Location: Nieuwpoort, Belgium
Contact:

Re: Makin a USB thumb drive

#6 Post by Dany » 11 Jan 2013 12:21

Hi,
There is an MSD (Mass Storage device) library for P18 and P24, see http://www.libstock.com/projects/view/71/usb-oa. :D It is made for the P18F2550 and mikroPascal. Perhaps it can be translated and/or used in mC.
Kind regards, Dany.
Forget your perfect offering. There is a crack in everything, that's how the light gets in... (L. Cohen)
Remember when we were young? We shone like the sun. (David Gilmour)

p.erasmus
Posts: 3391
Joined: 05 Mar 2009 10:28

Re: Makin a USB thumb drive

#7 Post by p.erasmus » 11 Jan 2013 23:07

Here is the open source Lib/Stack for USB from MCHP including OTG ,HID CDC HOST and MSD :D

http://www.microchip.com/stellent/idcpl ... e=en537044

as you noticed there is no such support for the mE compilers except for Danys Pacal but it is fully supported by the MCHP tools C compilers
also note there is no support for OTG-HOST CDC ect for STM in MikroE compilers
P.Erasmus
Saratov,Russia
--------------------------------------------------------------

Post Reply

Return to “mikroC PRO for PIC General”