|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||||
|
||||||
|
printf's not displaying in Terminal Window?
So we have a situation where our printf statements suddenly do not appear in the IFI Loader terminal window even though they compile within the MPLAB code. Does anyone have any "oh duh" solutions?
We do have #include <stdio.h> in both user_routines.c and user_routines_fast.c. I'm using Kevin Watson's "serial_ports.c" code. Thanks, |
|
#2
|
||||
|
||||
|
Re: printf's not displaying in Terminal Window?
Our team has been having this trouble too... At least on a branch from our main code. Although in one case we were in disabled mode where there were no printouts. Check if you get the IFI> message when you go into program state. That should tell you whether it's the code's fault.
|
|
#3
|
||||||
|
||||||
|
Re: printf's not displaying in Terminal Window?
Well I figured out my problem. Sorry to waste the bandwidth!
In deleting Kevin's camera code from the project, I removed a #define which enabled the programming port for serial data comms (including printf). Adding the define back in fixed the problem. |
|
#4
|
|||||
|
|||||
|
Re: printf's not displaying in Terminal Window?
Yeah, I spent an hour chasing down that one, too. A macro like this has three states:
Code:
#ifdef ENABLE_SERIAL_PORT_ONE_TX That's why I prefer using Code:
#if ENABLE_SERIAL_PORT_ONE_TX |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Terminal window freezing? | Alan Anderson | Programming | 6 | 04-02-2008 10:11 |
| Terminal Window | teh_pwnerer795 | Programming | 1 | 02-01-2007 00:21 |
| Website not Displaying in IE | aubinhick990 | Website Design/Showcase | 10 | 08-05-2006 17:27 |
| Terminal Window | Idaman323 | Programming | 0 | 20-02-2006 19:28 |
| Is Terminal Window Evil? | Fat Alex | Programming | 1 | 20-07-2004 10:57 |