Page 1 of 1

MPLAB 8.x project not generated properly during compile

Posted: Mon Nov 07, 2011 8:25 pm
by bmairs
I'm compiling a project and the MPLAB 8.x project isn't being properly generated. I'm seeing the following at the end of code generation:

Code: Select all

"    ---33fJ256GP710---" 
"*** Created "executable": ..\../code_gen.cof"	 
''pic30-bin2hex ..\../code_gen.cof  
"*** Converted code_gen.cof to code_gen.hex"	 
. 
"***  MPLAB: file -> import, choose code_gen.hex. Configure -> Configuration Bits : Verify !" 
"       Download into the chip and run."		 
### Successful completion of Real-Time Workshop build procedure for model: code_gen
***  You could open project created and (re)compile it :
   	  ==> MPLAB 8: Within Matlab, right-click code_gen.mcp -> open outside Matlab.
   	  ==> MPLAB X: Start MPLAB X, then open the project folder C:\Users\Bryant\Projects\Autoboat\Code\basic_model\code_gen_dspic
The path '\circBuffer.c' does not exist

Warning : MPLAB project not created due to internal error
My project does include a variety of external C files, though none have the path '\circBuffer.c':

Code: Select all

clib/conversions.c
clib/nmea0183.c
clib/nmea2000.c
clib/ecanSensors.c
clib/gps.c
clib/revo.c
clib/commProtocol.c
clib/uart1.c
clib/uart2.c
clib/DEE.c
clib/DEES.s
clib/misc.c
../../../ECAN_dspic/circBuffer.c
../../../ECAN_dspic/ecanFunctions.c
I've also played with location of circBuffer.c within the list of files to include and it made no difference whether it was at the head of the list or towards the bottom.

I have also tried opening the MPLAB X project, but it looks like it doesn't delete them before regeneration, so it isn't generating new MPLAB X projects either.

Re: MPLAB 8.x project not generated properly during compile

Posted: Mon Dec 05, 2011 11:26 am
by LubinKerhuel
Hello Bryant,

I tested a tiny model with two c files declared as follow: (Code Generation - Custom Code - additional Source files):

Code: Select all

..\..\CFunctionCall\MyCFunction.c
test/myfunction2.c
I could not reproduce the problem.

Which blockset version do you currently have ?

Lubin

Re: MPLAB 8.x project not generated properly during compile

Posted: Tue Dec 06, 2011 10:45 pm
by bmairs
I have version 3.66b. I'm also seeing compilation work for some other projects that I have, so it seems specific to this one.

Re: MPLAB 8.x project not generated properly during compile

Posted: Tue Dec 06, 2011 10:57 pm
by LubinKerhuel
I might test compiling your project on my system if that's not too huge.

Lubin

Re: MPLAB 8.x project not generated properly during compile

Posted: Sat Dec 10, 2011 1:36 am
by bmairs
You'll need to add the two non-Autoboat directories to the matlab path. The actual model is in \Autoboat\Code\basic_model.

Re: MPLAB 8.x project not generated properly during compile

Posted: Tue Jan 10, 2012 1:33 pm
by resodad
Bryant,
I get this error:
"
The following error occurred processing the System Target File '':
Undefined function or variable "version".
"
when I build.
John

Re: MPLAB 8.x project not generated properly during compile

Posted: Thu Jan 12, 2012 3:36 am
by bmairs
This was fixed for me in the new 3.7b release.