linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* About BDI2000 and mpc8247
       [not found] <ee10e9f40605180640g12a2671bo530c3ccbba8b3829@mail.gmail.com>
@ 2006-05-18 13:56 ` Gosiuua
  2006-05-18 14:12   ` Laurent Pinchart
  2006-05-18 14:22   ` Mark Chambers
  0 siblings, 2 replies; 3+ messages in thread
From: Gosiuua @ 2006-05-18 13:56 UTC (permalink / raw)
  To: linuxppc-embedded

Hello List..

 i have a develop board based on mpc8247. It has no eeprom to restore
hareware configure word and i have to use default config word
0x00000000.
 my bdi config file:

[TARGET]
CPUTYPE     8270                ;the CPU type (603EV,750,8240,8260)
JTAGCLOCK   1                   ;use 16 MHz JTAG clock
BOOTADDR    0xfff00100          ;boot address used for start-up break
WORKSPACE   0x00000000          ;workspace in target RAM for fast
download and data cache flushing
BDIMODE     AGENT               ;the BDI working mode (LOADONLY |
AGENT | GATEWAY)

BAUDRATE    115200                ;baudrate for gateway mode or
virtual IO
BREAKMODE   SOFT                ;<AGENT> SOFT or HARD, HARD uses PPC
hardware breakpoint
VECTOR      CATCH               ;<AGENT> catch unhandled exceptions


DCACHE      NOFLUSH            ;<AGENT> data cache flushing (FLUSH |
NOFLUSH)
MEMBASE     0                   ;<AGENT> base of target memory
MEMSIZE     0x00004000          ;<AGENT> size of target memory, 64M


POOLBASE    0x00000000          ;<AGENT> base of host controlled target mem=
ory
POOLSIZE    0x00004000          ;<AGENT> size of host controlled
target memory

 When i connect BDI2000(bdiwind_cop, firmware 1.13, logic 1.02 ) to
the board, the following messages

are printed, then it have no response!
/************************************************************/
- TARGET: processing power-up delay
- TARGET: processing user reset request
- BDI asserts HRESET
- Reset JTAG controller passed
- Bypass check: 0x55 =3D> 0xAA
- Bypass check: 0x55 =3D> 0xAA
- JTAG exists check passed
- Target PVR is 0x80822014
- Target SVR is 0x00000000
- COP status is 0x01
- Check running state passed
- BDI scans COP freeze command
- BDI removes HRESET
- COP status is 0x05
- Check stopped state passed
- Check LSRL length passed
- BDI sets breakpoint at 0xFFF00100
- BDI resumes program execution
- COP status is 0x01
- Waiting for target stop failed
- TARGET: Break at boot vector failed, freeze forced
- TARGET: Target PVR is 0x80822014
- TARGET: resetting target passed
- TARGET: processing target startup ....
/***/


 When i set CPUTYPE to 8260, the following messages are printed continously=
:

/**************************************************************************=
****/
- TARGET: processing power-up delay
- TARGET: processing user reset request
- BDI asserts HRESET
- Reset JTAG controller passed
- Bypass check: 0x55 =3D> 0xAA
- Bypass check: 0x55 =3D> 0xAA
- JTAG exists check passed
- Target PVR is 0x80822014
- COP status is 0x01
- Check running state passed
- BDI scans COP freeze command
- BDI removes HRESET
- COP status is 0x05
- Check stopped state passed
- Check LSRL length passed
- BDI sets breakpoint at 0xFFF00100
- BDI resumes program execution
- COP status is 0x01
- Waiting for target stop failed
- TARGET: Break at boot vector failed, freeze forced
- TARGET: Target PVR is 0x80822014
- TARGET: resetting target passed
- TARGET: processing target startup ....
- TARGET: processing target startup passed
*** TARGET: reset detected, restarting target
- BDI asserts HRESET
- Reset JTAG controller passed
- Bypass check: 0x55 =3D> 0xAA
- Bypass check: 0x55 =3D> 0xAA
- JTAG exists check passed
- Target PVR is 0x80822014
- COP status is 0x01
- Check running state passed
- BDI scans COP freeze command
- BDI removes HRESET
- COP status is 0x05
- Check stopped state passed
- Check LSRL length passed
- BDI sets breakpoint at 0xFFF00100
- BDI resumes program execution
- COP status is 0x01
- Waiting for target stop failed
- TARGET: Break at boot vector failed, freeze forced
/*****/


 BDI can't bread the CPU and i don't know what can i do!
 Any one can help me?

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: About BDI2000 and mpc8247
  2006-05-18 13:56 ` About BDI2000 and mpc8247 Gosiuua
@ 2006-05-18 14:12   ` Laurent Pinchart
  2006-05-18 14:22   ` Mark Chambers
  1 sibling, 0 replies; 3+ messages in thread
From: Laurent Pinchart @ 2006-05-18 14:12 UTC (permalink / raw)
  To: linuxppc-embedded; +Cc: Gosiuua

>  i have a develop board based on mpc8247. It has no eeprom to restore
> hareware configure word and i have to use default config word
> 0x00000000.
>  my bdi config file:
[...]

You should tell the BDI to initialize the SYPCR register, otherwise the 
internal watchdog timer will keep resetting the CPU.

[INIT]
; *** Initialize the core internal registers
; Program the SYPCR - Disable the watchdog timer
WM32    0xf0010004      0xffff2081

You will need to initiliaze other internal registers as well (BCR, SIUMCR, 
BRx, ORx, ...).

I'm not sure if this will be enough to solve your problem, but it should at 
least be a start.

Laurent Pinchart

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: About BDI2000 and mpc8247
  2006-05-18 13:56 ` About BDI2000 and mpc8247 Gosiuua
  2006-05-18 14:12   ` Laurent Pinchart
@ 2006-05-18 14:22   ` Mark Chambers
  1 sibling, 0 replies; 3+ messages in thread
From: Mark Chambers @ 2006-05-18 14:22 UTC (permalink / raw)
  To: Gosiuua, linuxppc-embedded



> Hello List..
> 
> i have a develop board based on mpc8247. It has no eeprom to restore
> hareware configure word and i have to use default config word
> 0x00000000.
> my bdi config file:
> 
<snip>
> - Waiting for target stop failed
> - TARGET: Break at boot vector failed, freeze forced
> /*****/
> 
> 
> BDI can't bread the CPU and i don't know what can i do!
> Any one can help me?
> _______________________________________________

I have had the same issue.  You need lines similar to the following
in your bdi config file to stop the watchdog timer.  Then you will
need other lines to set various registers to match your hardware
bus widths, etc.

[INIT]
; init core register
WREG    MSR             0x00001042      ;MSR  : ME,RI, exceptions high
WM32    0x000101a8 0xf0000000 ;move internal space 
WM32 0xf0010004 0xFFFFFFC1 ;SYPCR: disable watchdog

Mark C.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-05-18 14:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <ee10e9f40605180640g12a2671bo530c3ccbba8b3829@mail.gmail.com>
2006-05-18 13:56 ` About BDI2000 and mpc8247 Gosiuua
2006-05-18 14:12   ` Laurent Pinchart
2006-05-18 14:22   ` Mark Chambers

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).