Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

[PIC] Question regarding compiler in MPLAB X 2.15

Status
Not open for further replies.

silverwolfman

Junior Member level 1
Junior Member level 1
Joined
Feb 22, 2013
Messages
16
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Visit site
Activity points
1,408
Hi guys,

I've try to compile the AN1069 downloaded from the website, and here is what pops out from my IDE:

CLEAN SUCCESSFUL (total time: 61ms)
make -f nbproject/Makefile-default.mk SUBPROJECTS= .build-conf
make[1]: Entering directory 'C:/Users/engineer/Desktop/AN1069/AN1069.X'
make -f nbproject/Makefile-default.mk dist/default/production/AN1069.X.production.hex
make[2]: Entering directory 'C:/Users/engineer/Desktop/AN1069/AN1069.X'
make[2]: *** No rule to make target 'build/default/production/_ext/1472/AN1069.o', needed by 'dist/default/production/AN1069.X.production.hex'. Stop.
make[1]: *** [.build-conf] Error 2
make[2]: Leaving directory 'C:/Users/engineer/Desktop/AN1069/AN1069.X'
make: *** [.build-impl] Error 2
nbproject/Makefile-default.mk:75: recipe for target '.build-conf' failed
make[1]: Leaving directory 'C:/Users/ALAengineer/Desktop/AN1069/AN1069.X'
nbproject/Makefile-impl.mk:39: recipe for target '.build-impl' failed

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

Is it because the complier is not working (mpasm V5.57)? Or maybe the IDE isn't working? I've just re-installed it not long ago.


Thanks ahead!
 
Last edited by a moderator:

I get similar errors with MPLABX 2.15 - I guess it is not converting the MPLAB project correctly

using MPLAB 8.89 with either C30 or X16 I get
Code:
Release build of project `C:\Users\bb\Downloads\AN1069\AN1069.mcp' started.
Language tool versions: xc16-as.exe v1.21, xc16-gcc.exe v1.21, xc16-ld.exe v1.21, xc16-ar.exe v1.21
Wed Jul 16 18:59:42 2014
----------------------------------------------------------------------
Make: The target "C:\Users\bb\Downloads\AN1069\AN1069.o" is out of date.
Executing: "C:\Program Files (x86)\Microchip\xc16\v1.21\bin\xc16-gcc.exe" -omf=coff -mcpu=33FJ256GP710 -x c -c "AN1069.c" -o"AN1069.o" -g -Wall
AN1069.c:52:1: error: 'TEMP_OFF' undeclared here (not in a function)
Halting build on first failure as requested.
----------------------------------------------------------------------
Release build of project `C:\Users\bb\Downloads\AN1069\AN1069.mcp' failed.
Language tool versions: xc16-as.exe v1.21, xc16-gcc.exe v1.21, xc16-ld.exe v1.21, xc16-ar.exe v1.21
Wed Jul 16 18:59:42 2014

if I replace
Code:
_FOSCSEL(FNOSC_PRIPLL & IESO_OFF & TEMP_OFF);   //Prim. Osc (XT, HS, EC) w/ PLL, Two speed osc off, Temp protect off
with
Code:
_FOSCSEL(FNOSC_PRIPLL & IESO_OFF);  // & TEMP_OFF);   //Prim. Osc (XT, HS, EC) w/ PLL, Two speed osc off, Temp protect off
removing TEMP_OFF it builds OK
 
Hi horse1,
Thank you so much! Yes, I guess the compiler is not working correctly. I try to change to C30 complier under Mplab X and change the code that you suggested as well, and it works.

Thanks again for the kind help!
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top