Use the DT_INTS-18 version from here.
http://www.picbasic.co.uk/forum/show...2826#post82826
Use the DT_INTS-18 version from here.
http://www.picbasic.co.uk/forum/show...2826#post82826
DT
Thanks Darrel as this fixed the compile error problem. Now trying to figure which configuration bits are not allowing debug to work. I had to modify the 18F26J11.inc file in my PBP directory to as follows:
;************************************************* ***************
;* 18F26J11.INC *
;* *
;* By : Leonard Zerman, Jeff Schmoyer *
;* Notice : Copyright (c) 2009 microEngineering Labs, Inc. *
;* All Rights Reserved *
;* Date : 03/25/09 *
;* Version : 2.60 *
;* Notes : *
;************************************************* ***************
NOLIST
ifdef PM_USED
LIST
"Error: PM does not support this device. Use MPASM."
NOLIST
else
LIST
LIST p = 18F26J11, r = dec, w = -311, f = inhx32
INCLUDE "P18F26J11.INC" ; MPASM Header
;CONFIG XINST = OFF
;CONFIG OSC = HS
;CONFIG WDTPS = 512
CONFIG WDTEN = OFF
CONFIG STVREN = ON
CONFIG XINST = OFF
CONFIG DEBUG = ON
CONFIG CP0 = OFF
CONFIG OSC = INTOSCO
CONFIG T1DIG = ON
CONFIG LPT1OSC = ON
CONFIG FCMEN = OFF
CONFIG IESO = OFF
CONFIG WDTPS = 512
CONFIG DSWDTOSC = T1OSCREF
CONFIG RTCOSC = T1OSCREF
CONFIG DSBOREN = OFF
CONFIG DSWDTEN = OFF
CONFIG DSWDTPS = 512
CONFIG IOL1WAY = OFF
CONFIG MSSP7B_EN = MSK5
CONFIG WPEND = PAGE_WPFP
CONFIG WPCFG = OFF
CONFIG WPDIS = OFF
NOLIST
endif
LIST
BLOCK_SIZE EQU 64
This was the only way I could set the configuration bit to my liking although MPLAB ICE is giving me :
ICD3Err0040: The target device is not ready for debugging.
Please check your configuration bit settings and program
the device before proceeding.
Not sure which configuration setting or settings I have improperly set up for debug to work.
- Martin
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Thanks Steve
I remember reading this thread a while back. Just did not sink in. All is working well now.
Bookmarks