06-28-2019 03:34 AM
I am facing a problem when I am using XSDK tools. I got this error.
'XPAR_AXI_AD9371_CORE_BASEADDR' undeclared here (not in a function); did you mean 'XPAR_AXI_HDMI_CORE_BASEADDR'?
How can I solve this issue? Please help me. Thanks in advance.
07-04-2019 06:15 AM
I think you may be using AD9361 core in your hardware desing and forgot to add its drivers in sdk. Please check here for more about AD9361 Non OS software: https://wiki.analog.com/resources/eval/user-guides/ad-fmcomms2-ebz/software/baremetal
if you properly set everything, then it might be an issue with base address. Please open xparameters.h and check the ad9361 base address and update it properly.
07-16-2019 12:10 AM - edited 07-16-2019 12:18 AM
But Sir, I am using AD9371. Not AD9361. So what do you think about this problem???
I have attached the parameter.h file. Please check it. And I think the address is also correct. What do you think??
07-16-2019 12:24 AM
ohh, I thought It AD9361. Sorry for misunderstanding. I could not see the defination of xparameters.h file in your parameters.h which was shared. Please include the xparameters.h file in parameters.h file. If the xparameters.h file is not included in parameters.h file then you could see such type of errors for all your declaration.
Please define the file and check once.
07-16-2019 01:33 AM
Hello Sir, Where I can get xparameters.h file. I downloaded the file from this link (https://github.com/analogdevicesinc/no-OS/tree/master/ad9371/sw). I attached in the figure. I searched it in no-OS-master but I didn't find xparameters.h file. So please guide me where I can get this file.
07-16-2019 02:00 AM
you dont need to get the xparameters.h file from out side. it is part of your BSP. xparameters.h file contains the all definations and addresses information in it. just include this file in your parameters.h file. It will already avaialbe in your BSP (project_bsp\ps7_cortexa9_0\include\xparameters.h).
07-16-2019 02:20 AM
I copied from the xparameter.h file into parameter.h file. But still i am facing the same issues. Again another one issue increased ' invalid suffix sni. Please check it below.
07-16-2019 02:31 AM
I did not asked you to copy the content in xparameters.h file to parameters.h file. I was asked to include the file like below:
Please include it properly and also check the ad9371 definations in it. what i mean is 'XPAR_AXI_AD9371_CORE_BASEADDR" should be declared in xparameters.h file.
Kindly note- Please mark the Answer as "Accept as solution" if information provided is helpful.
Give Kudos to a post which you think is helpful and reply oriented.
07-16-2019 02:52 AM
07-16-2019 03:40 AM
Looks like the base address name got changed from the files that you have genarated and vivado project. Check the address mapping in vivado and base address for AD9371.
xparameters.h file is showing the base addresses for RX and TX interfaces and it seems there might be the name change in vivado.
07-16-2019 06:21 AM
Hi Sir, I saw the address in Vivado. But I can't find any address of "XPAR_AXI_AD9371_CORE_BASEADDR". I have attached the addresses below which I found in the Vivado 2018.3. Please clarify me. Thanks a lot.
11-28-2019 02:04 AM
I see you've copied the entire contents of the no-OS project to SDK. If xparameters.h does not have some of the address definitions you are probably working with the wrong project files.
As an alternative you can export your hardware (including bitstream) and launch SDK from Vivado (the workspace will be project_name.sdk folder). Create a "Hello World" project and a new BSP. The BSP will now include an xparameters.h file which should have the required definitions. You can then copy the contents of sw folder of the no-OS project to src folder of the "Hello World" application and build your application. Do not forget to remove helloworld.c since our main function is now inside main.c.