Like said it's not working probably because the address is not valid.<div><br></div><div>LEON processor registers are located starting at address 0x8000'0000</div><div><br><div class="gmail_quote">2012/5/22 David Paterson <span dir="ltr"><<a href="mailto:dnpaterson@gmail.com" target="_blank">dnpaterson@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On 22 May 2012 11:15, Luca Cinquepalmi <<a href="mailto:cinquepalmi@planetek.it">cinquepalmi@planetek.it</a>> wrote:<br>

> Hi all,<br>
><br>
> I'm trying to write/read on a register address of a leon2 processor board.<br>
> I used the following C code directly executing on board<br>
><br>
> volatile uint32_t *address = (volatile uint32_t *)0x00100000;<br>
> *address = 0x00300000<br>
><br>
> but it doesn't work.<br>
> I'm not able to find other solution. Can you help me? thanks<br>
<br>
</div></div>First, I don't know the configuration of your system, so the following<br>
may be completely wrong...<br>
<br>
However, the address 0x00100000 is in the PROM area of the LEON2<br>
memory map, and can<br>
normally only be written if the prom write enable bit (bit 11 of<br>
memory config reg 1) is set.<br>
<br>
Regards,<br>
<br>
David P.<br>
_______________________________________________<br>
rtems-users mailing list<br>
<a href="mailto:rtems-users@rtems.org">rtems-users@rtems.org</a><br>
<a href="http://www.rtems.org/mailman/listinfo/rtems-users" target="_blank">http://www.rtems.org/mailman/listinfo/rtems-users</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div><span><div><b><img src="http://www.syderal.ch/images/syd_icons/mini-logo-syd.png"><br></b></div><div><b>Léonard Bise</b></div><div>Software Design Engineer
</div><div>Direct Line +41 (0)32 338 9902</div><div><br></div><div><b>SYDERAL SA</b></div><div>Neuenburgstrasse 7</div><div>CH-3238 Gals (Switzerland)</div><div>Desk Line +41 (0)32 338 9800</div><div>Web Site <a href="http://www.syderal.ch" target="_blank">http://www.syderal.ch</a></div>
</span></div><br>
</div>