Reading/Writing to USB Drive

In Windows I have experience with making a GUI in Python in which I was taking data from a Microcontroller through UART and saving the data as text file after processing. This was all done in Python. The default location of the text file was the Python project folder but I guess this location could be another partition of the local drive, for example instead of D:\ this can be E:. Considering both D:\ and E:\ are partitions of the local hard drive in addition to C:. I used Python in Windows for making GUI based software.

Now I am wondering about how it work with PYNQ on ZYNQ board.

If we attach a USB 2.0 flash drive to the ZYNQ board, can we also save the data as text file in Python by just referring to the correct name and location of the USB 2.0 flash drive ?

Can also read the text or data file in PYNQ the same way in Windows. This is just one liner code in Windows. The same way can we also read the text file stored in USB 2.0 flash drive using PYNQ ?

Reading/Writing to USB 2.0 flash drive attach to the ZYNQ board is anything more or complex using PYNQ then described above ?

Hello, this is still open. I am waiting for your comments.

Hi @david_j,

Yes, this is possible. I suggest you check on the web how to mount a USB drive on Linux. Once you do that, you will be able to read/write from it.

Mario

1 Like