PIC32 bootloader

General discussion on mikroBasic PRO for PIC32.
Post Reply
Author
Message
lpmsr
Posts: 117
Joined: 17 Jul 2009 02:10

PIC32 bootloader

#1 Post by lpmsr » 02 Apr 2015 17:24

I am trying to use the bootloader in a product so that users can upload firmware changes, but I am having trouble with the bootloader running properly. Sometimes it doesn't start and I have to power cycle the board once or twice before it is recognized by mikroBootloader. Then after programming, sometimes it will restart properly and sometimes not. Even after it restarts, it does not always continue on to my main program.

I am using the latest versions of the bootloader and the Windows app.

Are there some specific config settings that I need to use when using the bootloader?

User avatar
petar.timotijevic
mikroElektronika team
Posts: 1739
Joined: 19 Feb 2014 13:46
Location: Serbia
Contact:

Re: PIC32 bootloader

#2 Post by petar.timotijevic » 03 Apr 2015 11:08

Hi,

Please can you specify which PIC32 is used with bootloader?

Did you check your Project settings?

Also please check Bootloader Project settings and your circuit?


Best regards,
Peter

lpmsr
Posts: 117
Joined: 17 Jul 2009 02:10

Re: PIC32 bootloader

#3 Post by lpmsr » 03 Apr 2015 15:25

petar.timotijevic wrote:Hi,

Please can you specify which PIC32 is used with bootloader?

PIC32MX795F512L


Did you check your Project settings?

Yes, they appear to be normal. Which settings are critical for the bootloader?


Also please check Bootloader Project settings and your circuit?

I have now tried it with my Fusion 7 board, mikromedia for PIC32, MMB for PIC32MX7 all with similar results, except that the percentage of time that the bootloader starts seems a bit better, though not 100%. Except for the Fusion 7 test, the others used smaller programs. The Fusion 7 test was the same hex as on my hardware.

Incidentally, I also tried a mikromedia for STM32 module and it was 100%. The Windows app also responded immediately with every reset of the module.



Best regards,
Peter

lpmsr
Posts: 117
Joined: 17 Jul 2009 02:10

Re: PIC32 bootloader

#4 Post by lpmsr » 04 Apr 2015 03:07

OK. More data...

If I load the v1.3.0 bootloader firmware from the mikromedia+ for PIC32MX7 web page, everything works perfectly. If I compile the USB_HID_Bootloader project from the compiler examples folder, and then load that, I'm back to the problems. Does this project create v 1.3.0 hex code, or something older? I need to compile my own version so that I can change the DEVICE_NAME in the Config module.

User avatar
darko.minic
Posts: 747
Joined: 01 Dec 2014 11:10

Re: PIC32 bootloader

#5 Post by darko.minic » 06 Apr 2015 08:30

Hi,

I believe I have answered you on your ticket, so we can continue our correspondence there.

Regards,
Darko

Post Reply

Return to “mikroBasic PRO for PIC32 General”