* gdbinit and PLL init
@ 2002-04-04 7:29 Ilko Iliev
2002-04-04 7:36 ` Richard Earnshaw
0 siblings, 1 reply; 2+ messages in thread
From: Ilko Iliev @ 2002-04-04 7:29 UTC (permalink / raw)
To: gdb
Hello!
I have custom board with ARM7 CPU with PLL and I use JEENI.
I want to init the PLL in .gdbinit, but this is complex.
How can I write the follow sequence in .gdbinit?
int *pp = 0xFFFF4020;
int *qq = 0xFFFF4040;
*pp = 0x1234;
while( *qq & 0x400 ); // or 200ms pause
*pp = 0x5678;
best regards
Ilko
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: gdbinit and PLL init
2002-04-04 7:29 gdbinit and PLL init Ilko Iliev
@ 2002-04-04 7:36 ` Richard Earnshaw
0 siblings, 0 replies; 2+ messages in thread
From: Richard Earnshaw @ 2002-04-04 7:36 UTC (permalink / raw)
To: Ilko Iliev; +Cc: gdb, Richard.Earnshaw
> Hello!
>
> I have custom board with ARM7 CPU with PLL and I use JEENI.
>
> I want to init the PLL in .gdbinit, but this is complex.
>
> How can I write the follow sequence in .gdbinit?
>
> int *pp = 0xFFFF4020;
> int *qq = 0xFFFF4040;
> *pp = 0x1234;
> while( *qq & 0x400 ); // or 200ms pause
> *pp = 0x5678;
>
>
> best regards
> Ilko
>
Try
set $pp = (int*)0xffff4020
set $qq = (int*)0xffff4040
set *$pp = 0x1234
while (*$qq & 0x0400)
end
set *$pp = 0x5678
R.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-04-04 15:36 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-04-04 7:29 gdbinit and PLL init Ilko Iliev
2002-04-04 7:36 ` Richard Earnshaw
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox