warning: (520) function “_SomeFunctionName” is never called Setting warning level to 0 will get rid of this one Right click project > Properties > XC8 Global Options > XC8 Compiler > Warning Level = 0 warning: (1518) direct function call made with an incomplete prototype For example warning will be created for calling this code […]
Category: Issues
Window zooms when scrolling mouse wheel
We’ve had issues where scrolling the mouse wheel causes the active window to zoom / the font size to change even though ALT isn’t held. The fix: Tools > Options > Keymap > Search for “zoom” For “Zoom Text In” and “Zoom Text Out” select Clear (instead of the default “Alt+MOUSE_WHEEL_UP”/DOWN). Now select edit and […]
ICD3 Target detected – Unable to connect to the target device.
Issue: Trying to debug or program using a ICD3 with MPLAB X gives this error: Target detected Unable to connect to the target device. Cause ICD3 has previously been used with MPLAB IPE V3.xx and you are now using IPE or MPLABX V2.xx We discovered this after using IPE V3.35 and then using MPLABX & IPE V2.15. Solution […]
Inline assembly generates “error: (876) syntax error”
#asm GLOBAL _uc_asm_irq_temp GLOBAL _uc_asm_irq_temp1 //Reset timer for next rollover movff TMR0L,_uc_asm_irq_temp //read_current_timer_value (read low byte loads high byte) movff TMR0H,_uc_asm_irq_temp1 movlw 0xfb addwf _uc_asm_irq_temp,1,0 //(1 = file register, 0 = access ram) movlw 0xd8 addwfc _uc_asm_irq_temp1,1,0 //(1 = file register, 0 = access ram) movff _uc_asm_irq_temp1,TMR0H //Store new value (high byte first) movff […]
Debugger Won’t Work
"The target device is not ready for debugging. Please check your configuration bit settings and program the device before proceeding." If you device has multiple debugger connection / comm channel pins check the correct pair is selected in the configuration bits
Log Information
Go to Tools > Options > Embedded tab > Generic Settings subtab > and enable FINEST logging. Restart MPLAB X