cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
m.torabi
Contributor
Contributor
410 Views
Registered: ‎07-17-2019

How to define __arm__ for Ultrascale in SDK

Jump to solution

Hi,

I am using Zynq UltraScale+ ZU11EG.

I realized __arm__ is not defined in the SDK. The following link mentioned how to printout the predefined macros and I followed and found that __arm__ is actually defined there. But SDK cannot recognize its definition and I am not sure why.

https://forums.xilinx.com/t5/Embedded-Development-Tools/LwIP-example-appliction-why-is-arm-not-defined-in-the-LwIP-stack/td-p/675839

Would you please advise how to resolve this issue. 

Thanks

0 Kudos
Reply
1 Solution

Accepted Solutions
joancab
Scholar
Scholar
329 Views
Registered: ‎05-11-2015

Right click on an SDK project, go to C/C++ General > Paths and Symbols, then to the Symbols tab.

There are plenty of defines there. Want __arm__ as well? Click add and type it.

joancab_0-1609438468399.png

 

 

View solution in original post

4 Replies
joancab
Scholar
Scholar
395 Views
Registered: ‎05-11-2015

This is not an issue. Examples of issues are: "my software doesn't compile" or "my software doesn't run as expected"

I just started a helloworld app project for ZCU102 with the standard BSP and it is defined for me:

joancab_0-1609360722683.png

In my case, CTRL+click over the __arm__ doesn't jump to the definition and it shows this on the bottom of the window:

joancab_1-1609360839470.png

But besides that, I'd bet it works. Using SDK 2018.3 on Win10

m.torabi
Contributor
Contributor
344 Views
Registered: ‎07-17-2019

Thanks for your reply and you suggestion. I will follow your suggestion to improve the post title next time.

Your example is right, but any idea how to find out the problem in my project? How to know whether the defines are applied and what is missing in my project that cause this problem? 

Thanks

 

0 Kudos
Reply
joancab
Scholar
Scholar
330 Views
Registered: ‎05-11-2015

Right click on an SDK project, go to C/C++ General > Paths and Symbols, then to the Symbols tab.

There are plenty of defines there. Want __arm__ as well? Click add and type it.

joancab_0-1609438468399.png

 

 

View solution in original post

m.torabi
Contributor
Contributor
318 Views
Registered: ‎07-17-2019

Good.

Thanks for your reply. 

0 Kudos
Reply