|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Default Code and printf
Using MPLAB 6.6 and MCC18 2.4; default code FrcCode2005v2.4
I made 2 changes to the project to run using the simulator: 1. I removed macro definition _USE_CMU_CAMERA 2. I added macro definition _SIMULATOR I get the following warnings: user_routines.c:183:Warning [2066] type qualifier mismatch in assignment user_routines.c:266:Warning [2066] type qualifier mismatch in assignment Both are printf statements: ----- Serial_Driver_Initialize(); printf("IFI 2005 User Processor Initialized ...\r"); /* Optional - Print initialization message. */ ----- /* Add your own code here. (a printf will not be displayed when connected to the breaker panel unless a Y cable is used) */ printf("Port1 Y %3d, X %3d, Fire %d, Top %d\r",(int)p1_y,(int)p1_x,(int)p1_sw_trig,(int)p1_ sw_top); /* printf EXAMPLE */ ----- 1. How do I fix the warning? 2. How do I output "Hello World" (or anything) to the output window? The only output I receive when I run the program is: UART-W0006: Receive file has no data or failed to attach when UART receive mode Enabled. UART-W0006: Receive file has no data or failed to attach when UART receive mode Enabled. UART-W0006: Receive file has no data or failed to attach when UART receive mode Enabled. Thanks, David |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| 2005 default code won't compile | Robby | Programming | 22 | 04-02-2005 18:21 |
| New Serial Port Driver | Kevin Watson | Programming | 16 | 09-01-2005 01:56 |
| What Features Should the Default Code REALLY include? | Joe Johnson | Programming | 30 | 29-04-2004 22:39 |
| Need help with my code | jaywion | Programming | 9 | 20-03-2004 11:32 |
| Strange IR sensor movement with default tracker code | wun | Programming | 5 | 19-03-2004 10:51 |