chipKIT® Development Platform

Inspired by Arduino™

Max32 - MPIDE - blink

Created Sun, 01 Jan 2012 01:11:10 +0000 by mdsousa


Sun, 01 Jan 2012 01:11:10 +0000


I've recently received the ChipKIT Max32. I've installed that MPIDE and then plugged in the Max32 by use of the USB port. First thing I tried is the blink example. The IDE states that it is uploading to I/O board (this takes a little more than 30 seconds), then the red communication status leds on the board and the green user led both start blinking rapidly (very rapid). They both then stop after about 6-7 seconds. Then just for giggles I press the rest button, this causes the greed led to blink for about 4 seconds and then stay on. Before I move on to anything more complicated, I'd like to know if I'm missing something?




Sun, 01 Jan 2012 11:20:27 +0000

Blink , should complete with the green led4 'blinking' at a 1 sec intervals... forever . your description of the upload sounds OK . try changing the delay to delay(2000) . reset just flashes the led4 rapidly for 4secs then back to the programmed delay. did the Upload button (MPIDE) stay orange if it did it would suggest some comms problem, have you selected the board and port in the tools menu ?


Sun, 01 Jan 2012 13:47:54 +0000

Thanks for the reply. From Tools->Board I selected chipKIT MAX32- USB for Serial. I selected the Upload button on the MPIDE menu bar, after awhile the Upload led blinks rapidly along with the green led then they both go off. This behavior also occurred with the delays set to 2000.

On my laptop (Windows 7), from my Device Manager->Ports view, I have 'USB Serial Port (COM5)'. This is what is selected in the Tools->Serial Port menu on my MPIDE.


Sun, 01 Jan 2012 13:57:57 +0000

Hi Mike There are two leds that indicate loading of the PIC , do they both flash ? if you try an upload again straight away do you get a 'port in use error '



Sun, 01 Jan 2012 14:13:16 +0000

Hello Les

I just downloaded the latest version of MPIDE (20111221). I originally had 20110822. This seems to have fixed it. Blink now flashes the green led at 1 sec intervals. I have not had a chance to look through the change logs to see what might've changed that would correct this, but if others have this problem out of the box, this might be good place to start (at least with windows 7).

Thanks for your help...



Sun, 01 Jan 2012 14:21:11 +0000

Good start to the new year... :) les

Jacob Christ

Wed, 04 Jan 2012 15:33:56 +0000

Thanks for the reply. From Tools->Board I selected chipKIT MAX32- USB for Serial.

Unless you are using a Network Shield you don't need be using "Max32 for Serial" you should just be using "Max32". "Max32 for Serial" makes the default "Serial" class look to USB port on the Network Shield for serial communications.

Also, I've found that if your using MPIDE 0822 (I don't know about the latest version) that it holds the board in reset unless the terminal is open.



Thu, 12 Jan 2012 17:00:41 +0000

Hi all, Quite new to chipkit world, I'm facing quite the same problem: If i try to compile the IOShield-Temp example with board setting "chipKIT MAX32" there are several errors like 'error: 'Serial' was not declared in this scope' - and with board set to "chipKIT MAX32-USB for Serial" compiling and uploading is ok but there is no feedbak from chipKit on the Serial Monitor on the according USB-COM port.

Anyone an idea for solutions for both of the board settings? I'm using MPIDE 0023.

Greets, Andreas


Fri, 13 Jan 2012 12:36:41 +0000

IOShield library default not working with MPIDE 0023.

But you can modify IOShieldTemp.h

comment out next includes - #include "HardwareSerial.h" #include "WProgram.h"

and add new one - #include "plib.h"


Wed, 18 Jan 2012 06:47:47 +0000

That was a great hint - thanks a lot!! Andreas