MPLAB project building

190 views
Skip to first unread message

zuhaib umar Khanzada

unread,
Mar 14, 2012, 5:41:40 AM3/14/12
to uavde...@googlegroups.com
Hi all,
I am getting following MPLAB build problem with UDB 2 project file ,although it works good for UDB4 project , what might be the possible reason please..
Regards,
Z U Khanzada
 
Make: The target "C:\Flight softwares\Copy of UDB2 std GPS MatrixPilot_3_2_1\MatrixPilot\build\udb\config_tests.o" is up to date.

Make: The target "C:\Flight softwares\Copy of UDB2 std GPS MatrixPilot_3_2_1\MatrixPilot\build\udb\background.o" is up to date.

Make: The target "C:\Flight softwares\Copy of UDB2 std GPS MatrixPilot_3_2_1\MatrixPilot\build\udb\behavior.o" is up to date.

Make: The target "C:\Flight softwares\Copy of UDB2 std GPS MatrixPilot_3_2_1\MatrixPilot\build\udb\cameraCntrl.o" is up to date.

Make: The target "C:\Flight softwares\Copy of UDB2 std GPS MatrixPilot_3_2_1\MatrixPilot\build\udb\main.o" is up to date.

Make: The target "C:\Flight softwares\Copy of UDB2 std GPS MatrixPilot_3_2_1\MatrixPilot\build\udb\navigate.o" is up to date.

Make: The target "C:\Flight softwares\Copy of UDB2 std GPS MatrixPilot_3_2_1\MatrixPilot\build\udb\pitchCntrl.o" is up to date.

Make: The target "C:\Flight softwares\Copy of UDB2 std GPS MatrixPilot_3_2_1\MatrixPilot\build\udb\rollCntrl.o" is up to date.

Make: The target "C:\Flight softwares\Copy of UDB2 std GPS MatrixPilot_3_2_1\MatrixPilot\build\udb\servoMix.o" is up to date.

Make: The target "C:\Flight softwares\Copy of UDB2 std GPS MatrixPilot_3_2_1\MatrixPilot\build\udb\states.o" is up to date.

Make: The target "C:\Flight softwares\Copy of UDB2 std GPS MatrixPilot_3_2_1\MatrixPilot\build\udb\yawCntrl.o" is up to date.

Make: The target "C:\Flight softwares\Copy of UDB2 std GPS MatrixPilot_3_2_1\MatrixPilot\build\udb\libUDB.o" is out of date.

Executing: "C:\Program Files\Microchip\MPLAB C30\bin\pic30-gcc.exe" -mcpu=30F4011 -x c -c   "..\libUDB\libUDB.c" -o"build/udb\libUDB.o" -I"." -g -Wall

..\libUDB\libUDB.c:36:1: warning: "_FICD" redefined

In file included from ..\libUDB\/libUDB_defines.h:52,

                 from ..\libUDB\/libUDB.h:28,

                 from ..\libUDB\/libUDB_internal.h:22,

                 from ..\libUDB\libUDB.c:22:

c:/program files/microchip/mplab c30/bin/bin/../../support/dsPIC30F/h/p30f4011.h:6387:1: warning: this is the location of the previous definition

..\libUDB\libUDB.c:47: error: syntax error before numeric constant

..\libUDB\libUDB.c:47: warning: type defaults to 'int' in declaration of '_ICD'

..\libUDB\libUDB.c:47: warning: data definition has no type or storage class

Halting build on first failure as requested.

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

