binary text file transfer via serial port to FPGA
13 views (last 30 days)
I am trying to transfer binary text file via virtual serial port to FPGA and receive the result after being processed in FPGA. I am using below code to do it.
fid = fopen('testfile.txt');
txdata = fread(fid,inf,'uint8','ieee-be');
%%uint8 = 8bit ieee-be = big endian
But I am getting error: unsuccessful write to comp port. Testfile contains binary matrix value. When I display txdata, it is giving some random value.