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 support@ccsinfo.com

Print debug information to simulation console window

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



Joined: 04 Apr 2011
Posts: 4

View user's profile Send private message

Print debug information to simulation console window
PostPosted: Mon Apr 04, 2011 7:59 pm     Reply with quote

I am looking for a way to send debug information to the console when the problem is executing. I am writing code for a PIC16F690. I would like to add these debug statements inside functions so I can trace and debug the execution of the program. What I would like to see is a printf-like function that prints to STDOUT (where STDOUT is the MPLAB SIM console window).

Is there a way to do this?

Thanks
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Tue Apr 05, 2011 5:05 pm     Reply with quote

This is discussed in the Microchip MPLABX forum. It's not implemented
yet as a general feature (and may not ever be, for all I know):
http://www.microchip.com/forums/m564387.aspx
temtronic



Joined: 01 Jul 2010
Posts: 9163
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Tue Apr 05, 2011 8:16 pm     Reply with quote

If you have one spare I/O pin , why not just dump your debug data to a PC running some sort of data capture program?
Any data you want to go to the MPLAB SIM console window can easily be sent to a PC AND it will be running in the real world, in real time unlike 'simulators' that do not work correctly.
lucromain



Joined: 04 Apr 2011
Posts: 4

View user's profile Send private message

PostPosted: Wed Apr 06, 2011 8:09 am     Reply with quote

I like this idea about using a spare I/O to send debug data to an external monitor. The MCU is currently on a PCB but there is no external pin is available on any of the external connectors. I will heat up the soldering iron and make one pin available. Thanks.
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