This is the code that i have for transferring from Computer to zedboard and again from FPGA to zedboard. I wrote a single python script for transferring data.
import serial
import os
## python -m serial.tools.list_ports -- listing ports
ser = serial.Serial('COM11',115200)print(ser.is_open)
file_size = os.path.getsize("<file_path>")print(file_size)with open('<file_path>','rb')as file:whileTrue:
data = file.read(128)# Read 128 bytes at a time#print(data)ifnot data:break
ser.write(data)print("Broke from the loop")print("finished transferring")print(ser.read())
response = ser.read(file_size)print(response)
ser.close()
The files are transferring to the zedboard but not the other way around. What is my mistake here?
Question
MasterLanz
This is the code that i have for transferring from Computer to zedboard and again from FPGA to zedboard. I wrote a single python script for transferring data.
The files are transferring to the zedboard but not the other way around. What is my mistake here?
Earlier working code was a simple file check
This code was working with the exact output but not the previous code. I am sry if this too lengthy
Link to comment
Share on other sites
0 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now