Shop OBEX P1 Docs P2 Docs Learn Events
Copy files from PC to uSD over serial in C — Parallax Forums

Copy files from PC to uSD over serial in C

FlexC with Loadp2 gives you a way to use Plan9 to open files and view directories on the computer as if they were on uSD.
This requires adding "-9 " followed by folder to use as root in the loadp2.exe command line.

But, I've also figured out how to use FatFS independent from FlexC.
This allows opening uSD files when the pins don't match those of Eval board.
It also lets me add in long filename support and directory support.

Anyway, the attached program copies the file "text.txt" from your computer using Plan9 to your uSD on P2 Eval board.
Actually, it shows both folder contents first and then copies the file over.
Could be useful for future operations...
Sign In or Register to comment.