• AVR Freaks

Hot!I have make[2]: *** [build/default/production/Pic.o] Error 1

Author
Асем
New Member
  • Total Posts : 2
  • Reward points : 0
  • Joined: 2020/06/20 11:31:17
  • Location: 0
  • Status: offline
2020/06/27 08:38:29 (permalink)
0

I have make[2]: *** [build/default/production/Pic.o] Error 1

Hi guys 
          LIST P=PIC16F84A
            __CONFIG H3FF1

STATUS EQU H0003
PORTB EQU H0006
TRISB EQU H0006
Reg_1 EQU H000C
Reg_2 EQU H000D
Reg_3 EQU H000E

            org 0 ;
;
            bsf STATUS,5 ;
            clrf TRISB
            bcf STATUS,5 ;
;
m1 movlw b11111111 ;
            movwf PORTB ;
            call Pause ;
            clrf PORTB ;
            call Pause ;
            goto m1


;delay = 500000 machine cycles
Pause movlw .85
            movwf Reg_1
            movlw .138
            movwf Reg_2
            movlw .3
            movwf Reg_3
wr decfsz Reg_1, F
            goto wr
            decfsz Reg_2, F
            goto wr
            decfsz Reg_3, F
            goto wr
           
            return

            end ;

CLEAN SUCCESSFUL (total time: 111ms)
make -f nbproject/Makefile-default.mk SUBPROJECTS= .build-conf
make[1]: Entering directory 'C:/Users/Admin/MPLABXProjects/Proj.X'
make -f nbproject/Makefile-default.mk dist/default/production/Proj.X.production.Elf
make[2]: Entering directory 'C:/Users/Admin/MPLABXProjects/Proj.X'
"C:\MPASMWIN520\MPASMWIN.exe" Pic.asm
nbproject/Makefile-default.mk:104: recipe for target 'build/default/production/Pic.o' failed
make[2]: Leaving directory 'C:/Users/Admin/MPLABXProjects/Proj.X'
nbproject/Makefile-default.mk:91: recipe for target '.build-conf' failed
make[1]: Leaving directory 'C:/Users/Admin/MPLABXProjects/Proj.X'
nbproject/Makefile-impl.mk:39: recipe for target '.build-impl' failed
make[2]: *** [build/default/production/Pic.o] Error 1
make[1]: *** [.build-conf] Error 2
make: *** [.build-impl] Error 2
BUILD FAILED (exit value 2, total time: 12s)
#1

3 Replies Related Threads

    ric
    Super Member
    • Total Posts : 28024
    • Reward points : 0
    • Joined: 2003/11/07 12:41:26
    • Location: Australia, Melbourne
    • Status: online
    Re: I have make[2]: *** [build/default/production/Pic.o] Error 1 2020/06/29 19:15:44 (permalink)
    5 (1)
    I'm surprised it's not displaying an error for the actual line that failed.
    I would assume this line is at fault
    m1 movlw b11111111 ; 

    Try:
    m1 movlw b'11111111' ; 

     
    Do you really have to use this 24 year old PIC?
    there are much nicer, CHEAPER, PIC16F devices available now.
     

    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!
    #2
    1and0
    Access is Denied
    • Total Posts : 11000
    • Reward points : 0
    • Joined: 2007/05/06 12:03:20
    • Location: Harry's Gray Matter
    • Status: offline
    Re: I have make[2]: *** [build/default/production/Pic.o] Error 1 2020/06/29 20:07:08 (permalink)
    0
    ... and all these hex values:
    Асем
     

                __CONFIG H3FF1

    STATUS EQU H0003
    PORTB EQU H0006
    TRISB EQU H0006
    Reg_1 EQU H000C
    Reg_2 EQU H000D
    Reg_3 EQU H000E

     



    #3
    ric
    Super Member
    • Total Posts : 28024
    • Reward points : 0
    • Joined: 2003/11/07 12:41:26
    • Location: Australia, Melbourne
    • Status: online
    Re: I have make[2]: *** [build/default/production/Pic.o] Error 1 2020/06/29 20:15:25 (permalink)
    0
    Indeed.
    Change:
    STATUS EQU H0003
    PORTB EQU H0006
    TRISB EQU H0006

    to
        #include <p16F84A.inc>        ; processor specific variable definitions

    Change:
                __CONFIG H3FF1

    to
                __CONFIG H'3FF1'

    or even
        __CONFIG   _CP_OFF & _WDT_OFF & _PWRTE_ON & _XT_OSC


    and
    Reg_1 EQU H000C
    Reg_2 EQU H000D
    Reg_3 EQU H000E

    to
    Reg_1 EQU H'000C'
    Reg_2 EQU H'000D'
    Reg_3 EQU H'000E'

    or
    Reg_1 EQU 0x000C
    Reg_2 EQU 0x000D
    Reg_3 EQU 0x000E

     

    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!
    #4
    Jump to:
    © 2020 APG vNext Commercial Version 4.5