Copy files from PC to uSD over serial in C
Rayman
Posts: 14,646
in Propeller 2
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...
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...
zip
769K