Page 1 of 1


Posted: Tue Aug 09, 2011 5:12 pm
by resodad
Blockset version 3.6 auto-generates a project folder for Microchip MPLAB X. Thanks Lubin--NICE!
I am a beginner with MPLAB X, but these steps worked for me:

Build the Simulink project and open MPLAB X.
Click the Open Project icon (or File > Open Project… or Ctrl + Shift + O).
Navigate to the Matlab working directory and select the project folder: model_name_dspic.
MPLAB X opens the auto-generated project. Source files are visible.
Click the Debug Project icon (or Debug Menu > Debug Project or Ctrl + F5).
MPLAB X asks for the tool to use. Select your programming device. Mine is PIC32 starter kit.
MPLAB X automatically builds, connects to hardware, programs, and runs the program.
After making changes to the Simulink model and rebuilding, click the “Finish Debugger Session” icon.
And then click the Debug Project icon again to reprogram.
Or to program without the debugger click the icon to “Make and Program Device.”



Posted: Sat Aug 13, 2011 12:15 am
by LubinKerhuel
Hi John,

Tanks for taking time to make this tutorial.
I linked it to the wiki to make it accessible more easily, next to your latest tutorial about Cerebot kit.