Post
by LubinKerhuel » Mon May 12, 2008 10:05 pm
Hi Mariano,
I understand that you are going to use MPLAB (i.e. no bootloader) to program and debug your microcontroller chip.
You will set-up a project, import c and library files (.a) generated by Matlab/Simulink and the blockset for dsPIC, and compile the whole project using MPLAB. (This will enable advanced debug option of MPLAB). The other solution is to import directly the .hex file generated by Matlab, but debugging will be difficult!
The fastest way to set the PGC/PGD parameter, which is not supported yet by the blockset, is to set up that option using directly the MPLAB menu:
Configure ==> Configuration Bits ; uncheck "Configuration Bits set in code" and set your own options for PGC/PGD.
Let me know if it solves the problem.
Adding the PGC/PGD choice to the blockset is still a piece of work (need to analyze the syntax for all microchip microcontroller, and many times, there is tiny changes that makes it quite annoying)
Lubin