read/write on registers
Leonard Bise
leonard.bise at syderal.ch
Wed Jun 27 13:01:04 UTC 2012
Like said it's not working probably because the address is not valid.
LEON processor registers are located starting at address 0x8000'0000
2012/5/22 David Paterson <dnpaterson at gmail.com>
> On 22 May 2012 11:15, Luca Cinquepalmi <cinquepalmi at planetek.it> wrote:
> > Hi all,
> >
> > I'm trying to write/read on a register address of a leon2 processor
> board.
> > I used the following C code directly executing on board
> >
> > volatile uint32_t *address = (volatile uint32_t *)0x00100000;
> > *address = 0x00300000
> >
> > but it doesn't work.
> > I'm not able to find other solution. Can you help me? thanks
>
> First, I don't know the configuration of your system, so the following
> may be completely wrong...
>
> However, the address 0x00100000 is in the PROM area of the LEON2
> memory map, and can
> normally only be written if the prom write enable bit (bit 11 of
> memory config reg 1) is set.
>
> Regards,
>
> David P.
> _______________________________________________
> rtems-users mailing list
> rtems-users at rtems.org
> http://www.rtems.org/mailman/listinfo/rtems-users
>
--
*
*
*Léonard Bise*
Software Design Engineer
Direct Line +41 (0)32 338 9902
*SYDERAL SA*
Neuenburgstrasse 7
CH-3238 Gals (Switzerland)
Desk Line +41 (0)32 338 9800
Web Site http://www.syderal.ch
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20120627/30ea581e/attachment.html>
More information about the users
mailing list