title: Use of Xil_Out32 in Xilinx SDK
body: <p>In Vivado I succesfully made a simple blockdiagram to control the LEDs of my Zybo board. I can observe that the offset address for my <code>LEDs is: 0x4120 0000</code> and the <code>High Address is 0x4120 FFFF</code>. Now when I go to the SDK:</p>
  
  <pre><code>#include &lt;xil_printf.h&gt;
  #include &lt;xil_types.h&gt;
  #include "platform.h"
  #include "xgpio_l.h"
  
  volatile u32 *LED_DATA = (u32 *) 0x41200000 ;   
  int main()
  {
  
      init_platform();
  
      xil_printf(" Writing to LEDs:   \n\r");
      Xil_Out32((&amp;LED_DATA) + (0x00)  , 0xFFFFFFFF);     //All LEDs ON
  
      cleanup_platform();
      return 0;
  }
  </code></pre>
  
  <p>I programmed the FPGA and run the above code. But still no success whatsoever.
  Could someone point out my errors?</p>
  
  <p>Thanks in advance </p>