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?
Zedboard UART file transfer FPGA
in FPGA
Posted
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