chipKIT® Development Platform

Inspired by Arduino™

MPIDE with mini Maximite board

Created Thu, 10 May 2012 21:50:28 +0000 by Ernie


Ernie

Thu, 10 May 2012 21:50:28 +0000

I was wondering if anyone has managed to get MPIDE working with a mini Maximite board?

http://geoffg.net/mini-maximite.html

It uses a PIC32MX795F512H

I think its running the default Microchip HID bootloader.


jessedewaard

Fri, 11 May 2012 18:33:38 +0000

It's not that difficult you just have to remap some vectors and get the appropriate linker file for the bootloader(see microchip website)

Here is an example for my pic 18f4550 bootloader:

[color=#0000FF]/** V E C T O R R E M A P P I N G *******************************************/[/color] extern void _startup (void); // See c018i.c in your C18 compiler dir #pragma code _RESET_INTERRUPT_VECTOR = 0x001000 void _reset (void) { _asm goto _startup _endasm } #pragma code

#pragma code _HIGH_INTERRUPT_VECTOR = 0x001008 void _high_ISR (void) { ; }

#pragma code _LOW_INTERRUPT_VECTOR = 0x001018 void _low_ISR (void) { ; } #pragma code [color=#0000FF]/*******************************************/[/color]

Just insert this in your code and change the adresses for your bootloader(see the hid bootloader linker file)

Hope this helped


Ernie

Sun, 13 May 2012 02:32:48 +0000

I see, so what you are saying is the Microchip standard HID bootloader is not compatible with MPIDE, I didn't realize that.


EmbeddedMan

Sun, 13 May 2012 19:00:57 +0000

No, not 'out of the box'. However, it is something I've been working on-and-off on for quite a while. Eventually, I'd like MPIDE to be able to use any bootloader, which could include the standard Microchip HID bootloader (by way of the mphidflash command line PC application).

So eventually, the answer will hopefully be 'yes'. For right now, 'no.