Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
When I first started trying to use the debugger I got that all the time. I don't exactly know what I changed to make it work, but I almost never see that error anymore and debugging works great.UTMonkey said:I have been debugging my 18F2550 quite happily over the past few days and tonight it just won't debug.
I get the PK2Error0028 message "Cannot enter debug mode"
It appear to program\erase OK.
Any ideas?
;*** Unicorn 18F4550 crystal test
; Requires Inchworm or Junebug debugger
; Open a Watch window and "Add SFR / OSCCON"
; Make sure MPLAB 8.01 is in Debug mode
; Build All, Program, then Animate
; OSCCON = 0x48 crystal OK
; OSCCON = 0x44 crystal failed
list p=18F4550
include <p18F4550.inc>
CONFIG FOSC = HSPLL_HS, WDT = OFF, LVP = OFF
CONFIG FCMEN = ON, IESO = ON, PBADEN = OFF
CONFIG PLLDIV = 5, CPUDIV = OSC1_PLL2
org 0
loop nop
bra loop
END
UTMonkey said:any good at I2c?
(C&P from a post in the microchip forums)Config words that enable the WDT (watchdog), PWRTE (power up timer) or disable /MCLR are INCOMPATIBLE with debugging."
#pragma config OSC = HS, WDT = OFF, LVP = OFF