PYNQ: PYTHON PRODUCTIVITY

Save file from pynq Z1 to SD card

Is it possible to save file to the SD card for booting? I found that there are seldom example for that,
I need this function for my project.
Thank you!

Hi,

Can you elaborate?

You can write to /boot/ this is the partition that is used for boot.

Mario

I suppose you want to start your program at boot time. if that is the case, there is a detailed tutorial by peter you can find here.

1 Like

In that case,

You can use the boot.py file

Mario

1 Like

To be more clear, I am doing a project on sensor, I need to save the I/O value as CSV or excel. T
hank you in advance.

What are you trying to do? If you just need to get your sensor data off the board, you have lots of ways to do this that would be easier (in my opinion!) than writing to the boot SD card.
Remember that PYNQ is running on a Linux OS.
You could connect another USB drive to one of the USB ports and save data to this device. You wouldn’t need to shutdown the board to transfer the data - just disconnect the secound USB drive.
If your board is connected to your network, you could access the file directly from the other computer or device via Samba, or download from Jupyter notebook.
You could also upload your file directly to the internet (dropbox etc.), host a webserver on your board or transfer the data over the network in many other ways …

Cathal

1 Like

Basically a potentiostat, I am thinking USB is better too, but my boss ask for this, I never program the USB data transfer before though. Network is good, will try in the future. Thank you.

1 Like