FORUM TOPIC · READ ONLY

Pathing Problem in Compilation

Pathing Problem in Compilation

Forum : General Remark and Questions

2 message(s) · archive en lecture seule

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.
LubinKerhuel

Re: Pathing Problem in Compilation

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