• AVR Freaks

Hot!updated mplab

Page: 12 > Showing page 1 of 2
Author
kurt
Senior Member
  • Total Posts : 121
  • Reward points : 0
  • Joined: 2017/05/07 13:18:17
  • Location: 0
  • Status: offline
2020/07/13 14:00:31 (permalink)
5 (1)

updated mplab

hello,
 
on my old computer i had a program which worked good,  but my laptop broke so i installed mplab on another laptop 
but now my program has some errors,  if i click built project,  it has some issues.  something with  'bit'  if i click on it directs me to a variable ( see red A in attachements)
 
it's been a long time for me that i worked on mplab,  can anyone help me

Attached Image(s)

#1

27 Replies Related Threads

    jtemples
    عُضْوٌ جَدِيد
    • Total Posts : 11936
    • Reward points : 0
    • Joined: 2004/02/13 12:31:19
    • Location: Southern California
    • Status: offline
    Re: updated mplab 2020/07/13 15:06:41 (permalink)
    +2 (2)
    I'm guessing you were building this with an older compiler?  Switch back to that compiler or look at the migration document.
    #2
    ric
    Super Member
    • Total Posts : 28009
    • Reward points : 0
    • Joined: 2003/11/07 12:41:26
    • Location: Australia, Melbourne
    • Status: online
    Re: updated mplab 2020/07/13 15:43:22 (permalink)
    +3 (3)
    As jtemples stated, it is the new compiler causing the problem, not the IDE.
    Presumably you were using XC8 v1.xx previously, and you have just downloaded XC8 v2.10.
    v2.xx defaults to "C99" mode. You need to go into your project properties, and switch the compiler from "C99" to "C90" mode to support your older source code.
     
    (The big differences that have caught you out are, "bit" is now "__bit", and the interrupt syntax has changed.)
     

    I also post at: PicForum
    Links to useful PIC information: http://picforum.ric323.co...opic.php?f=59&t=15
    NEW USERS: Posting images, links and code - workaround for restrictions.
    To get a useful answer, always state which PIC you are using!
    #3
    Gort2015
    Klaatu Barada Nikto
    • Total Posts : 3984
    • Reward points : 0
    • Joined: 2015/04/30 10:49:57
    • Location: 0
    • Status: offline
    Re: updated mplab 2020/07/13 17:02:52 (permalink)
    -3 (3)
    The first image lists some errors that will probably fix it.
     
    Expected ';'
    In Low Priority ISR.

    MPLab X playing up, bug in your code? Nevermind, Star Trek:Discovery will be with us soon.
    https://www.youtube.com/watch?v=Iu1qa8N2ID0
    + ST:Continues, "What Ships are Made for", Q's back.
    #4
    ric
    Super Member
    • Total Posts : 28009
    • Reward points : 0
    • Joined: 2003/11/07 12:41:26
    • Location: Australia, Melbourne
    • Status: online
    Re: updated mplab 2020/07/13 17:21:31 (permalink)
    +2 (2)
    Gort2015
    The first image lists some errors that will probably fix it.
     
    Expected ';'
    In Low Priority ISR.

    What is your point?
    All the errors are due to using C99 mode on code written in C90 syntax, as already mentioned.
     

    I also post at: PicForum
    Links to useful PIC information: http://picforum.ric323.co...opic.php?f=59&t=15
    NEW USERS: Posting images, links and code - workaround for restrictions.
    To get a useful answer, always state which PIC you are using!
    #5
    Gort2015
    Klaatu Barada Nikto
    • Total Posts : 3984
    • Reward points : 0
    • Joined: 2015/04/30 10:49:57
    • Location: 0
    • Status: offline
    Re: updated mplab 2020/07/13 18:19:27 (permalink)
    -1 (3)
    I expressed my opinion after looking at the first image.
    You didn't need to say, "What is you your point ?"

    MPLab X playing up, bug in your code? Nevermind, Star Trek:Discovery will be with us soon.
    https://www.youtube.com/watch?v=Iu1qa8N2ID0
    + ST:Continues, "What Ships are Made for", Q's back.
    #6
    ric
    Super Member
    • Total Posts : 28009
    • Reward points : 0
    • Joined: 2003/11/07 12:41:26
    • Location: Australia, Melbourne
    • Status: online
    Re: updated mplab 2020/07/13 18:24:40 (permalink)
    +3 (5)
    Yes I do, if the correct answer has already been offered, then you chime in with irrelevant suggestions, confusing the issue.
    Try reading the rest of the posts in the thread before just blindly replying.
     

    I also post at: PicForum
    Links to useful PIC information: http://picforum.ric323.co...opic.php?f=59&t=15
    NEW USERS: Posting images, links and code - workaround for restrictions.
    To get a useful answer, always state which PIC you are using!
    #7
    Gort2015
    Klaatu Barada Nikto
    • Total Posts : 3984
    • Reward points : 0
    • Joined: 2015/04/30 10:49:57
    • Location: 0
    • Status: offline
    Re: updated mplab 2020/07/13 18:38:04 (permalink)
    0 (2)
    Yes Sir!

    MPLab X playing up, bug in your code? Nevermind, Star Trek:Discovery will be with us soon.
    https://www.youtube.com/watch?v=Iu1qa8N2ID0
    + ST:Continues, "What Ships are Made for", Q's back.
    #8
    kurt
    Senior Member
    • Total Posts : 121
    • Reward points : 0
    • Joined: 2017/05/07 13:18:17
    • Location: 0
    • Status: offline
    Re: updated mplab 2020/07/13 23:44:27 (permalink)
    +1 (1)
    yes
     
    thanks,  i did some adjustments to the compiler,  a lot of errors are gone
    there are only 2 left,  (see attachement) 
     
    can you also help me with those
     
    thanks

    Attached Image(s)

    #9
    ric
    Super Member
    • Total Posts : 28009
    • Reward points : 0
    • Joined: 2003/11/07 12:41:26
    • Location: Australia, Melbourne
    • Status: online
    Re: updated mplab 2020/07/13 23:50:36 (permalink)
    +3 (3)
    The important part of the error message is truncated off the right of the screen.
    Please paste the actual text from the entire build log, not a screen capture.

    I also post at: PicForum
    Links to useful PIC information: http://picforum.ric323.co...opic.php?f=59&t=15
    NEW USERS: Posting images, links and code - workaround for restrictions.
    To get a useful answer, always state which PIC you are using!
    #10
    kurt
    Senior Member
    • Total Posts : 121
    • Reward points : 0
    • Joined: 2017/05/07 13:18:17
    • Location: 0
    • Status: offline
    Re: updated mplab 2020/07/14 02:31:47 (permalink)
    -1 (3)
    hey 
    you mean this:
     
    #
    # Generated Makefile - do not edit!
    #
    # Edit the Makefile in the project folder instead (../Makefile). Each target
    # has a -pre and a -post target defined where you can add customized code.
    #
    # This makefile implements configuration specific macros and targets.

    # Include project Makefile
    ifeq "${IGNORE_LOCAL}" "TRUE"
    # do not include local makefile. User is passing all local related variables already
    else
    include Makefile
    # Include makefile containing local settings
    ifeq "$(wildcard nbproject/Makefile-local-default.mk)" "nbproject/Makefile-local-default.mk"
    include nbproject/Makefile-local-default.mk
    endif
    endif
    # Environment
    MKDIR=gnumkdir -p
    RM=rm -f
    MV=mv
    CP=cp
    # Macros
    CND_CONF=default
    ifeq ($(TYPE_IMAGE), DEBUG_RUN)
    IMAGE_TYPE=debug
    OUTPUT_SUFFIX=hex
    DEBUGGABLE_SUFFIX=hex
    FINAL_IMAGE=dist/${CND_CONF}/${IMAGE_TYPE}/tachometermysil06062018.${IMAGE_TYPE}.${OUTPUT_SUFFIX}
    else
    IMAGE_TYPE=production
    OUTPUT_SUFFIX=hex
    DEBUGGABLE_SUFFIX=hex
    FINAL_IMAGE=dist/${CND_CONF}/${IMAGE_TYPE}/tachometermysil06062018.${IMAGE_TYPE}.${OUTPUT_SUFFIX}
    endif
    ifeq ($(COMPARE_BUILD), true)
    COMPARISON_BUILD=
    else
    COMPARISON_BUILD=
    endif
    ifdef SUB_IMAGE_ADDRESS
    else
    SUB_IMAGE_ADDRESS_COMMAND=
    endif
    # Object Directory
    OBJECTDIR=build/${CND_CONF}/${IMAGE_TYPE}
    # Distribution Directory
    DISTDIR=dist/${CND_CONF}/${IMAGE_TYPE}
    # Source Files Quoted if spaced
    SOURCEFILES_QUOTED_IF_SPACED=Main.c Configbits.c Capture1.c Timer1.c
    # Object Files Quoted if spaced
    OBJECTFILES_QUOTED_IF_SPACED=${OBJECTDIR}/Main.o ${OBJECTDIR}/Configbits.o ${OBJECTDIR}/Capture1.o ${OBJECTDIR}/Timer1.o
    POSSIBLE_DEPFILES=${OBJECTDIR}/Main.o.d ${OBJECTDIR}/Configbits.o.d ${OBJECTDIR}/Capture1.o.d ${OBJECTDIR}/Timer1.o.d
    # Object Files
    OBJECTFILES=${OBJECTDIR}/Main.o ${OBJECTDIR}/Configbits.o ${OBJECTDIR}/Capture1.o ${OBJECTDIR}/Timer1.o
    # Source Files
    SOURCEFILES=Main.c Configbits.c Capture1.c Timer1.c
     
    CFLAGS=
    ASFLAGS=
    LDLIBSOPTIONS=
    ############# Tool locations ##########################################
    # If you copy a project from one host to another, the path where the #
    # compiler is installed may be different. #
    # If you open this project with MPLAB X in the new host, this #
    # makefile will be regenerated and the paths will be corrected. #
    #######################################################################
    # fixDeps replaces a bunch of sed/cat/printf statements that slow down the build
    FIXDEPS=fixDeps
    .build-conf: ${BUILD_SUBPROJECTS}
    ifneq ($(INFORMATION_MESSAGE), )
    @echo $(INFORMATION_MESSAGE)
    endif
    ${MAKE} -f nbproject/Makefile-default.mk dist/${CND_CONF}/${IMAGE_TYPE}/tachometermysil06062018.${IMAGE_TYPE}.${OUTPUT_SUFFIX}
    MP_PROCESSOR_OPTION=PIC18F2220
    # ------------------------------------------------------------------------------------
    # Rules for buildStep: pic-as-assembler
    ifeq ($(TYPE_IMAGE), DEBUG_RUN)
    else
    endif
    # ------------------------------------------------------------------------------------
    # Rules for buildStep: pic-as-linker
    ifeq ($(TYPE_IMAGE), DEBUG_RUN)
    dist/${CND_CONF}/${IMAGE_TYPE}/tachometermysil06062018.${IMAGE_TYPE}.${OUTPUT_SUFFIX}: ${OBJECTFILES} nbproject/Makefile-${CND_CONF}.mk
    @${MKDIR} dist/${CND_CONF}/${IMAGE_TYPE}
    ${MP_LD} -mcpu=PIC18F2220 ${OBJECTFILES_QUOTED_IF_SPACED} \
    -o dist/${CND_CONF}/${IMAGE_TYPE}/tachometermysil06062018.${IMAGE_TYPE}.${OUTPUT_SUFFIX} \
    -misa=std -msummary=+mem,-psect,-class,-hex,-file,-sha1,-sha256,-xml,-xmlfull -mcallgraph=std -mno-download-hex -gdwarf-3
    else
    dist/${CND_CONF}/${IMAGE_TYPE}/tachometermysil06062018.${IMAGE_TYPE}.${OUTPUT_SUFFIX}: ${OBJECTFILES} nbproject/Makefile-${CND_CONF}.mk
    @${MKDIR} dist/${CND_CONF}/${IMAGE_TYPE}
    ${MP_LD} -mcpu=PIC18F2220 ${OBJECTFILES_QUOTED_IF_SPACED} \
    -o dist/${CND_CONF}/${IMAGE_TYPE}/tachometermysil06062018.${IMAGE_TYPE}.${OUTPUT_SUFFIX} \
    -misa=std -msummary=+mem,-psect,-class,-hex,-file,-sha1,-sha256,-xml,-xmlfull -mcallgraph=std -mno-download-hex -gdwarf-3
    endif

    # Subprojects
    .build-subprojects:

    # Subprojects
    .clean-subprojects:
    # Clean Targets
    .clean-conf: ${CLEAN_SUBPROJECTS}
    ${RM} -r build/default
    ${RM} -r dist/default
    # Enable dependency checking
    .dep.inc: .depcheck-impl
    DEPFILES=$(shell mplabwildcard ${POSSIBLE_DEPFILES})
    ifneq (${DEPFILES},)
    include ${DEPFILES}
    endif
    #11
    ric
    Super Member
    • Total Posts : 28009
    • Reward points : 0
    • Joined: 2003/11/07 12:41:26
    • Location: Australia, Melbourne
    • Status: online
    Re: updated mplab 2020/07/14 02:42:06 (permalink)
    +2 (2)
    No, that is the makefile.
    I meant the "build log", which is the report of what happened as it was building, which is the LOWER half of your screen capture.
     

    I also post at: PicForum
    Links to useful PIC information: http://picforum.ric323.co...opic.php?f=59&t=15
    NEW USERS: Posting images, links and code - workaround for restrictions.
    To get a useful answer, always state which PIC you are using!
    #12
    kurt
    Senior Member
    • Total Posts : 121
    • Reward points : 0
    • Joined: 2017/05/07 13:18:17
    • Location: 0
    • Status: offline
    Re: updated mplab 2020/07/14 02:51:39 (permalink)
    0 (2)
    here you are

    Attached Image(s)

    #13
    ric
    Super Member
    • Total Posts : 28009
    • Reward points : 0
    • Joined: 2003/11/07 12:41:26
    • Location: Australia, Melbourne
    • Status: online
    Re: updated mplab 2020/07/14 03:05:57 (permalink)
    +3 (3)
    I did clearly ask you to paste the all TEXT, not a screen capture.
     

    I also post at: PicForum
    Links to useful PIC information: http://picforum.ric323.co...opic.php?f=59&t=15
    NEW USERS: Posting images, links and code - workaround for restrictions.
    To get a useful answer, always state which PIC you are using!
    #14
    kurt
    Senior Member
    • Total Posts : 121
    • Reward points : 0
    • Joined: 2017/05/07 13:18:17
    • Location: 0
    • Status: offline
    Re: updated mplab 2020/07/14 03:14:09 (permalink)
    +1 (1)
    sorry
     
    make -f nbproject/Makefile-default.mk SUBPROJECTS= .build-conf
    make[2]: *** No rule to make target 'build/default/production/Main.o', needed by 'dist/default/production/tachometermysil06062018.production.hex'. Stop.
    make[1]: Entering directory 'C:/Users/john/Desktop/MPLABXProjects/tachometermysil06062018'
    make -f nbproject/Makefile-default.mk dist/default/production/tachometermysil06062018.production.hex
    make[2]: Entering directory 'C:/Users/john/Desktop/MPLABXProjects/tachometermysil06062018'
    make[2]: Leaving directory 'C:/Users/john/Desktop/MPLABXProjects/tachometermysil06062018'
    nbproject/Makefile-default.mk:91: recipe for target '.build-conf' failed
    make[1]: Leaving directory 'C:/Users/john/Desktop/MPLABXProjects/tachometermysil06062018'
    nbproject/Makefile-impl.mk:39: recipe for target '.build-impl' failed
    make[1]: *** [.build-conf] Error 2
    make: *** [.build-impl] Error 2
    BUILD FAILED (exit value 2, total time: 286ms)
    #15
    kurt
    Senior Member
    • Total Posts : 121
    • Reward points : 0
    • Joined: 2017/05/07 13:18:17
    • Location: 0
    • Status: offline
    Re: updated mplab 2020/07/14 09:06:27 (permalink)
    +2 (2)
    any idea sofar
    #16
    NKurzman
    A Guy on the Net
    • Total Posts : 18858
    • Reward points : 0
    • Joined: 2008/01/16 19:33:48
    • Location: 0
    • Status: online
    Re: updated mplab 2020/07/14 11:32:20 (permalink)
    +1 (1)
    Try Clean and Build.
    #17
    kurt
    Senior Member
    • Total Posts : 121
    • Reward points : 0
    • Joined: 2017/05/07 13:18:17
    • Location: 0
    • Status: offline
    Re: updated mplab 2020/07/15 10:11:24 (permalink)
    0
    i still have the same problem, error 
     
    for the expert,  have a look at capture2.
    have a feeling that problem is there

    Attached Image(s)

    #18
    NKurzman
    A Guy on the Net
    • Total Posts : 18858
    • Reward points : 0
    • Joined: 2008/01/16 19:33:48
    • Location: 0
    • Status: online
    Re: updated mplab 2020/07/15 10:26:30 (permalink)
    +1 (1)
    Do you have a Copy of XC8 installed?
    You may want to get the version of the Compiler you used to have, and start there.
    #19
    kurt
    Senior Member
    • Total Posts : 121
    • Reward points : 0
    • Joined: 2017/05/07 13:18:17
    • Location: 0
    • Status: offline
    Re: updated mplab 2020/07/15 11:10:44 (permalink)
    0
    were can i exactly verify that (i thought it turned out from attachment)
     
    and if i have the wrong one, how /were do i get the correct one
     
    and what exactly does that error mean, it sounds more simpeler than compiler issue
    #20
    Page: 12 > Showing page 1 of 2
    Jump to:
    © 2020 APG vNext Commercial Version 4.5