View previous topic :: View next topic |
Author |
Message |
ajt
Joined: 07 Sep 2003 Posts: 110
|
RS232 Debugger |
Posted: Tue Mar 22, 2011 2:30 pm |
|
|
Working with a PIC18LF452 using v4.114. I have RB5 connected to the PGM line on the ICD-64. Included is:
#use rs232(DEBUGGER,xmit=PIN_B5,rcv=PIN_B5).
A simple printf("xyz\r\n"); does not show up on the debug monitor. Had to resort to using a "real" serial port and printf's working as expected that way.
Is this a bug in the IDE/compiler? Is there a workaround? _________________ Al Testani |
|
![](templates/subSilver/images/spacer.gif) |
temtronic
Joined: 01 Jul 2010 Posts: 9174 Location: Greensville,Ontario
|
|
Posted: Tue Mar 22, 2011 2:50 pm |
|
|
is this allowable ?
#use rs232(DEBUGGER,xmit=PIN_B5,rcv=PIN_B5).
-----------------------------------------| and -------|
both xmit and rcv on the same pin ? |
|
![](templates/subSilver/images/spacer.gif) |
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Tue Mar 22, 2011 4:05 pm |
|
|
I don't have the CCS debugger or their IDE, so I can't test this, but
according to this thread here, the serial debugger channel only works
if the target PIC has a Vdd voltage greater than 3.1 volts:
http://www.ccsinfo.com/forum/viewtopic.php?t=29499
I note that you're using the "LF" package. What's your Vdd ?
Temtronic: Yes, the CCS manual says they should both be the same
pin for the Debugger serial channel. |
|
![](templates/subSilver/images/spacer.gif) |
|