View previous topic :: View next topic |
Author |
Message |
Guest
|
Mpsim problem with printing output.... |
Posted: Thu Jul 10, 2008 11:16 am |
|
|
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
|
|
|
Guest
|
|
Posted: Fri Jul 11, 2008 7:13 am |
|
|
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. |
|
|
|