FORUM TOPIC · READ ONLY
MPLAB 8.x project not generated properly during compile
MPLAB 8.x project not generated properly during compile
Forum : bug reports
7 message(s) · archive en lecture seule
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:
My project does include a variety of external C files, though none have the path '\circBuffer.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.
" ---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':
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.cI'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
Hello Bryant,
I tested a tiny model with two c files declared as follow: (Code Generation - Custom Code - additional Source files):
I could not reproduce the problem.
Which blockset version do you currently have ?
Lubin
I tested a tiny model with two c files declared as follow: (Code Generation - Custom Code - additional Source files):
..\..\CFunctionCall\MyCFunction.c
test/myfunction2.cI could not reproduce the problem.
Which blockset version do you currently have ?
Lubin
Re: MPLAB 8.x project not generated properly during compile
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
I might test compiling your project on my system if that's not too huge.
Lubin
Lubin
Re: MPLAB 8.x project not generated properly during compile
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
Bryant,
I get this error:
"
The following error occurred processing the System Target File '':
Undefined function or variable "version".
"
when I build.
John
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
This was fixed for me in the new 3.7b release.