chipKIT® Development Platform

Inspired by Arduino™

Porting MPIDE examples to MPLABX

Created Tue, 30 Apr 2013 21:36:35 +0000 by craynernh


craynernh

Tue, 30 Apr 2013 21:36:35 +0000

Hi All - I know this is a crazy question but has anyone taken a design example w/libraries etc from MPIDE and ran it on MPLABX? I am asking because I have a project required to be implemented in MPLABX that I want to add wifi to and the libraries/code examples in MPIDE simply work out of the box... I can easily finish in a few days if I can pull the code into MPLABX

Any help would be appreciated crayner


KeithV

Wed, 01 May 2013 14:48:57 +0000

Conceptually you would think this to be a reasonable thing to attempt. In reality it is complex. You would have to know every file and all of the build options used in building a sketch in MPIDE and then make a project copying all of those files and settings in MPLABX. Then you would have to resolve all of the include path dependencies as MPIDE does not use a makefile and has some of its own rules. If I "had" to do this I would start with a verbose compile in MPIDE, copy all of the sources over into an X project and apply all of the command line options to the X compiler/linker properties. Then find all of the include files and add them to the X project and then start compiling and fixing includes path dependiencies.

In this senerio, you would no longer be using the bootloader and the bootloader will be wiped when you upload your X program, as X does not use a bootloader, it programs the flash directly.

Unless you are really determined, this would be a frustrating task.


SkierHiker

Thu, 09 May 2013 01:19:55 +0000

I'm starting on a new Max32 project that requires CAN and a serial connection to a Bluetooth shield. Being new to the chipKit and Arduino world, I thought that MPLAB-X would be the best dev environment (I'm coming from Visual Studio). But reading this thread makes be think that maybe MPIDE would be better. Any suggestions? It's imperative that I have a CAN library to work with and extremely helpful if I have a sample application.

Thanks - Mark.


KeithV

Mon, 13 May 2013 16:34:49 +0000

I am a very advanced user and am comfortable in both environments, so my advice is probably highly skewed. For rapid development MPIDE is probably best, but has serious drawbacks in debugging and some of the libraries can be flaky; although I think CAN is good.

I to am a VS user to. I typically write my code in VS and turn my preferences in MPIDE to use and external editor... which is VS. I set projects up inVS, although I clearly do not compile from within VS; I use it as an editor.

I typically write my chipKIT code as MPIDE projects as it is so easy to program different sketches and the multi-board support.

I did put some debugging topics out on the forum, but they are getting a little outdated; although should still work with MPLABv8.

http://www.chipkit.org/forum/viewtopic.php?f=19&t=473

I am actively working with Microchip to solve the debugging issue with MPLAB-X; and a good solution is on the books but is not available yet. I will be teaching a class (17007) at the Microchip Masters in Augs on debugging chipKIT sketches.

So for me, I do most of my projects using MPIDE.

Hope this helps.