Page 1 of 1

Pathing Problem in Compilation

Posted: Mon Jul 27, 2009 11:30 pm
by chad
Hi Lubin,

When I try to compile models such as dsPIC_33f_Explorer16.mdl, I get the 1070 build error due to MATLAB not being able to find the gld file. For instance, MATLAB will search C:\Program Files\Micro~1\MPLABC~1\... which goes to C:\Program Files\Microchip\MPLAB C32 instead of C:\Program Files\Microchip\MPLAB C30, while C:\Program Files\Micro~1\MPLABC~2\... goes to C:\Program Files\Microchip\MPLAB C30. I was only able to compile after I renamed my MPLAB C32 folder to "MPLAB C30 Copy" and copied and pasted the "MPLAB C30" folder contents into "MPLAB C30 Copy."

Do you know why MATLAB is searching for the wrong # after the '~' during compilation? Is there a way to tell MATLAB to look in the right folder? I tried adding the path to MATLAB, and it didn't solve the problem.

Re: Pathing Problem in Compilation

Posted: Tue Jul 28, 2009 9:50 am
by LubinKerhuel
Hi Chad,

Did you tried the "magic" yellow block called something like "configure Simulink model for dsPIC" ? add this block to your model, dbl click on it and it usually solved path problems.

Lubin