chipKIT® Development Platform

Inspired by Arduino™

burning bootloader for max32, mpide, ubuntu 11.10 x64

Created Thu, 29 Dec 2011 06:35:17 +0000 by raypm


raypm

Thu, 29 Dec 2011 06:35:17 +0000

Hi,

New to the boards, very excited about the capabilities of the Max32 board compared to the Arduino I'd been using earlier. Nice to meet you!

I'm having trouble burning the bootloader and uploading a blank program to the Max32 board I just got today. I've selected...

'chipKit Max32' under Tools->Board 'dev/ttyUSB0' under Tools->Serial Port

I'd try to select one of the options (w/ AVRISP, w/AVRISP mkii, w/ USBtinyISP, w/ parallel programmer, w/ Arduino as ISP) under Tools->Programmer but the button doesn't stick, and I'm not sure which of these I'm supposed to select anyway.

I get the 'avrdude: stk500_recv(): programmer is not responding' error.

What can I do?

I'm running Ubuntu 11.10, 64-bit and MPIDE 0023-linux32. I did install the ia32-libs package and lineread6 packages to avoid the ELF64 class error and get it running under x64 linux. Thanks for your time!


By the way I'm working on a guitar effects multiprocessor so I know about DSP a bit and how to do guitar effects and stomp boxes if anyone's interested! Thanks.


majenko

Thu, 29 Dec 2011 10:59:48 +0000

To burn the boot loader to the board (you'd only want to do this anyway to replace the faulty boot loader that was shipped on some boards) you need an ICSP programmer for the PIC family of chips.

I use a pickit2 as it has good linux support.

Then you need the "pk2cmd" program (or MPLAB-X).

You connect the programmer to the ICSP header (standard header can plug in to holes without soldering) and program the PIC with the command:

$ pk2cmd -p -m -f <path to bootloader hex>

where <path to bootloader hex> is the path to the bootloader hex file which you must download from github or wherever it is - there's a thread here somewhere about it.


raypm

Thu, 29 Dec 2011 21:10:30 +0000

Oh thanks majenko! I found out that my bootloader was OK, I just didn't find the upload button on the IDE since it's somewhere slightly different. Good to know! Cheers.


adrianmb

Fri, 31 Aug 2012 00:47:25 +0000

Hi guys, i just bought a chipkit max32 but it doesn't work :( , i think the bootloader is corrupted, i got a chipkit 3 to burn the bootloader but i can't download the .hex file in the wiki, could someone post the .hex file please.

thank you all :)


JordanR

Tue, 04 Sep 2012 20:36:19 +0000

Hello adrianmb,

Can you give some more details about the chipKIT Max32 not working? Do you mean you can't upload a sketch to the board? Is the FTDI chip recognized by your computer? Does LD4 blink when you first power on the board? How are you trying to burn the boot loader and what is telling you that it is not working?

Best Regards,

Jordan R Digilent


adrianmb

Tue, 04 Sep 2012 23:20:59 +0000

Hello Jordan,

The FTDI chip works perfectly, even when i send data trought serial monitor RXTX leds blink, LD4 is always off, i don't know exactly if it's the bootloader.

When i try to upload a sketch, LD1 keeps blinking and terminal displays:

avrdude: stk500_2_ReceiveMessage(): timeout

Thanks for your help.


JordanR

Tue, 11 Sep 2012 22:09:59 +0000

Hello adrianmb,

Sorry for the delay in my response, and I should have mentioned this in the first one, but you can also download the bootloader from this link:

http://www.digilentinc.com/Products/Detail.cfm?NavPath=2,892,894&Prod=CHIPKIT-MAX32

See "Support Documents" at the bottom of the page. If you haven't alreayd solved this on your own, please let me know if this works!

Best Regards,

Jordan R Digilent