* [U-Boot-Users] U-Boot problems with MPC8272ADS
@ 2007-09-19 20:25 Manil Gaouar
2007-09-19 20:55 ` Scott Wood
0 siblings, 1 reply; 7+ messages in thread
From: Manil Gaouar @ 2007-09-19 20:25 UTC (permalink / raw)
To: u-boot
Hi there,
I installed u-boot on my mpc8272ads board, and when I connect the board
with a serial link to my pc, I don't see any output in the console, I
use cu S0 at 115200, I have connected a JTAG to see what's happening in the
board I can see that the PC register is changing and going through the
memory, and the pc will be stuck in an infinite loop which means that he
is waiting for an input, probable the command prompt. I have compared
different positions in my PC register and the u-boot.map and I can see
which function my code is at, so u-boot is running, but why I don't have
a display??
Any help will be much appreciated.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.denx.de/pipermail/u-boot/attachments/20070919/84e4f82b/attachment.htm
^ permalink raw reply [flat|nested] 7+ messages in thread
* [U-Boot-Users] U-Boot problems with MPC8272ADS
2007-09-19 20:25 Manil Gaouar
@ 2007-09-19 20:55 ` Scott Wood
2007-09-19 21:05 ` Jerry Van Baren
0 siblings, 1 reply; 7+ messages in thread
From: Scott Wood @ 2007-09-19 20:55 UTC (permalink / raw)
To: u-boot
Manil Gaouar wrote:
> I installed u-boot on my mpc8272ads board, and when I connect the
> board with a serial link to my pc, I don?t see any output in the
> console, I use cu S0 at 115200, I have connected a JTAG to see what?s
> happening in the board I can see that the PC register is changing and
> going through the memory, and the pc will be stuck in an infinite
> loop which means that he is waiting for an input,
That's hardly the only case in which code can get stuck in an infinite loop.
> probable the command prompt. I have compared different positions in
> my PC register and the u-boot.map and I can see which function my
> code is at, so u-boot is running, but why I don?t have a display??
Did you check that the serial port is properly initialized, including
I/O pin and BRG setup? Can you get serial output by manually poking the
registers with the BDI?
-Scott
^ permalink raw reply [flat|nested] 7+ messages in thread
* [U-Boot-Users] U-Boot problems with MPC8272ADS
2007-09-19 20:55 ` Scott Wood
@ 2007-09-19 21:05 ` Jerry Van Baren
0 siblings, 0 replies; 7+ messages in thread
From: Jerry Van Baren @ 2007-09-19 21:05 UTC (permalink / raw)
To: u-boot
Scott Wood wrote:
> Manil Gaouar wrote:
>> I installed u-boot on my mpc8272ads board, and when I connect the
>> board with a serial link to my pc, I don?t see any output in the
>> console, I use cu S0 at 115200, I have connected a JTAG to see what?s
>> happening in the board I can see that the PC register is changing and
>> going through the memory, and the pc will be stuck in an infinite
>> loop which means that he is waiting for an input,
>
> That's hardly the only case in which code can get stuck in an infinite loop.
When you halt the CPU with the JTAG, what the PC value? Look it up in
your u-boot link map, where is it looping?
>> probable the command prompt. I have compared different positions in
>> my PC register and the u-boot.map and I can see which function my
>> code is at, so u-boot is running, but why I don?t have a display??
>
> Did you check that the serial port is properly initialized, including
> I/O pin and BRG setup? Can you get serial output by manually poking the
> registers with the BDI?
>
> -Scott
The second dumbest question: did you plug your serial cable into _both_
of the mpc8272ads board's serial ports?
The third dumbest question: did you try different baud rates on your PC
(or, better, look at the board's serial output with an o'scope)?
gvb
P.S. The first dumbest question is "Is it plugged in?"
^ permalink raw reply [flat|nested] 7+ messages in thread
* [U-Boot-Users] U-Boot problems with MPC8272ADS
@ 2007-09-20 21:51 Manil Gaouar
2007-09-20 22:22 ` Ben Warren
0 siblings, 1 reply; 7+ messages in thread
From: Manil Gaouar @ 2007-09-20 21:51 UTC (permalink / raw)
To: u-boot
When I halt the CPU in the infinite loop I can see that my PC is at
0x03fe88b0, if I subtract 0x3fc5000 = 0x000238b4 in flash =
0xfff238b4...according to u-boot.map this is the function serial_getc()
which seems that u-boot is running and waiting for an input, and I still
don't have any display on my console.
I have tried both serial ports with no results. I changed the baud rate
also.
Scott: How can you write something in the serial port with the BDI it
looks like you have to set many registers before sending one byte
through the serial cable?
I will investigate more and let you know, I am glad that u-boot is
running!
Scott Wood wrote:
> Manil Gaouar wrote:
>> I installed u-boot on my mpc8272ads board, and when I connect the
>> board with a serial link to my pc, I don't see any output in the
>> console, I use cu S0 at 115200, I have connected a JTAG to see what's
>> happening in the board I can see that the PC register is changing and
>> going through the memory, and the pc will be stuck in an infinite
>> loop which means that he is waiting for an input,
>
> That's hardly the only case in which code can get stuck in an infinite
loop.
When you halt the CPU with the JTAG, what the PC value? Look it up in
your u-boot link map, where is it looping?
>> probable the command prompt. I have compared different positions in
>> my PC register and the u-boot.map and I can see which function my
>> code is at, so u-boot is running, but why I don't have a display??
>
> Did you check that the serial port is properly initialized, including
> I/O pin and BRG setup? Can you get serial output by manually poking
the
> registers with the BDI?
>
> -Scott
The second dumbest question: did you plug your serial cable into _both_
of the mpc8272ads board's serial ports?
The third dumbest question: did you try different baud rates on your PC
(or, better, look at the board's serial output with an o'scope)?
gvb
P.S. The first dumbest question is "Is it plugged in?"
^ permalink raw reply [flat|nested] 7+ messages in thread
* [U-Boot-Users] U-Boot problems with MPC8272ADS
2007-09-20 21:51 [U-Boot-Users] U-Boot problems with MPC8272ADS Manil Gaouar
@ 2007-09-20 22:22 ` Ben Warren
0 siblings, 0 replies; 7+ messages in thread
From: Ben Warren @ 2007-09-20 22:22 UTC (permalink / raw)
To: u-boot
Manil Gaouar wrote:
> When I halt the CPU in the infinite loop I can see that my PC is at
> 0x03fe88b0, if I subtract 0x3fc5000 = 0x000238b4 in flash =
> 0xfff238b4...according to u-boot.map this is the function serial_getc()
> which seems that u-boot is running and waiting for an input, and I still
> don't have any display on my console.
>
> I have tried both serial ports with no results. I changed the baud rate
> also.
>
> Scott: How can you write something in the serial port with the BDI it
> looks like you have to set many registers before sending one byte
> through the serial cable?
>
> I will investigate more and let you know, I am glad that u-boot is
> running!
>
>
Jerry suggested you look at the TD/RD signals on an oscilloscope. Have
you done this yet? Much of my life has been wasted tracing this type of
stuff to incorrect terminal settings, missing null modem adaptor etc.,
and the o-scope can be very revealing. I don't think I'm alone here...
regards,
Ben
^ permalink raw reply [flat|nested] 7+ messages in thread
* [U-Boot-Users] U-Boot problems with MPC8272ADS
@ 2007-09-21 16:17 Manil Gaouar
2007-09-21 18:25 ` Ben Warren
0 siblings, 1 reply; 7+ messages in thread
From: Manil Gaouar @ 2007-09-21 16:17 UTC (permalink / raw)
To: u-boot
Finally it worked!
My serial cable was crossed!!!! Go figure why!
With a direct flat serial everything worked fine...thx for the help...
Manil Gaouar wrote:
> When I halt the CPU in the infinite loop I can see that my PC is at
> 0x03fe88b0, if I subtract 0x3fc5000 = 0x000238b4 in flash =
> 0xfff238b4...according to u-boot.map this is the function
serial_getc()
> which seems that u-boot is running and waiting for an input, and I
still
> don't have any display on my console.
>
> I have tried both serial ports with no results. I changed the baud
rate
> also.
>
> Scott: How can you write something in the serial port with the BDI it
> looks like you have to set many registers before sending one byte
> through the serial cable?
>
> I will investigate more and let you know, I am glad that u-boot is
> running!
>
>
Jerry suggested you look at the TD/RD signals on an oscilloscope. Have
you done this yet? Much of my life has been wasted tracing this type of
stuff to incorrect terminal settings, missing null modem adaptor etc.,
and the o-scope can be very revealing. I don't think I'm alone here...
regards,
Ben
^ permalink raw reply [flat|nested] 7+ messages in thread
* [U-Boot-Users] U-Boot problems with MPC8272ADS
2007-09-21 16:17 Manil Gaouar
@ 2007-09-21 18:25 ` Ben Warren
0 siblings, 0 replies; 7+ messages in thread
From: Ben Warren @ 2007-09-21 18:25 UTC (permalink / raw)
To: u-boot
Manil Gaouar wrote:
> Finally it worked!
>
> My serial cable was crossed!!!! Go figure why!
>
> With a direct flat serial everything worked fine...thx for the help...
>
Fantastic! Welcome to the "I've been kicked in the butt by RS-232" club.
regards,
Ben
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2007-09-21 18:25 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-09-20 21:51 [U-Boot-Users] U-Boot problems with MPC8272ADS Manil Gaouar
2007-09-20 22:22 ` Ben Warren
-- strict thread matches above, loose matches on Subject: below --
2007-09-21 16:17 Manil Gaouar
2007-09-21 18:25 ` Ben Warren
2007-09-19 20:25 Manil Gaouar
2007-09-19 20:55 ` Scott Wood
2007-09-19 21:05 ` Jerry Van Baren
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox