read/write on registers

David Paterson dnpaterson at gmail.com
Tue May 22 11:15:53 UTC 2012


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.



More information about the users mailing list