在SDK中使用xil_DCacheDisable();
导出内存中的数据
所得的BIN文件可以用WINHEX打开
matlab代码 bin2bmp
clear; clc; close; p_fid = fopen('../data/out.bin','r'); a = fread(p_fid); col = 1280; row = 1024; IM = reshape(a,col,row); b=uint8(IM)'; imwrite(b,'../img/out.bmp'); imshow('../img/out.bmp');
bmp2bin
lear; clc; close all; a = imread('../img/out.bmp'); %a = rgb2gray(a); imshow(a); [row,col] = size(a); p_fid = fopen('../data/in.bin','w+'); fwrite(p_fid,a','uint8'); fclose(p_fid);
数据导入方法
注意 应该在程序运行中再导入数据,而不是导入后再运行程序
标签:仿真,img,..,row,bmp,fid,LITE,AXI,out From: https://www.cnblogs.com/tuzki9611/p/17365854.html