chipKIT® Development Platform

Inspired by Arduino™

Bootloader for Fubarino SD board?

Created Sat, 24 Oct 2020 21:13:09 +0000 by jstanle1


jstanle1

Sat, 24 Oct 2020 21:13:09 +0000

I need to re-flash the bootloader for a Fubarino SD board to allow it to operate under Arduino. Is a hex file for that bootloader available, along with instructions for flashing it?

Thanks for any word on this.


majenko

Sun, 25 Oct 2020 10:32:05 +0000

Yes, the bootloader is here: https://github.com/chipKIT32/PIC32-avrdude-bootloader/tree/master/BootloadersCurrent-hex

Which one you want depends on which version of the SD you have. If it's the MX440 based one then you want FUBARINO_SD_USB.hex. If it's the MX795 based one then you want FUBARINO_SD_512K_USB.hex.

How you flash it depends on what programmer you're using. Normally I'd be using a pickit2 and use pic32prog to flash it (pic32prog FUBARINO_SD_512K_USB.hex).

Most people, though, would use MPLAB IPE which is part of the MPLAB-X installation.


jstanle1

Mon, 26 Oct 2020 17:32:24 +0000

Great, thanks for the word on this.


jstanle1

Mon, 26 Oct 2020 20:29:08 +0000

I've been able to program a UBW32 board with it's Arduino loader also -- I can build and upload sketches to that board (a real relief from using Harmony to program PIC32).

I'm not sure how to map the UBW32 pins to the pin numbers on the schematic or the silkscreen, however. What Arduino pins correspond to the LEDs (to get Blink to show some activity)? The Board_Defs.h file in the UBW_MX7 directory says it's pin 13, but that doesn't work for me. How would I address any other pin from Arduino?

Thanks again for any word on this.


majenko

Mon, 26 Oct 2020 22:26:04 +0000

Looks like the UBW32 uses a generic pin mapping where the port number (A=0, B=1 etc) is the upper nibble and the pin number is the lower nibble.

So B7 will be 0x17 or pin number 23. That is, 0-15 are RA0-RA15, 16-31 are RB0-RB15 etc.


jstanle1

Sat, 31 Oct 2020 04:54:15 +0000

Terrific -- thanks very much for your reply.