writing to a USB MSD from a PIC24FJ in flowcode V4

For questions and comments on programming in general. And for any items that don't fit into the forums below.

Moderators: Benj, Mods

hugochester
Posts: 2
Joined: Thu Mar 24, 2011 4:07 pm
Has thanked: 1 time
Contact:

writing to a USB MSD from a PIC24FJ in flowcode V4

Postby hugochester » Fri Mar 25, 2011 8:23 pm

Hi,

I am trying to write to a USB Mass Storage device from the PIC24FJ32GB002 device, i am using "Flowcode V4 PIC24 and dsPIC" to program the PIC and the PIC will then work as a standalone unit. I am unsure of which of the peripheral options I should use; i.e. USB serial, USB slave or USB HID.

If anyone could enlighten me or point me in the right direction it would be greatly appreciated.


Many Thanks

Hugo Chester

User avatar
Steve
Matrix Staff
Posts: 3111
Joined: Tue Jan 03, 2006 3:59 pm
Has thanked: 89 times
Been thanked: 398 times
Contact:

Re: writing to a USB MSD from a PIC24FJ in flowcode V4

Postby Steve » Mon Mar 28, 2011 7:58 am

The ability to write to a USB mass storage device is not natively available in FlowCode. You will need to write your own C code routines to accomplish this.
These users thanked the author Steve for the post:
hugochester (Mon Mar 28, 2011 9:25 am)
Rating: 5%
 

hugochester
Posts: 2
Joined: Thu Mar 24, 2011 4:07 pm
Has thanked: 1 time
Contact:

Re: writing to a USB MSD from a PIC24FJ in flowcode V4

Postby hugochester » Mon Mar 28, 2011 9:25 am

ok, thanks very much for getting back to me :)

User avatar
Benj
Matrix Staff
Posts: 14676
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4660 times
Been thanked: 4286 times
Contact:

Re: writing to a USB MSD from a PIC24FJ in flowcode V4

Postby Benj » Mon Mar 28, 2011 11:07 am

The USB components in Flowcode for dsPIC and PIC24 are based on the Microchip USB components. Should be fairly straight forward to modify a Microchip example and get it working in Flowcode.