05-20-2008 09:17 AM
I'm working with MicroBlaze 9.1.
In my project variables are float type:
float * MaxGradM[image_height][image_width];
i locate this printer to DDR RAM:
MaxGradM[i] = (float *)((DDR_BASEADDR+7*DDR_SHIFT)+ (i+1)*DDR_SHIFT_40);
And if I try to assign some value, i got an error:
error: incompatible types in assignment
Here is not a soluton too...
Please help me, how to solve this error??
05-20-2008 10:00 AM
I want to assign MaxGradM array to DDR RAM. In for loop do I this correct? Then if I have to change zero values of MaxGradM cells to 1 I must do followings??:
(float *) MaxGradM[i][j]=1;
05-20-2008 02:10 PM
I understud now. Realy I impose address on my Pointer (0x1200*****) and then I write a value (*(float *) pointer = new_value;)
No errors, I think it will work :)