Using MPLAB 6.6 and MCC18 2.4; default code FrcCode2005v2.4
I made 2 changes to the project to run using the simulator:
- I removed macro definition _USE_CMU_CAMERA
- 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 */
- How do I fix the warning?
- 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