Release build of project `C:\Flight softwares\Copy of UDB2 std GPS MatrixPilot_3_2_1\MatrixPilot\MatrixPilot.mcp' failed.

Language tool versions: pic30-as.exe v3.31, pic30-gcc.exe v3.31, pic30-ld.exe v3.31, pic30-ar.exe v3.31

Wed Mar 14 14:00:43 2012

Wouter van Verre

unread,
Mar 14, 2012, 5:53:30 AM3/14/12
to uavde...@googlegroups.com
A quick google search turned up this thread on DIYDrones: http://diydrones.com/forum/topics/icdwarn0020-invalid-target?id=705844
The problem you describe is dicussed at length in the comments. Maybe you can find a solution there.


Date: Wed, 14 Mar 2012 14:41:40 +0500
Subject: MPLAB project building
From: zukha...@gmail.com
To: uavde...@googlegroups.com

zuhaib umar Khanzada

unread,
Mar 14, 2012, 6:19:02 AM3/14/12
to uavde...@googlegroups.com
THANKS FOR UR ASSISTANCE
this thread  seems different to my problem highlighted below in yellow color
 
Regards
 
Z U khanzada
 
Executing: "C:\Program Files\Microchip\MPLAB C30\bin\pic30-gcc.exe" -mcpu=30F4011 -x c -c   "..\libUDB\libUDB.c" -o"build/udb\libUDB.o" -I"." -g -Wall
..\libUDB\libUDB.c:36:1: warning: "_FICD" redefined
In file included from ..\libUDB\/libUDB_defines.h:52,
                 from ..\libUDB\/libUDB.h:28,
                 from ..\libUDB\/libUDB_internal.h:22,
                 from ..\libUDB\libUDB.c:22:
c:/program files/microchip/mplab c30/bin/bin/../../support/dsPIC30F/h/p30f4011.h:6387:1: warning: this is the location of the previous definition
..\libUDB\libUDB.c:47: error: syntax error before numeric constant
..\libUDB\libUDB.c:47: warning: type defaults to 'int' in declaration of '_ICD'
..\libUDB\libUDB.c:47: warning: data definition has no type or storage class

Wouter van Verre

unread,
Mar 14, 2012, 6:25:08 AM3/14/12
to uavde...@googlegroups.com
Actually if you look at the last comment on the first page (comment by Dante). You will see this:

Executing: "C:\Archivos de programa\Microchip\MPLAB C30\bin\pic30-gcc.exe" -mcpu=30F4011 -c -x c "analog2digital.c" -o"analog2digital.o" -g -Wall
analog2digital.c:43: warning: `__no_auto_psv__' attribute directive ignored
Executing: "C:\Archivos de programa\Microchip\MPLAB C30\bin\pic30-gcc.exe" -mcpu=30F4011 -c -x c "main.c" -o"main.o" -g -Wall
main.c:15: error: syntax error before numeric constant
main.c:15: warning: type defaults to `int' in declaration of `_FICD'
main.c:15: warning: data definition has no type or storage class

Halting build on first failure as requested.
BUILD FAILED: Thu May 14 10:09:13 2009

I think that it is the same error message. In the comments on page 2 you can find some possible solutions. The issue appears to be related to the p30f4011.h/p30f4011.gld files.
Maybe you can also tell us what version of MPLAB you are using?
 
Regards,
Wouter


Date: Wed, 14 Mar 2012 15:19:02 +0500
Subject: Re: MPLAB project building

nickarsow

unread,
Mar 14, 2012, 6:37:43 AM3/14/12
to uavde...@googlegroups.com
Hi Khanzada,

Try to install one of the earliest versions of MPLAB - 8.63 or 8.76. You can download them from here - http://www.microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=1406&dDocName=en023073 . Also do use C compiller V3.30. I think this will solve the problem. If you are using the latest version of MPLAB and C compiller, this error occurs.

Best regards
Nick

Peter Hollands

unread,
Mar 14, 2012, 7:03:20 AM3/14/12
to uavde...@googlegroups.com
Zuhaib,
 
You are experiencing a known problem as witnessed in a search of the uav devboard discussion group.
Have a look at these threads.
 
From those threads you can see that you can:-
  • Use  MP3.2.1 and use an earlier compiler / MPLAB combination
  • Use MP3.2.1 and make a code change
  • The problem is solved in MP trunk in repository. (although using trunk has risks for your plane in terms of using new code).
    So this problem does not occur for users of trunk. Trunk will eventually migrate to MKP 3.3 when it is released.
