cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
1,186 Views
Registered: ‎09-25-2014

'XPAR_AXI_AD9371_CORE_BASEADDR' undeclared here (not in a function); did you mean 'XPAR_AXI_HDMI_CORE_BASEADDR'?

Dear friends,

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.

0 Kudos
15 Replies
Highlighted
Moderator
Moderator
1,139 Views
Registered: ‎10-30-2017

Hi middyaamitava@gmail.com ,

 

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.

 

Best Regards,

Srikanth

0 Kudos
Highlighted
1,080 Views
Registered: ‎09-25-2014

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??111.PNG

 

0 Kudos
Highlighted
Moderator
Moderator
1,061 Views
Registered: ‎10-30-2017

Hi middyaamitava@gmail.com ,

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.

Best Regards,

Srikanth

0 Kudos
Highlighted
1,049 Views
Registered: ‎09-25-2014

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.

regards, Amitava

1111.png

 

0 Kudos
Highlighted
Moderator
Moderator
1,028 Views
Registered: ‎10-30-2017

Hi middyaamitava@gmail.com ,

 

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).

Best Regards,

Srikanth

 

0 Kudos
Highlighted
1,021 Views
Registered: ‎09-25-2014

Hello Sir,

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.

best regards,

Amitava

ss.PNG

 

0 Kudos
Highlighted
1,018 Views
Registered: ‎09-25-2014

sss.PNG

 

0 Kudos
Highlighted
Moderator
Moderator
1,012 Views
Registered: ‎10-30-2017

Hi middyaamitava@gmail.com ,

 

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:

#include <xparameters.h>

 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. 

 

Best Regards,
Srikanth
----------------------------------------------------------------------------------------------
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.

0 Kudos
Highlighted
994 Views
Registered: ‎09-25-2014

Hi Sir,

Unfortunately, there is no such declaration in xparameters.h file like XPAR_AXI_AD9371_CORE_BASEADDR. I have attached the file below. Please take a look where is my fault. Thanks a lot. 

regards,

Amitava

0 Kudos
Highlighted
Moderator
Moderator
984 Views
Registered: ‎10-30-2017

Hi middyaamitava@gmail.com ,

 

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.

 

Best Regards,

Srikanth

0 Kudos
Highlighted
969 Views
Registered: ‎09-25-2014

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.

best regards,

Amitava

33.PNG

 

0 Kudos
Highlighted
968 Views
Registered: ‎09-25-2014

222.PNG

 

0 Kudos
Highlighted
837 Views
Registered: ‎09-25-2014

Hello Sir,

Can you help me solve this issue? I am waiting for your valuable reply. 

regards,

Amitava

0 Kudos
Highlighted
835 Views
Registered: ‎09-25-2014

when i define the adress of " AXI_AD9371_CORE_BASEADDR"  to '0' then it is showing no error. Is it be workable??

0 Kudos
Highlighted
Voyager
Voyager
522 Views
Registered: ‎06-28-2018

Hey middyaamitava@gmail.com 

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.

0 Kudos