Stuck on first attempt using MPLAB X (PICkit4)


Results 1 to 40 of 40

Threaded View

  1. #1
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,159

    Default Stuck on first attempt using MPLAB X (PICkit4)

    SOLVED: Result in post 35.

    SUMMARY:

    - no SPACES in folder and file name.
    - use IPECMD.EXE with command line options (read CommandLineReadmes in C:\MPLABX\v6.05\docs for details).
    - use W command line option when PIC is powered by programmer, this was probably the most important thing, my PIC wasn't powered.
    - use tool serial number or generic name in command line.

    -----------------------------------------------------------------------

    Trying to get a simple program working using PBP3, MPLAB X with PICKIT4 and a 16F877 on the Lab X1, but keep getting:

    make -f nbproject/Makefile-default.mk SUBPROJECTS= .build-conf
    make[1]: Entering directory 'C:/PBP3/Test_programs/Test1_16F877_LabX1'
    make[1]: *** No rule to make target '.build-subprojects', needed by '.build-conf'. Stop.
    make: *** [.build-impl] Error 2
    make[1]: Leaving directory 'C:/PBP3/Test_programs/Test1_16F877_LabX1'
    nbproject/Makefile-impl.mk:39: recipe for target '.build-impl' failed

    BUILD FAILED (exit value 2, total time: 104ms)
    .

    Code:
    REM   ASM
    REM       @ DEVICE PIC16F877, HS_OSC, WDT_OFF, PWRT_ON, BOD_ON, LVP_OFF, CPD_OFF, WRT_OFF, DEBUG_OFF, PROTECT_OFF
    REM   ENDASM
    
    #CONFIG
        __config _XT_OSC & _WDT_OFF & _WRT_ON & _BODEN_ON & _LVP_OFF  & _CPD_OFF & _PWRTE_OFF & _DEBUG_ON
    #ENDCONFIG
    
    DEFINE  OSC     20
    
    TRISD = %00000000
    
    LED0    VAR     PortD.0
    
            LOW LED0
    
    START:  HIGH    LED0
            PAUSE   500
            LOW     LED0
            GOTO    START
    
    Finish: end
    I converted ASM to CONFIG, but that didn't help. I've used that youtube video to include the compiler in MPLAB X, that went super well until I tried an example.

    Does our code have to sit in a special folder now?

    I read that PBP3 migration PDF, can't see what else I forgot. I'd really like to stick with MPLAB and not return to MCSP+.
    Last edited by Demon; - 8th April 2023 at 00:05.
    My Creality Ender 3 S1 Plus is a giant paperweight that can't even be used as a boat anchor, cause I'd be fined for polluting our waterways with electronic devices.

    Not as dumb as yesterday, but stupider than tomorrow!

Similar Threads

  1. Replies: 19
    Last Post: - 16th May 2023, 17:06
  2. My serial to parallel attempt
    By johndoug in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 4th January 2013, 04:15
  3. Upgraded to MPLAB IDE 8.14 and now I'm stuck
    By BlueHairBob in forum General
    Replies: 2
    Last Post: - 20th August 2008, 01:15
  4. MPLAB Quickbuild stuck on
    By RichardBowser in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 9th July 2006, 02:52
  5. First attempt at coding
    By bartman in forum mel PIC BASIC
    Replies: 0
    Last Post: - 10th November 2004, 17:52

Members who have read this thread : 10

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