chipKIT® Development Platform

Inspired by Arduino™


Created Thu, 03 Jan 2013 01:02:02 +0000 by lloyddean


Thu, 03 Jan 2013 01:02:02 +0000

Can, and will, someone point me at some documentation on using the MPLAB X 1.51 with the CEREBOT MX 7 ck board.

I'd like an example project for the MPLAB X already setup if possible. Preferably configured the same, or as close as possible, as the Mpide uses.


Attempting to compile and run the "Blink_MX7ck" project I get this -

make -f nbproject/ SUBPROJECTS= .build-conf make[1]: Entering directory /Users/lloyd/MPLABXProjects/led_message/led_message.X' make -f nbproject/ dist/default/debug/led_message.X.debug.elf make[2]: Entering directory /Users/lloyd/MPLABXProjects/led_message/led_message.X' "/Applications/microchip/xc32/v1.20/bin/xc32-gcc" -g -D__DEBUG -D__MPLAB_DEBUGGER_PK3=1 -x c -c -mprocessor=32MX795F512L -MMD -MF build/default/debug/_ext/812168374/led_message.o.d -o build/default/debug/_ext/812168374/led_message.o ../source/led_message.c "/Applications/microchip/xc32/v1.20/bin/xc32-gcc" -mdebugger -D__MPLAB_DEBUGGER_PK3=1 -mprocessor=32MX795F512L -o dist/default/debug/led_message.X.debug.elf build/default/debug/_ext/812168374/led_message.o -Wl,--defsym=__MPLAB_BUILD=1,--defsym=__ICD2RAM=1,--defsym=__MPLAB_DEBUG=1,--defsym=__DEBUG=1,--defsym=__MPLAB_DEBUGGER_PK3=1 make[2]: Leaving directory /Users/lloyd/MPLABXProjects/led_message/led_message.X' make[1]: Leaving directory /Users/lloyd/MPLABXProjects/led_message/led_message.X'

BUILD SUCCESSFUL (total time: 383ms) Loading code from /Users/lloyd/MPLABXProjects/led_message/led_message.X/dist/default/debug/led_message.X.debug.elf... Loading completed

... and this ...

Connecting to Licensed Debugger... Firmware Suite Version.....01.28.18 Firmware type..............PIC32MX

CerebotMX7ck by Digilent Target detected Device ID Revision = 4300053

program memory: boot config memory configuration memory

Programming... Programming/Verify complete The target device is not ready for debugging. Please check your configuration bit settings and program the device before proceeding.


Thu, 03 Jan 2013 17:06:06 +0000


LLoyd, please update to MPLAB-X 1.61! There are lots of problems that have been addressed in MPLAB-X using the PICkit3 and licensed Debugger.

At this time, you can't compile an MPIDE sketch in MPLAB-X without a ton on modifications. The MPIDE build rules are just non-standard.

However, you can have MPLAB-X projects completely designed in MPLAB-X that will upload and run on an MX7cK just fine; I do this all of the time. But it will not use the MPIDE bootloader, in fact, once upload from MPLAB-X your MPIDE bootloader will be wiped out.

Talking about bootloaders, as an example of an MPLAB-X project for an MX7cK board, go look at the bootloader project that Brain posted on Github. You can download this MPLAB-X project and build the MX7cK bootloader and program it. This project has examples for most shipping chipKIT boards so you can have a seed project for any of those boards.


Thu, 03 Jan 2013 17:17:04 +0000

Hello KeithV

I'll check that out shortly.

I am aware that it will require some work to get "sketch" based projects over to MPLAB X and believe I able to port such projects myself. But first I need to get some MPLAB X based project project to load and run.

Going to go find the newer version of MPLAB X now ...


Thu, 03 Jan 2013 18:18:51 +0000

Hello KeithV

Thanks again for letting me know about the 1.60 update. I'm getting a bit further in that it appears to compile and upload code to the CEREBOT MX7 ck board now but I don't have any indication from the board that it is running.

Am using the C++ compiler XC32 1.2 and attempts at setting a break point give me ...

Launching Programming target Break point at line 146 in file /Users/lloyd/MPLABXProjects/led_message/source/led_message.c cannot be resolved to a valid program memory address User program running


Fri, 04 Jan 2013 16:21:37 +0000


You are now getting into where you need to talk to Microchip about MPLAB-X. Symbols in MPLAB-X have been a bit of a problem, I too experience lots of issues. However, Microchip has been very active at correcting and improving the symbol lookup issue; I think you can expect MPLAB-X to get a lot better in this area with each passing release.

Did you try turing optimization off? Try -O0. Also did you compile that source in MPLAB-X or import the source. importing source for all pratical purposes does not work in X yet. There are just too many gochas for that to be reasonable to do.

oh, and the last line in your log says user program running, so it is running. Also at the bottom right in the X window you will see a sweeping bar and the line something to the effect of program running. I think you are running.


Fri, 04 Jan 2013 17:21:06 +0000


Thank you for the verifications - just making sure it's a IDE problem and not a hardware problem. So now I know - MPLAB X is full-o-bugs.

At the moment except for the debugger, which is why I was going this route, I am now able to run executables.

Thanks again!