1 Attachment(s)
Compile problem with MPLAB IDE v. 8.73
I have a test program for the 18F26J11 device where I am utilizing interrupts. The code compiles fine when using Microcode Studio and the U2 programmer. The code also works as expected. When trying to compile the same source code in MPLAB IDE v 8.73 I get the following build errors:
Executing: "c:\pbp\PBPMPLAB.BAT" -ampasmwin -k# -p18F26J11 "C:\Users\Martin\Documents\MCSP\My Programs\ZB Test\ZB_2.pbp"
Executing: "c:\PBP\PBPW.EXE" -ampasmwin -k# -p18F26J11 "C:\Users\Martin\Documents\MCSP\My Programs\ZB Test\ZB_2.pbp"
PICBASIC PRO(TM) Compiler 2.60C, (c) 1998, 2011 microEngineering Labs, Inc.
All Rights Reserved.
ERROR: Unable to execute mpasmwin.Error[116] C:\USERS\MARTIN\DOCUMENTS\MCSP\MY PROGRAMS\ZB TEST\ZB_2.ASM 767 : Address label duplicated or different in second pass (Z00044)
Error[116] C:\USERS\MARTIN\DOCUMENTS\MCSP\MY PROGRAMS\ZB TEST\ZB_2.ASM 830 : Address label duplicated or different in second pass (Z00045)
Error[116] C:\USERS\MARTIN\DOCUMENTS\MCSP\MY PROGRAMS\ZB TEST\ZB_2.ASM 883 : Address label duplicated or different in second pass (Z00046)
Error[116] C:\USERS\MARTIN\DOCUMENTS\MCSP\MY PROGRAMS\ZB TEST\ZB_2.ASM 914 : Address label duplicated or different in second pass (Z00047)
Error[116] C:\USERS\MARTIN\DOCUMENTS\MCSP\MY PROGRAMS\ZB TEST\ZB_2.ASM 767 : Address label duplicated or different in second pass (Z00044)
Error[116] C:\USERS\MARTIN\DOCUMENTS\MCSP\MY PROGRAMS\ZB TEST\ZB_2.ASM 830 : Address label duplicated or different in second pass (Z00045)
Error[116] C:\USERS\MARTIN\DOCUMENTS\MCSP\MY PROGRAMS\ZB TEST\ZB_2.ASM 883 : Address label duplicated or different in second pass (Z00046)
Error[116] C:\USERS\MARTIN\DOCUMENTS\MCSP\MY PROGRAMS\ZB TEST\ZB_2.ASM 914 : Address label duplicated or different in second pass (Z00047)
Error[116] C:\USERS\MARTIN\DOCUMENTS\MCSP\MY PROGRAMS\ZB TEST\ZB_2.ASM 767 : Address label duplicated or different in second pass (Z00044)
Error[116] C:\USERS\MARTIN\DOCUMENTS\MCSP\MY PROGRAMS\ZB TEST\ZB_2.ASM 830 : Address label duplicated or different in second pass (Z00045)
Error[116] C:\USERS\MARTIN\DOCUMENTS\MCSP\MY PROGRAMS\ZB TEST\ZB_2.ASM 883 : Address label duplicated or different in second pass (Z00046)
Error[116] C:\USERS\MARTIN\DOCUMENTS\MCSP\MY PROGRAMS\ZB TEST\ZB_2.ASM 914 : Address label duplicated or different in second pass (Z00047)
Skipping link step. Not all sources built successfully.
BUILD FAILED: Mon Jul 11 07:01:48 2011
I want to utilize MPLAB's IDE for it's debug capabilities with the MPLAB ICE 3 programmer / debugger. Any help appreciated. Source code file is attached.
Re: Compile problem with MPLAB IDE v. 8.73
Re: Compile problem with MPLAB IDE v. 8.73
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
Re: Compile problem with MPLAB IDE v. 8.73
Re: Compile problem with MPLAB IDE v. 8.73
Thanks Steve
I remember reading this thread a while back. Just did not sink in. All is working well now.