Issues in dsPIC 30f6014 compiling : Missing gld & DCI Periph

Post Reply

Issues in dsPIC 30f6014 compiling : Missing gld & DCI Periph

Post by sumedhk » Thu Jan 17, 2008 7:24 am

I've created a trial model for dsPIC 30f6014 to test the dsPIC embedded target in R2007b. But, I am not being able to compile the model (flash_1.mdl). I am getting the following error:
C:\Program Files\Microchip\MPLAB C30\bin\pic30-coff-ld.exe: cannot open linker script file C:\PROGRA~1\MICROC~1\MPLABC~1\support\gld\p30f6014.gld: No such file or directory
gmake: *** [..\../flash_1.coff] Error 255

It seems that the compiler cannot find the linker file. This, inspite of the fact that I've installed MPLab C30 v3.02 and verified the path for the gld file (p30f6014.gld) - default path (C:\Program Files\Microchip\MPLAB C30\support\gld). I'm not even being able to compile the example models included in the "Embedded target".
If I try to just take the generated code and try to compile it independently in MPLab, it is throwing error for undefined function (ConfigIntTimer1).
I've already confirmed that there is no problem with the test model or settings after communicating with Lubin. Still, if anybody wants, I can send the model.

There is another query:
Is there a way to implement the DCI module in dsPIC 30f6014 using the dsPIC blockset? It would be very helpful if there is.
I request you to help with your suggestions.


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

Re: Issues in dsPIC 30f6014 compiling : Missing gld & DCI Periph

Post by LubinKerhuel » Thu Jan 17, 2008 11:50 am

Hi sumedhk

I use short path name ("compatible 8.3") to invoke the C30 compiler in Matlab.
Perhaps that the short path name for the directory 'C:\Program Files\Microchip\MPLAB C30\support\gld' is false.
( for example, it could be

You can check by typing at the matlab prompt the command:
rtw_alt_pathname('C:\Program Files\Microchip\MPLAB C30\support\gld')

If you do not get C:\PROGRA~1\MICROC~1\MPLABC~1, you will have to change the short path in Simulink :
Simulation ==> Configuration Parameters ==> Real-Time Workshop ==> DsPIC options

Please, repport if this correct the problem. I will then correct this in the next toolbox version.

About DCI, I did not create the block yet. You could use your own code for that peripheral using the Custom C Function block (not available in the evaluation version).
Could you explain what is DCI for. I did not see yet any electronic component using this protocol.

PS: CAN and I2C blocks will be released soon...

You could not upload the mdl file because you were not registered to the forum. I just modified the forum right and you could now upload file despite the fact that you are not registered. Note however that you will have more possibilities once registered...


Re: Issues in dsPIC 30f6014 compiling : Missing gld & DCI Periph

Post by sumedhk » Fri Jan 18, 2008 6:52 am

Done. The model is compiling now. There was a slight correction I had to make - changed MPLABC~1 to MPLABC~2.

Regarding the DCI module... It is used by the DSC to talk with si3000 (voiceband codec). The communication is done using the pins RG15 (COFS), RG13 (SDI) and RG12 (SDO). Writing of code for the same is already underway.

Thanks again.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest