View previous topic :: View next topic |
Author |
Message |
stefan_d6
Joined: 17 Aug 2006 Posts: 6 Location: Varna, Bulgaria
|
Debug Monitor - how does it work? |
Posted: Mon Dec 25, 2006 11:07 am |
|
|
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
|
|
Posted: Mon Dec 25, 2006 11:29 am |
|
|
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
|
Re: Debug Monitor - how does it work? |
Posted: Wed Dec 27, 2006 3:11 pm |
|
|
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
|
|
Posted: Wed Dec 27, 2006 3:42 pm |
|
|
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
|
|
Posted: Wed Dec 27, 2006 3:57 pm |
|
|
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... |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Wed Dec 27, 2006 4:08 pm |
|
|
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). |
|
|
|