CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Does #use rs232(debugger) work?

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
pebbert9



Joined: 31 Dec 2010
Posts: 39

View user's profile Send private message

Does #use rs232(debugger) work?
PostPosted: Wed Jan 26, 2011 2:04 pm     Reply with quote

I'm trying to use the debug monitor in PCW 4.118, but as soon as it gets to the #use rs232(debugger) command, the program hangs.

the code before it is:

Code:
#include <24HJ128GP306.h>
#device ICD=TRUE
#fuses HS,NOWDT,PR
#use delay (clock=20000000)

#use rs232(debugger)


Any ideas why the command might not be completing?
Douglas Kennedy



Joined: 07 Sep 2003
Posts: 755
Location: Florida

View user's profile Send private message AIM Address

PostPosted: Thu Jan 27, 2011 11:57 am     Reply with quote

Well just in case you aren't aware of the necessary conditions.
1)You need the CCS IDE
2)The #use rs232(debugger) assumes you have pin b3 wired along with B7 B6 and MCLR and Gnd wired to your CCS programmer. Now the b7 b6 pins can be changed to other similarly functioning pins for chip programming. B3 for the debugger I/O (goes to the CCS IDE monitor screen) can also be changed at compile time.
3) the connector between your target chip and the CCS programmer needs to be short (less then 12 inches .. best at 6 inches)
4)the target chip needs a common ground with your PC ( typically the USB or the serial cable will do this for you)
5) Your target device's oscillator has to startup.
6) MCLR can't be held low by anything but the CCS programmer and it has to be able to get high on its own ( needs 47k pullup).
7) userstream enabled needs to be set to true in the debug configuration


Last edited by Douglas Kennedy on Fri Jan 28, 2011 1:52 pm; edited 1 time in total
pebbert9



Joined: 31 Dec 2010
Posts: 39

View user's profile Send private message

PostPosted: Thu Jan 27, 2011 10:47 pm     Reply with quote

I went back to look at this to determine what could be wrong. It turned out to be a setting in the debug configure window.

The "Userstream Enabled" setting was set to FALSE when it needs to be TRUE.

The default is supposed to be TRUE, but for some reason the installer didn't set it that way.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group