MPIDE vs. MPLAB

Previously, I posted about what a debugger is. Other than all the great features I described in my debugger post, you may be wondering–why does Digilent care?

 

As you probably know, we use many of Microchip’s wonderful products in our chipKIT and chipKIT Pro boards. James briefly covered the differences between two specific boards in the chipKIT series and the chipKIT Pro series in his post chipKIT Uno32 vs. chipKIT Pro MX4. However, we still want to address the overarching differences between the user experience using chipKIT and chipKIT Pro boards. Many people didn’t even know that there were two different chipKIT series. I’ve created a table to show the differences between the two.

dgser

The main difference has everything to do with debuggers. MPLAB is more intended for use with the chipKIT Pro series of boards, while MPIDE lends itself more to being used with on the chipKIT boards. In order to use MPLAB with chipKIT boards and really know what’s going on with your code, you have to use the chipKIT PGM programmer/debugger, which has more limited uses. Of course, MPLAB doesn’t offer as streamlined and simple of a user interface as MPIDE, so which platform is preferable is really up to the user.

 

I personally much prefer being able to use a debugger when building code from scratch. Here is an example of using a debugger in the MPLAB environment:

mplaboen
Upon opening MPLAB, you can see that it has a much more complex integrated development environment (IDE).
step1
You can put a break point wherever you want to stop the code from running. On the bottom of the window, you can see the variable tab where you are able to create watch variables. If you create a watch variable, you can see the values change between each step. Through the next through images, watch the value of t1.
step2
When I step to the next line, I am using a logical AND to change the value of t1. You can watch it change in the watch variables.
step3
This next step is a shift left logical. You can see the value of t1 in hexadecimal shift to the left.
step4
This next step stores the value of t1 into LATB. You can see both of those variables now share the same value.
step5
The final step doesn’t change any of my watch variables, it just jumps back to the loop label.

Being able to watch variables like this is immensely helpful when writing complex code. You can find exactly which lines and which variables aren’t working correctly and easily fix the problem.

 

However, using a debugger isn’t really necessary with all the help MPIDE offers, especially if you are writing simple code and using any of the many, diverse libraries. Within the MPIDE interface, there are an abundant number of examples in C. On top of that our Learn site and Instructables offer more in-depth examples and explanations.

mpide opening - Copy
MPIDE when first opened.
mpide complile
MPIDE example code.

Now that I’ve highlighted some of the differences and features of MPIDE and MPLAB, go to the Microchip website and try them out for yourself! Depending on your intended project, you might find one to be more useful than the other. With all of the features available in both programs you might find you like using both.

Author

Be the 1st to vote.

2 Comments on “MPIDE vs. MPLAB”

  1. Hi Larissa/ Digilent

    Will MPLABX – IDE work with Microblaze softcore from Xilinx on Artis board ?
    Any docs/ codes to make sure it works , before we decide on buying the hardware?

    thanks
    …ravi

Leave a Reply to Larissa Cancel reply

Your email address will not be published. Required fields are marked *