Atheros-CSI-Tool-UserSpace-APP icon indicating copy to clipboard operation
Atheros-CSI-Tool-UserSpace-APP copied to clipboard

assignment from incompatible pointer type [-Wincompatible-pointer-types] using read csi mex file

Open aligharari opened this issue 5 years ago • 3 comments

Hi, I am trying to use your tool to receive CSI but I have some problems using your MATLAB code. The problem is that when I try to make mex file I face the following warnings. After running the code I face the error which tells MATLAB faced an internal error and close the MATLAB. I will appreciate it if you can help me with my problem. read_csi.c:67:11: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types] nr_p = mxGetPr(prhs[1]); read_csi.c:70:11: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types] nc_p = mxGetPr(prhs[2]); warning: assignment from incompatible pointer type [-Wincompatible-pointer-types] num_tones_p = mxGetPr(prhs[3]);

aligharari avatar Sep 27 '18 09:09 aligharari

try changing the endian_format in read_log_file.m

itskalvik avatar Dec 17 '18 04:12 itskalvik

Did you find a solution to this, I am also stuck at this point.

muhmaz3 avatar Jul 12 '19 21:07 muhmaz3

This will help. https://github.com/xieyaxiongfly/Atheros-CSI-Tool-UserSpace-APP/issues/41#issuecomment-511161465

muhmaz3 avatar Jul 14 '19 09:07 muhmaz3