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

Post Reply
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

Post by hugochester »

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: 3421
Joined: Tue Jan 03, 2006 3:59 pm
Has thanked: 114 times
Been thanked: 422 times
Contact:

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

Post by Steve »

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.

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

Post by hugochester »

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

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

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

Post by Benj »

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.

Post Reply