Best regards, Pete

zuhaib umar Khanzada

unread,
Mar 15, 2012, 1:30:43 AM3/15/12
to uavde...@googlegroups.com
Thanks all for ur suggestion and assistance...
I reinstalled MPLAB 8_43 and compiler v3_30 and it is working for me but I am getting following error messages for Roll /pitch /Yaw demo version, kindly suggest...
 
 
Make: The target "C:\Flight softwares\MatrixPilot-3_2\RollPitchYaw\build\udb4\deadReckoning.o" is out of date.
Executing: "C:\Program Files\Microchip\MPLAB C30\rollbackBackupDirectory\C\Program Files\Microchip\MPLAB C30\bin\pic30-gcc.exe" -mcpu=30F4011 -x c -c   "..\libDCM\deadReckoning.c" -o"build/udb4\deadReckoning.o" -I"." -g -Wall
Make: The target "C:\Flight softwares\MatrixPilot-3_2\RollPitchYaw\build\udb4\eeprom_udb4.o" is out of date.
Executing: "C:\Program Files\Microchip\MPLAB C30\rollbackBackupDirectory\C\Program Files\Microchip\MPLAB C30\bin\pic30-gcc.exe" -mcpu=30F4011 -x c -c   "..\libUDB\eeprom_udb4.c" -o"build/udb4\eeprom_udb4.o" -I"." -g -Wall
..\libUDB\eeprom_udb4.c: In function 'udb_eeprom_init':
..\libUDB\eeprom_udb4.c:38: error: 'TRISGbits' undeclared (first use in this function)
..\libUDB\eeprom_udb4.c:38: error: (Each undeclared identifier is reported only once
..\libUDB\eeprom_udb4.c:38: error: for each function it appears in.)
..\libUDB\eeprom_udb4.c: In function 'bstart':
..\libUDB\eeprom_udb4.c:63: error: 'TRISGbits' undeclared (first use in this function)
..\libUDB\eeprom_udb4.c:64: error: 'PORTGbits' undeclared (first use in this function)
..\libUDB\eeprom_udb4.c: In function 'bstop':
..\libUDB\eeprom_udb4.c:81: error: 'PORTGbits' undeclared (first use in this function)
..\libUDB\eeprom_udb4.c:82: error: 'TRISGbits' undeclared (first use in this function)
..\libUDB\eeprom_udb4.c: In function 'bit_out':
..\libUDB\eeprom_udb4.c:98: error: 'PORTGbits' undeclared (first use in this function)
..\libUDB\eeprom_udb4.c:101: error: 'TRISGbits' undeclared (first use in this function)
..\libUDB\eeprom_udb4.c: In function 'bit_in':
..\libUDB\eeprom_udb4.c:127: error: 'PORTGbits' undeclared (first use in this function)
..\libUDB\eeprom_udb4.c:129: error: 'TRISGbits' undeclared (first use in this function)

Halting build on first failure as requested.
----------------------------------------------------------------------
Release build of project `C:\Flight softwares\MatrixPilot-3_2\RollPitchYaw\RollPitchYaw-udb4.mcp' failed.
Language tool versions: pic30-ar.exe v3.31
Thu Mar 15 10:25:17 2012
----------------------------------------------------------------------
BUILD FAILED

Regards,
 
Z U Khanzada

nickarsow

unread,
Mar 15, 2012, 2:26:14 AM3/15/12
to uavde...@googlegroups.com
Dear Khanzada,
You are compiling RPY build for UDB4 with dsPIC30F4011 selected ????????????????????
Choose RPY for UDB3 and compile again.
Best regards
Nick

zuhaib umar Khanzada

unread,
Mar 15, 2012, 2:47:39 AM3/15/12
to uavde...@googlegroups.com
Oh Thanks Nick Sorry for funny question.....
Regards,
Z U Khanzada
Reply all
Reply to author
Forward
0 new messages