chipKIT® Development Platform

Inspired by Arduino™

Can't upload to board

Created Sun, 21 Apr 2013 15:52:07 +0000 by stxo6410


stxo6410

Sun, 21 Apr 2013 15:52:07 +0000

So i have been using the Max32 for a couple months now and everything was great until yesterday. For some reason now every time i try to upload any sketch to the board it fails. When i click upload everything runs then near the end it get suck at about 95% or so. Usually this is when the LD1 and LD2 flash because the board is communicating with the computer. But now LD1 flashes once and then the upload never finishes. MPIDE Hangs forever and never completes the upload. If i click the upload button again it give me the error Serial port 'COM3' already in use. i have tried to update the drivers for the USB, I re downloaded MPIDE, i tried on 3 different computer, i restarted my computer many times and nothing seems to be working. hopefully someone can help


les1943

Sun, 21 Apr 2013 18:36:45 +0000

Something on serial1 pins ? would be a starting point.


stxo6410

Sun, 21 Apr 2013 19:56:39 +0000

no nothing is on any pins. i am trying to run blink and it wont even upload.


thepascalix

Mon, 22 Apr 2013 14:18:03 +0000

hi, the board selected in your IDE is chipkit MAX32?


KeithV

Mon, 22 Apr 2013 14:44:36 +0000

I can't explain how it happened; but since moving to another computer does not fix your problem my guess is that somehow you trashed your bootloader on the MAX32. If you have MPLABv8 / MPLAB-X and a hardware debugger (chipKIT PGM, PICkit3) you can reprogram your bootloader. You can get a copy of the bootloader from the Digilent site:

http://www.digilentinc.com/Data/Products/CHIPKIT-MAX32/arduino-bootloader.X.Max32.zip

You can get a copy of MPLAB from:

http://www.microchip.com/pagehandler/en_us/family/mplabx/

You can buy a programmer from:

http://www.digilentinc.com/Products/Detail.cfm?NavPath=2,892,1078&Prod=chipKIT PGM

If you plan to do any serious work, I would get a hardware programmer for when things go really wrong. Then you can restore everything back to ground zero.


majenko

Mon, 22 Apr 2013 17:51:05 +0000

You can also do it with the cheaper pickit2 or a cheap clone, using the program "pic32prog"