bug while compiling the PIC24Fj128GA010

Post Reply
francois.bateman
Posts: 1
Joined: Thu Nov 12, 2009 3:02 pm

bug while compiling the PIC24Fj128GA010

Post by francois.bateman » Mon Sep 27, 2010 5:23 pm

Dear Lubin,
I use an Explorer16 development card and I tried to compile the example that you have provided with a PIC24Fj128GA010 and I received the following message.
On the other hand, I compiled it successfully with the dsPIc 33Fj256GP710 (also provided with the board). Have you already met any problem with the PIC24Fj128GA010.
Regards, amicalement
François
.
### Processing Template Makefile: C:\Users\François BATEMAN\Documents\Enseignement Recherche\Outils\install_dsPIC_R2007b_F_BATEMAN_Unlocked_SalonP_lsis\dspic\dspic_pic30_gcc.tmf
### Creating dsPIC_33f_Explorer16.mk from C:\Users\François BATEMAN\Documents\Enseignement Recherche\Outils\install_dsPIC_R2007b_F_BATEMAN_Unlocked_SalonP_lsis\dspic\dspic_pic30_gcc.tmf
### Building dsPIC_33f_Explorer16: .\dsPIC_33f_Explorer16.bat

C:\Users\Fran‡ois BATEMAN\Documents\Enseignement Recherche\Outils\install_dsPIC_R2007b_F_BATEMAN_Unlocked_SalonP_lsis\examples\dsPIC_33f_Explorer16_dspic\sources>set MATLAB=C:\Program Files\MATLAB\R2007b

C:\Users\Fran‡ois BATEMAN\Documents\Enseignement Recherche\Outils\install_dsPIC_R2007b_F_BATEMAN_Unlocked_SalonP_lsis\examples\dsPIC_33f_Explorer16_dspic\sources>"C:\PROGRA~1\MATLAB\R2007b\bin\win32\gmake" -f dsPIC_33f_Explorer16.mk GENERATE_REPORT=1 MULTI_INSTANCE_CODE=0 PORTABLE_WORDSIZES=0 GENERATE_ASAP2=0 TMW_EXTMODE_TESTING=0
C:\\PROGRA~1\\MICROC~1\\MPLABC~1\\bin\\pic30-gcc -c -mcpu=24fJ128GA010 -O3 -fschedule-insns -fschedule-insns2 -O -I. -I..\.. -IC:\PROGRA~1\MATLAB\R2007b/simulink/include -IC:\PROGRA~1\MATLAB\R2007b/extern/include -IC:\PROGRA~1\MATLAB\R2007b/rtw/c/src -IC:\PROGRA~1\MATLAB\R2007b/rtw/c/ert -IC:\PROGRA~1\MATLAB\R2007b/rtw/c/src/ext_mode/common -IC:\Users\FRANOI~1\DOCUME~1\ENSEIG~1\Outils\INSTAL~2\examples\DSPIC_~2\sources -IC:\Users\FRANOI~1\DOCUME~1\ENSEIG~1\Outils\INSTAL~2\examples -IC:\PROGRA~1\MATLAB\R2007b\rtw\c\libsrc -I C:\PROGRA~1\MICROC~1\MPLABC~1\include dsPIC_33f_Explorer16_main.c
In file included from c:/progra~1/microc~1/mplabc~1/bin/bin/../../support/peripheral_24F/timer.h:35,
from dsPIC_33f_Explorer16_private.h:47,
from dsPIC_33f_Explorer16_main.c:28:
c:/progra~1/microc~1/mplabc~1/bin/bin/../../support/peripheral_24F/GenericTypeDefs.h:53: error: syntax error before '(' token
gmake: *** [dsPIC_33f_Explorer16_main.o] Error 255
### Real-Time Workshop build procedure for model: 'dsPIC_33f_Explorer16' aborted due to an error.

LubinKerhuel
Site Admin - Expert
Posts: 616
Joined: Wed Mar 07, 2007 11:23 pm
Location: Bayonne- France
Contact:

Re: bug while compiling the PIC24Fj128GA010

Post by LubinKerhuel » Tue Sep 28, 2010 4:54 pm

Hey François,

Thanks for that remark.
This error seems to be a file def problem from Microchip described quite a long time ago (see notes on release of blockset 13/02/2008 V0.96b here ).

The workaround is to edit the Microchip def file GenericTypeDefs.h usually placed at (win XP 32 bits) :
C:\Program Files\Microchip\MPLAB C30\support\peripheral_24F\GenericTypeDefs.h
and to comment line 64 as follow :

Code: Select all

in file : GenericTypeDefs.h

64 // typedef enum _BOOL { FALSE = 0, TRUE } BOOL;    /* Undefined size */
65 typedef enum _BIT { CLEAR = 0, SET } BIT;
It should fix the problem. Let me know otherwise.

Lubin

Post Reply

Who is online

Users browsing this forum: No registered users and 9 guests