Compile problem with MPLAB IDE v. 8.73


Closed Thread
Results 1 to 5 of 5
  1. #1
    Join Date
    Jul 2011
    Location
    Hawaii
    Posts
    21

    Default 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.
    Attached Files Attached Files

  2. #2
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default Re: Compile problem with MPLAB IDE v. 8.73

    Use the DT_INTS-18 version from here.

    http://www.picbasic.co.uk/forum/show...2826#post82826
    DT

  3. #3
    Join Date
    Jul 2011
    Location
    Hawaii
    Posts
    21


    Did you find this post helpful? Yes | No

    Default 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

  4. #4
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default Re: Compile problem with MPLAB IDE v. 8.73

    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  5. #5
    Join Date
    Jul 2011
    Location
    Hawaii
    Posts
    21


    Did you find this post helpful? Yes | No

    Default 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.

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts