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

debugger ignoring step/stepovers.

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



Joined: 19 Feb 2004
Posts: 23

View user's profile Send private message

debugger ignoring step/stepovers.
PostPosted: Tue Oct 28, 2008 12:13 pm     Reply with quote

Using PCWH version 4.030 ( yes old).
I'm having two problems that I cannot explain in the code snippets below.

These comments do not apply to the Printf(lcd_putc... lines ont he standard RS232 printF(".. code

I do a "run to cursor" on any statement including the printf. But once stopped, I cannot just "step" or "step overs" those printf statements to trace problems. The program starts to run from that point (printf) and keeps going. I can single step on the delays and output steps but not the printfs. Any ideas.

Also the statement
Code:
 printf ("Minute = %3ld  \r", Min_cntr );

executes fine - good putout
but the statement in another routine
Code:
   printf ("!STAT %3ld, %3ld, [%3ld, *, 0.00488] \r", Min_cntr, ADv, ADv);

does not execute - jumps over with no output.

Code:

//***********************************************************
// At the end of each minute the LCD is updated and minute counter
// is sent to the Debug Screen
//
void  Display_Minute(void)
{
   // first output to LCD
   lcd_gotoxy (1, 1);
   printf(lcd_putc, "Minute = %3ld:%2d     ", Min_cntr, sec_cntr);
   
   // Then output to Splot
   printf ("Minute = %3ld  \r", Min_cntr ); // Send Minute counter to Debug
}


//***********************************************************

void out_Stampplot(void) 
{
   output_high(_led_fail);
   delay_ms(10);
// send data for Message display
   printf ("!STAT %3ld, %3ld, [%3ld, *, 0.00488] \r", Min_cntr, ADv, ADv);

// send data for graph
   printf ("!ACHN 3,[ %3ld, *, 0.00488] ,(Black) \r", ADv);
   printf ("!ACHN 0,[ %3ld, *, 0.00488] ,(GREEN) \r", ADmax);
   printf ("!ACHN 1,[ %3ld, *, 0.00488] ,(RED)   \r", ADmin);

// printf ("!ACHN 0,", DEC Val1, ",(BLACK) \r");
   output_low(_led_fail);
}
sadlpx



Joined: 19 Feb 2004
Posts: 23

View user's profile Send private message

PostPosted: Tue Oct 28, 2008 12:18 pm     Reply with quote

Can it be a simple as not having
#include stdio.h
#include string.h

Am I that old/forgetful/dumb?????
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