UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
6,746 Views
Registered: ‎05-16-2015

SDK ignores __attribute__ directive 'at'

Hi all,

 

I would like to create a map of my peripherals using the 'at' attribute.

 

 

volatile MyP_T Per0 __attribute__((at(XPAR_APB_M0_BASEADDR)));

 

 

The SDK asserts the following warning:

 

warning: 'at' attribute directive ignored [-Wattributes]

 

 

Is there a way to allow the compiler to evaluate this attribute?

I would like to avoid to have to instanciate a pointer or to use a macro like:

 

#define PER0 ((volatile struct MyP_T*)XPAR_APB_M0_BASEADDR)

 

 

Thank you in advance.

Regards

 

 

0 Kudos