Debugging - Mike Martin - Jul 12 2:00:29 2008
Hello All
Can anyone please tell me how debugging is done. I've looked in the on-
line manual but it looks like old information (the diagrams are of the
version 5 compiler I think). I'm trying to following the examples in
Dennis' book. As the objects in the newer compiler are arranged
differently I'm experimenting but to no avail. When I attempt to change
the value of the node object I just get an error "Error opening Comm0 -
Invalid port number" What am I doing wrong?
I'm using an OOPic C III+, version 6.11 compiler and using a parallel
cable to download.
TIA
Mike M.
------------------------------------

(You need to be a member of oopic -- send a blank email to oopic-subscribe@yahoogroups.com )
Re: Debugging - Andrew Porrett - Jul 12 2:04:29 2008
At 02:00 AM 7/12/2008, Mike Martin wrote:
>Hello All
>Can anyone please tell me how debugging is done. I've looked in the on-
>line manual but it looks like old information (the diagrams are of the
>version 5 compiler I think). I'm trying to following the examples in
>Dennis' book. As the objects in the newer compiler are arranged
>differently I'm experimenting but to no avail. When I attempt to change
>the value of the node object I just get an error "Error opening Comm0 -
>Invalid port number" What am I doing wrong?
You're not using a serial cable? That would be my guess. You can't
debug with a parallel cable.
>I'm using an OOPic C III+, version 6.11 compiler and using a parallel
>cable to download.
>
>TIA
>Mike M.
------------------------------------

(You need to be a member of oopic -- send a blank email to oopic-subscribe@yahoogroups.com )
Re: Debugging - Mike Martin - Jul 12 2:09:12 2008
OK, thanks. That makes sense. Obvious when you think about it (slaps
forehead) - I'm very new to this.
--- In o...@yahoogroups.com, Andrew Porrett
wrote:
>
> At 02:00 AM 7/12/2008, Mike Martin wrote:
> >Hello All
> >Can anyone please tell me how debugging is done. I've looked in
the on-
> >line manual but it looks like old information (the diagrams are of
the
> >version 5 compiler I think). I'm trying to following the examples
in
> >Dennis' book. As the objects in the newer compiler are arranged
> >differently I'm experimenting but to no avail. When I attempt to
change
> >the value of the node object I just get an error "Error opening
Comm0 -
> >Invalid port number" What am I doing wrong?
>
> You're not using a serial cable? That would be my guess. You
can't
> debug with a parallel cable.
> >I'm using an OOPic C III+, version 6.11 compiler and using a
parallel
> >cable to download.
> >
> >TIA
> >Mike M.
>
------------------------------------

(You need to be a member of oopic -- send a blank email to oopic-subscribe@yahoogroups.com )Re: Re: Debugging - Andrew Porrett - Jul 12 2:18:46 2008
At 02:09 AM 7/12/2008, Mike Martin wrote:
>OK, thanks. That makes sense. Obvious when you think about it (slaps
>forehead) - I'm very new to this.
Doh! :)
Yeah, the parallel cable only talks to the EEPROM. You need to talk
to the micro to do debugging.
...Andy
------------------------------------

(You need to be a member of oopic -- send a blank email to oopic-subscribe@yahoogroups.com )
Re: Debugging - Mike Martin - Jul 12 2:25:39 2008
How can I achieve that? I have a usb to serial converter but I'm not
sure about the pinouts for a serial cable - is there a diagram
anywhere - and do you think the usb converter will interfere/work?
--- In o...@yahoogroups.com, Andrew Porrett
wrote:
>
> At 02:09 AM 7/12/2008, Mike Martin wrote:
> >OK, thanks. That makes sense. Obvious when you think about it (slaps
> >forehead) - I'm very new to this.
>
> Doh! :)
>
> Yeah, the parallel cable only talks to the EEPROM. You need to talk
> to the micro to do debugging.
> ...Andy
>
------------------------------------

(You need to be a member of oopic -- send a blank email to oopic-subscribe@yahoogroups.com )Re: Debugging - rtstofer - Jul 12 10:32:39 2008
--- In o...@yahoogroups.com, "Mike Martin"
wrote:
>
> How can I achieve that? I have a usb to serial converter but I'm not
> sure about the pinouts for a serial cable - is there a diagram
> anywhere - and do you think the usb converter will interfere/work?
The C module has the same half-hearted attempt to do level shifting
that the R board uses. Most often, this will work with a USB->Serial
cable just fine. You can check the following information by referring
to the C module and R board schematics and working through the
connections.
Transmit data comes out of the module on pin 1, receive comes into the
module on pin 2. Ground is on pin 4.
You need to connect these to a female DB-9 connector. Transmit data
goes to pin 2 of the DB-9, receive data goes to pin 3. Ground goes to
pin 5.
Finally, make sure your USB COM port is in a range acceptable to the
IDE. I'm not on a Windows box at the moment so I can't check the
range. If necessary, use Device Manager on Windows to reassign the
COM port.
Richard
------------------------------------

(You need to be a member of oopic -- send a blank email to oopic-subscribe@yahoogroups.com )Re: Debugging - Mike Martin - Jul 13 23:05:44 2008
Thanks for the replies so far. I'm still curious about the debugging
using the parallel cable. I have an OOPic S board (III+). Attaching
the cable to the networking connector as suggested in the book only
gives an error - can't open Comm0.
--- In o...@yahoogroups.com, "rtstofer"
wrote:
>
> --- In o...@yahoogroups.com, "Mike Martin" wrote:
> >
> > How can I achieve that? I have a usb to serial converter but I'm
not
> > sure about the pinouts for a serial cable - is there a diagram
> > anywhere - and do you think the usb converter will interfere/work?
>
> The C module has the same half-hearted attempt to do level shifting
> that the R board uses. Most often, this will work with a USB-
>Serial
> cable just fine. You can check the following information by
referring
> to the C module and R board schematics and working through the
> connections.
>
> Transmit data comes out of the module on pin 1, receive comes into
the
> module on pin 2. Ground is on pin 4.
>
> You need to connect these to a female DB-9 connector. Transmit data
> goes to pin 2 of the DB-9, receive data goes to pin 3. Ground goes
to
> pin 5.
>
> Finally, make sure your USB COM port is in a range acceptable to the
> IDE. I'm not on a Windows box at the moment so I can't check the
> range. If necessary, use Device Manager on Windows to reassign the
> COM port.
>
> Richard
>
------------------------------------

(You need to be a member of oopic -- send a blank email to oopic-subscribe@yahoogroups.com )