USB Memory with PIC32MX

Moderator: Benj

User avatar
celebriums
Posts: 96
Joined: Sun Sep 25, 2016 3:50 pm
Has thanked: 53 times
Been thanked: 27 times
Contact:

USB Memory with PIC32MX

Postby celebriums » Fri Jul 12, 2019 6:29 pm

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?

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

Re: USB Memory with PIC32MX

Postby Benj » Fri Jul 12, 2019 8:28 pm

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.
These users thanked the author Benj for the post:
celebriums (Sat Jul 13, 2019 11:10 am)
Rating: 5.88%
 

User avatar
celebriums
Posts: 96
Joined: Sun Sep 25, 2016 3:50 pm
Has thanked: 53 times
Been thanked: 27 times
Contact:

Re: USB Memory with PIC32MX

Postby celebriums » Sat Jul 13, 2019 11:25 am

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.

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

Re: USB Memory with PIC32MX

Postby Benj » Mon Jul 15, 2019 10:12 am

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.
These users thanked the author Benj for the post:
celebriums (Mon Jul 15, 2019 11:08 am)
Rating: 5.88%