Skip to contentSkip to conversation

MPC5200 BDI2000 and USB

U-Boot-Users Pierre AUBERT 2 participants 3 messages Feb 11, 2004

lore
Share & tools
lore
#0 lore raw

Hi everybody,

I'm using a BDI2000 to debug u-boot on a LITE5200 board. I've got some problems with breakpoints and stepping when the MPC5200 USB is running.

When the USB is disabled, breakpoints are working, and I've got the following
display on the BDI2000 terminal :

BDI>bi 0x3f9732c
Breakpoint identification is 1
BDI>break
Breakpoint mode is SOFT
BDI>go
- Target MBAR is 0xF0000000
- Target XLBA is 0x80002006
- TARGET: stopped
BDI>in
Target CPU : MPC8280/MGT5200 (Zeppo)
Target state : debug mode
Debug entry cause : instruction address breakpoint

   Current PC        : 0x03f9732c
   Current CR        : 0x24008004
   Current MSR       : 0x00001002
   Current LR        : 0x03fa2028

BDI>go
- Target MBAR is 0xF0000000
- Target XLBA is 0x80002006
BDI>

When the USB is enabled and the breakpoint is reached, if I try to continue my program, the MPC5200 stops again and I've got the following display :
BDI>go
- Target MBAR is 0xF0000000
- Target XLBA is 0x80002006
- Target MBAR is 0xF0000000
- Target XLBA is 0x00000000
- TARGET: stopped
BDI>
BDI>go
- Target MBAR is 0xF0000000
- Target XLBA is 0x00000000
- Target MBAR is 0xF0000000
- Target XLBA is 0x00000000
- TARGET: stopped
BDI>in
Target CPU : MPC8280/MGT5200 (Zeppo)
Target state : debug mode
Debug entry cause : <reserved 0>

   Current PC        : 0x03f97324
   Current CR        : 0x24008004
   Current MSR       : 0x00001002
   Current LR        : 0x03fa2028

It's impossible to continue the program.

Any suggestion ?

Best regards

#1 lore raw
Quoted 3 lines · In message <[email protected]> you wrote:

I'm using a BDI2000 to debug u-boot on a LITE5200 board. I've got some problems with breakpoints and stepping when the MPC5200 USB is running.

What do you mean - debugging U-Boot when USB is running? AFAIK we don't have USB support in U-Boot for the 5200 yet.

Best regards,

Wolfgang Denk

Signature · 4 lines
See us @ Embedded World, Nuremberg, Feb 17 - 19,  Hall 12.0 Booth 440
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd at denx.de
miracle:  an  extremely  outstanding  or  unusual  event,  thing,  or
accomplishment.                                - Webster's Dictionary
#2 lore raw
Quoted 13 lines · Wolfgang Denk
Quoted 4 lines · In message <[email protected]> you wrote:

I'm using a BDI2000 to debug u-boot on a LITE5200 board. I've got some problems with breakpoints and stepping when the MPC5200 USB is running.

What do you mean - debugging U-Boot when USB is running? AFAIK we don't have USB support in U-Boot for the 5200 yet.

I know, because I'm working on adding USB support on the MPC5200 (I will submit a patch ASAP).
The MPC5200 is an OHCI controller, then it's quite simple. The USB stack is working, and I'm making some tests with usb-storage class. It works with a lot of
USB Sticks but I've got problems with some USB sticks, then I would like to use gdb.

Quoted 6 lines

Best regards,

Wolfgang Denk

Best regards