bootloader pic32mx

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 8.

Moderator: Benj

Post Reply
Alkaline
Posts: 143
Joined: Mon Aug 20, 2018 11:04 am
Has thanked: 42 times
Been thanked: 41 times
Contact:

bootloader pic32mx

Post by Alkaline »

Hi everyone

is it possible to load the microchip bootloader using mplab x IDE and then load the actual program using flowcode?

the idea is as follows
from location 0 to N load microchip bootloader

from location N+ 1 to M load the flowocode program, as in the attached figure.

Is it theoretically possible to do this?

I ask this because the example bootloader of the microchip allows to update the program via usb (and also in other ways)

If this is not possible, are there other ways to update the mcu flash without using the programmer?

the application note of microchip
https://www.microchip.com/wwwAppNotes/A ... e=en554836
Attachments
pic32_bootloader.jpg
pic32_bootloader.jpg (66.08 KiB) Viewed 3386 times

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: bootloader pic32mx

Post by Benj »

Hello,

Yes this should be possible and we have done so for things like the chipkit devices. There are complications in that you might have to do things like change the address of the linker script so that the project when compiled knows to leave room for the bootloader. e.g. the program starts at 0x1000 instead of 0x0000 based on the size of the bootloader.

The Microchip documentation should hopefully help to get this configured correctly but let us know how you're getting on.

Alkaline
Posts: 143
Joined: Mon Aug 20, 2018 11:04 am
Has thanked: 42 times
Been thanked: 41 times
Contact:

Re: bootloader pic32mx

Post by Alkaline »

Hello

What I'm trying to do right now is to change the sample bootloader and reprogram it for our demo board.

The procedure is not simple because the software is composed of several parts and I have to understand how correctly they work.

Anyway, in the next days I hope to post some progress!

User avatar
celebriums
Posts: 125
Joined: Sun Sep 25, 2016 3:50 pm
Has thanked: 71 times
Been thanked: 33 times
Contact:

Re: bootloader pic32mx

Post by celebriums »

Dear Ben,
How can I use PIC32MX chips with a simple example?
can you explain?
Thank you
Sincerely Regards
Sadık SUME

www.kaandesign.com.tr

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: bootloader pic32mx

Post by Benj »

Hello Sadik,

For the PIC32 devices your best bet is probably Microchips Harmony library.

You can download from here: https://www.microchip.com/mplab/mplab-harmony

Post Reply