tomcuga
Joined: 12 Jul 2007 Posts: 15
|
pickit2 as a debuger on 16F876 |
Posted: Thu Jul 12, 2007 1:08 am |
|
|
Do anyone have any experience with PicKit2 as a debuger tool?
I have a simple led blinking program written in CCS (v4.038) for PIC16F876A which I programmed with PicKit2 from Mplab (v7.61a) and this works OK, but when I want to debug the program Mplab always returns an error "Unable to enter debug mode".
I have set the debug bit in config word with>
#fuses DEBUG
I have also 4K7 pulldown resistors on PGD and PGC line like Microchip suggest.
I have the latest firmware in PicKit2.
I also try to reserve the last 256 words in program memory with>
#org 0x1F00,0x1FFF {}
But still no luck with debug
Any idea?
Thanks!
|
|