[Efi332] BDM troubles
David Eicher
sailors3
Sun Jul 3 03:26:49 UTC 2005
Hi Guys,
Sorry, been out of the country for nearly a month.
I'm using the cable parallel cable that came with the Phytec board, I
connected it to the Phytec board parallel connector and to my desktop
parallel (printer) interface. I use OCD Commander to debug. It talks to the
Phytec very well, no problems. My desktop is a Windoze XP machine. So., I've
got the Phytec development kit including the carrier board the MPC555 sits
on, I believe this carrier board has a BDM interface on it. I never changed
any setting on the Phytec or carrier board, just plugged in the cable and it
worked.
I very soon need to move to a more capable debugger though, OCD Commander is
strictly a assembly level debugger, and does not even have the capability to
set breakpoints. I've had to manually set them by going into the code and
changing an instruction to all zeros to cause a break. It's crude, and
doesn't always work so well.
I'm hoping to use Insight/GDB, and I believe I will need to use OCDRemote to
make that work. OCD Remote "listens" on a TCP/IP port number (configurable
to match the GDB), and re-issues the commands over the parallel interface.
I'll work on this and let you know how it goes. I'm using CYGWIN so I start
OCDRemote in a shell as follows:
OCDRemote -c MPC55X
OCDRemote launches then, and states that it is listening on port 8888,
apparently this is the default for GDB. The port number can be changed with
a command line switch.
Hope this helps,
Regards,
Dave
_____
From: efi332-bounces at diy-efi.org [mailto:efi332-bounces at diy-efi.org] On
Behalf Of Paul Helmuth
Sent: Saturday, July 02, 2005 3:15 PM
To: efi332 at diy-efi.org
Subject: Re: [Efi332] BDM troubles
Unfortunately, I can't get Macraigor software to interact with the Phytec
BDM interface correctly. I get a "Power not on target" type of error when
trying to connect with OCD commander or with Macraigor's Flash Memory
programmer.
David, if you are connecting to Phytec BDM interface can you share any
details (jumper settings, tricks, etc.)?
----- Original Message -----
From: Paul <mailto:PaulHelmuth at SprintMail.com> Helmuth
To: efi332 at diy-efi.org
Sent: Saturday, July 02, 2005 12:56 PM
Subject: Re: [Efi332] BDM troubles
Humm... I think I'll try switching my board back to use the built-in
interface. It would be nice to eliminate the "extra" cords, power, and
hardware.
David - are you using the parallel cable that came with the Phytec kit, or a
standard cable (I haven't tested the pins with a meter, but I seem to
remember that the cable that comes with the Phytec kit is not a standard
parallel cable)?
----- Original Message -----
From: bowtievette at aol.com
To: efi332 at diy-efi.org
Sent: Saturday, July 02, 2005 11:58 AM
Subject: Re: [Efi332] BDM troubles
The BDM interface built into the Phytec development board is functionally
identical to the wiggler interface, if not completely identical. You should
be able to connect using either interface so thats probably not your
problem.
One thing I found when investigating using gdb was that out of the box, it
did not support a parallel interface to the BDM. It only supported the
ethernet interface, so the only way I was able to get it to work was with
Macraigor's OCDemon program which essentially echoes the ethernet port
activity on the parallel port. Your gdb version may have parallel BDM
support but thats something to verify.
As a stopgap, you might try using Macraigor's OCD Commander as they have a
linux version for it. Thats probably not a final solution for you though
since it only allows assembly level debugging. But it would get you
connected so that you can load software at least. David Eicher is using
commander I think and can probably help out with initialization scripts and
such.
-----Original Message-----
From: Paul Helmuth <PaulHelmuth at SprintMail.com>
To: efi332 at diy-efi.org
Sent: Sat, 2 Jul 2005 11:11:50 -0500
Subject: Re: [Efi332] BDM troubles
I suspect (mind you, I don't have much to go on here) that your problem is
related to trying to use Phytec's "built-in" interface with anything other
than the Codewarrior software that they ship with it.
Of course, it should be possible to use that connection, but I think things
are a whole LOT "cleaner" switching to their external BDM header. At least
there you have all of the pins documented.
I use a Macraigor Wiggler to supply the BDM-to-parallel port interface and
as I mentioned in my previous email, there is a link on James' web page that
gives some direction for matching the Macraigor outputs with the Phytec
external BDM header.
The Macraigor unit has been 100% reliable for me. It's not the fastest
interface, (they also have faster ones - just more $$$) but it's pretty
inexpensive.
----- Original Message ----- From: "Doug Brunner" <doug at udel.edu
<mailto:doug%40udel.edu> >
To: <efi332 at diy-efi.org <mailto:efi332%40diy-efi.org> >
Sent: Saturday, July 02, 2005 10:51 AM
Subject: Re: [Efi332] BDM troubles
> My problems have been with GDB's support for the BDM interface. I'm >
actually using the Phytec board's internal BDM (parallel port on the >
board) rather than the 10-pin header for an external BDM, since my only >
BDM is a Tilbury unit from way back when that has been more than a little >
flaky.
>
> As I understand it, GDB needs some kind of addon to talk to a BDM via the
> parallel port. I've tried MPCBDM as discussed on James' 555 Webpage, >
running gdb 5.0 (since that's the only version I've seen the patch for) as >
root, and it doesn't seem to accomplish anything--it just hangs when I try >
to connect to the board. What has everyone else been using?
>
> --Doug Brunner
>
> Paul Helmuth wrote:
>
>> I'm (reasonably) sure everyone that has done anything with the Phytec >>
development board has used the JTAG/BDM port.
>>
>> Since you are using GDB, I assume that you are using the GCC tool chain.
>> Since you are using that, I also assume that you are using the external
>> BDM port. This means you have some BDM port interface (like a Wiggler).
>>
>> So - you need to make sure that all of your pin-outs match between your
>> BDM interface and the Phytec BDM port. As an example, two of the pins are
>> reversed between the Phytec port and my Macraigor Wiggler. I have a note
>> on James' 555 web page about that switch. Also, you need to follow >>
Phytec's bulletin on setting the development board jumpers for using the >>
external BDM port.
>>
>> Other than that, everything should work - but I haven't used these tools
>> with Linux.
>>
>> -Paul
>>
>>
>> ----- Original Message ----- From: "Doug Brunner" <doug at udel.edu
<mailto:doug%40udel.edu> >
>> To: <efi332 at diy-efi.org <mailto:efi332%40diy-efi.org> >
>> Sent: Friday, July 01, 2005 10:11 PM
>> Subject: [Efi332] BDM troubles
>>
>>
>>> I'm trying to start talking to my Phytec 555 board and having lots of
>>> trouble. It's on the Phytec development board, so I'm using their BDM,
>>> which I can't get GDB to interact with. I'm running all this under >>>
Linux.
>>>
>>> What have the rest of you been using for BDM support?
>>>
>>> --Doug Brunner
>>> _______________________________________________
>>> Efi332 mailing list
>>> Efi332 at diy-efi.org <mailto:Efi332%40diy-efi.org>
>>> http://lists.diy-efi.org/mailman/listinfo/efi332
>>>
>>
>> _______________________________________________
>> Efi332 mailing list
>> Efi332 at diy-efi.org <mailto:Efi332%40diy-efi.org>
>> http://lists.diy-efi.org/mailman/listinfo/efi332
>>
>
> _______________________________________________
> Efi332 mailing list
> Efi332 at diy-efi.org <mailto:Efi332%40diy-efi.org>
> http://lists.diy-efi.org/mailman/listinfo/efi332
>
_______________________________________________
Efi332 mailing list
Efi332 at diy-efi.org <mailto:Efi332%40diy-efi.org>
http://lists.diy-efi.org/mailman/listinfo/efi332
_____
_______________________________________________
Efi332 mailing list
Efi332 at diy-efi.org
http://lists.diy-efi.org/mailman/listinfo/efi332
_____
_______________________________________________
Efi332 mailing list
Efi332 at diy-efi.org
http://lists.diy-efi.org/mailman/listinfo/efi332
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.diy-efi.org/pipermail/efi332/attachments/20050702/f30f87b7/attachment.html
More information about the Efi332
mailing list