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

Debug Monitor - how does it work?

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



Joined: 17 Aug 2006
Posts: 6
Location: Varna, Bulgaria

View user's profile Send private message

Debug Monitor - how does it work?
PostPosted: Mon Dec 25, 2006 11:07 am     Reply with quote

Can someone explain me how to operate with Debug Monitor. I'm using ICD-U40. All connections are OK but I can only receive data from the target. How can I send data to the target. I searched the net but there is almost nothing about CCS Debug Monitor.

Last edited by stefan_d6 on Tue Dec 26, 2006 2:36 am; edited 1 time in total
jma_1



Joined: 08 Feb 2005
Posts: 147
Location: Wisconsin

View user's profile Send private message

PostPosted: Mon Dec 25, 2006 11:29 am     Reply with quote

Greetings,

Unfortunately I do not know the answer to your question. I have never used the debug monitor feature of the ICD. If you are just using the debug monitor for RS232 connections, why not use a terminal interface. If you have a TTL to RS232 converter in your application, or have spare parts sitting around, this should not be a problem. Once connected, you can log and send any data you wish.

Cheers,
JMA
Martin Berriman



Joined: 08 Dec 2005
Posts: 66
Location: UK

View user's profile Send private message

Re: Debug Monitor - how does it work?
PostPosted: Wed Dec 27, 2006 3:11 pm     Reply with quote

stefan_d6 wrote:
Can someone explain me how to operate with Debug Monitor. I'm using ICD-U40. All connections are OK but I can only receive data from the target. How can I send data to the target. I searched the net but there is almost nothing about CCS Debug Monitor.


Now I'm not certain but I always thought the clue was in the name 'Monitor' - i.e. used to monitor the target not modify the target. It is certainly possible to print strings to the monitor window from the target by setting up an RS232 stream using the term DEBUGGER.
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Wed Dec 27, 2006 3:42 pm     Reply with quote

There is a pin on the 6-pin ICD connector that's used as an extra
RS-232 channel (with a software UART) to allow the user's PIC to
send messages to the CCS IDE Windows program, where they are
displayed in a window. Pin B3 on the PIC is normally used for this.

According to CCS, this "debugger" channel (on pin B3) can also be
used to send data from the CCS IDE to the PIC. This is an extra feature.

His question is, what menu within the CCS IDE will allow him to do this ?

I don't have the CCS IDE (PCWH), so I can't answer the question.
But someone else may be able to help.
Martin Berriman



Joined: 08 Dec 2005
Posts: 66
Location: UK

View user's profile Send private message

PostPosted: Wed Dec 27, 2006 3:57 pm     Reply with quote

PCM programmer wrote:
According to CCS, this "debugger" channel (on pin B3) can also be used to send data from the CCS IDE to the PIC. This is an extra feature.

His question is, what menu within the CCS IDE will allow him to do this ?

I don't have the CCS IDE (PCWH), so I can't answer the question.
But someone else may be able to help.


Interesting, I have PCWH and according to the CCS help file:

CCS wrote:
The monitor window shows data from the target and allows entry of data to be sent to the target. This is done on the target like this:

#use RS232(DEBUGGER)
...
printf(“Test to run? “);
test=getc();

For the PIC16 ICD the B3 pin is used on the target to implement this capability. The normal ICD cable is already set up correctly for this.


Presumably the getc() then waits for the user to select the monitor window and press a key.

So PCM Programmer, do you use an ICD and if so, how do you access it? - I would be pleased if I could find a way to use my ICD-U40 for debugging without using the CCS IDE... Rolling Eyes
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Wed Dec 27, 2006 4:08 pm     Reply with quote

I use the Microchip ICD2 with MPLAB. It doesn't have this "debug"
channel feature.

I think you have to use the CCS IDE to debug with the ICD-U40.
I think the IDE is the only thing that can run it in debug mode.
(CCS has a standalone program, but it's only for using the ICD-U40
as a programmer).
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