Page 1 of 1

USB Memory with PIC32MX

Posted: Fri Jul 12, 2019 6:29 pm
by celebriums
Dear Flowcode Family
Dear Ben J.

I want to save data to the Flash Memory via USB with the PIC32MX processor at regular intervals.
How do I use Flash memory via USB?

Re: USB Memory with PIC32MX

Posted: Fri Jul 12, 2019 8:28 pm
by Benj
Hi Sadik,

Just to be clear are you wanting to write to the internal flash on the PIC32 device or to a USB memory stick?

We don't currently support these via components but as a bit of an investigation I can certainly try to help with implementing either.

Re: USB Memory with PIC32MX

Posted: Sat Jul 13, 2019 11:25 am
by celebriums
Thank you
Firstly, I think of using a USB Memory Stick. The PIC32MX says it supports up to 4GB.



I have three goals in this project. Available USB components,
it only has USB HID, Serial, MIDI and Slave features.


1. Purpose,

Write and read data directly using D + and D- pins.

Keep the events that the device experiences on a * .TXT file.
Set the initial values by reading the setup values of the device from the * .TXT file. For example; WIFI password,

2. Purpose
* Read data from .jpeg file and transfer it to TFT screen.

3. Purpose
Install the software into the PIC32MX with a bootloader.


Another method is; Using internal memory.

For Example:
https://datasheet.octopart.com/mx25l128 ... 526005.pdf

If I'm going to use internal memory, I'd rather work with a 128Mb.

Re: USB Memory with PIC32MX

Posted: Mon Jul 15, 2019 10:12 am
by Benj
Hello Sadik,
The PIC32MX says it supports up to 4GB.
I believe FAT16 supports up to 4GB and FAT32 will support up to 64GB. I'll investigate internal and USB storage support.