09-15-2013 07:31 AM
I have build a project with EDK ,and press "export hard design to SDK" , when I pressed "build all" in SDK ,compiler report a error ,the compling options include :... -MF "src/impro.d" -MT "src/impro.d" -o "src/impro.o" "../src/impro.c"
then the error information :
../src/impro.c:in function 'impro_lock_Register':
../src/impro.c:error 'XPAR_IMPRO_ALL_HARD_RAM_PLBW_0_MEMMAP_REGLOCK' undeclared.
....many similar macro has no definition.
could you help me fixing the problem?thanks!
09-15-2013 08:26 PM
Can you check in the xparameters.h generated by BSP to check if this parameter exists?
09-15-2013 10:49 PM
Can you let me know how did you generate the driver? Also search for this parameter in the driver folder.
09-16-2013 08:56 AM
thanks a lot for reply again!
I am afraid that I cann't tell beacause this project is not created by me ,and I am just responsible for some software coding ,BUT I find a phenomenon may be helpful to solve the problem.：
under my main project folder ,there are many folders ,such as "__xps " folder ,"blockdiagram"folder ,"data"folder,"hdl"folder ,
"SDK"folder, "microblaze_0"folder,and so on.
the point is ,I find another "microblaze_0" folder in the ""SDK"folder/SDK_workspace_35/project_name_bsp/ ",when I replace this microbaze_0 folder with the one which is under main project folder, then the project detect that the source file has been changed ,and ask me if save the change, I pressed yes,and the project begin compling automatically without error until the end ( the SDK project has been set as "build automatically") . but if i pressed "build all" again when the project has been complied . the error come again !
09-17-2013 01:27 AM
I have fixed the probem !
in fact ! there is no need to relace the whole folder (named microblaze_0) ,only "xparameter.h" needs replace . then ,the error disappear!
09-17-2013 07:18 AM
That's good news. The error as i mentioned was to check if your xparameters.h search for hte variable.