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

ICD-U40 debug - gets/printf

 
Post new topic   Reply to topic    CCS Forum Index -> CCS ICD / Mach X / Load-n-Go
View previous topic :: View next topic  
Author Message
schmez



Joined: 14 Jun 2011
Posts: 24
Location: St. Louis

View user's profile Send private message Send e-mail

ICD-U40 debug - gets/printf
PostPosted: Sun Apr 15, 2012 3:20 pm     Reply with quote

I am trying to debug using the ICD-U40 on a PIC16F690 - all works in debugger but the "Monitor" section does not seem to work. I have the "#use RS232(DEBUGGER)" set and nothing shows in the monitor and it does not allow me to send characters as well - I cannot find any good documentation on using the debugger in the PCW.
Thanks.
schmez



Joined: 14 Jun 2011
Posts: 24
Location: St. Louis

View user's profile Send private message Send e-mail

Sample code being tested
PostPosted: Tue Apr 17, 2012 10:28 am     Reply with quote

Here is a sample code I am testing - it will not show Hello World in the monitor window in the PCW software debugger:

#include <16F690.h>
#device adc=16

#FUSES NOWDT //No Watch Dog Timer
#FUSES HS //High speed Osc (> 4mhz for PCM/PCH) (>10mhz for PCD)
#FUSES NOBROWNOUT //No brownout reset

#use delay(clock=20000000)

#include <stdio.h>

#include <string.h>
#use rs232(DEBUGGER)

main()
{
printf("Hello World \n\r");

while(1);
}
schmez



Joined: 14 Jun 2011
Posts: 24
Location: St. Louis

View user's profile Send private message Send e-mail

B3 is not supported in 16F690
PostPosted: Fri Apr 20, 2012 12:49 pm     Reply with quote

Have to connect wire from pin 6 of J2 on header to a xmit pin on emulator.

For example:
#use RS232(DEBUGGER, xmit=PIN_B7, RCV=PIN_B7)

Pin B7 on the header emulator was connected to pin 6 of J2 (the RJ45 plug for the debugger).
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> CCS ICD / Mach X / Load-n-Go 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