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

Mpsim problem with printing output....

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








Mpsim problem with printing output....
PostPosted: Thu Jul 10, 2008 11:16 am     Reply with quote

I trying to run this small sample in MPSIM(microchip simulator), but I cant get it to display the output, howto?

The small test program, compile without any error!!!

Code:
//test program
char ver[] = "ver1.0";

struct _swpos
{
char up[5];
char down[5];
}const swpos ={"up  ","down"};

void main()
{
  while(1)
  {
   printf("ver: %s",ver);
   printf("swpos.up: %s",swpos.up);
  }
}
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Thu Jul 10, 2008 11:25 am     Reply with quote

See this post for instructions on how to use the "UART1" feature of
the MPLAB simulator to display printf output in MPLAB:
http://www.ccsinfo.com/forum/viewtopic.php?t=23408&start=1
Guest








PostPosted: Fri Jul 11, 2008 7:13 am     Reply with quote

Hi

Thanks for support.

Another problem is, I cant use the F7/F8(step/step into/step out) on "printf" statements, but it work if I use F9(run) it work. The "step" is working on normal statement, as loop and so on.

Is there other simulator out there? I think MPLAP sim is poor.

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