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?
PIC32 bootloader
- petar.timotijevic
- mikroElektronika team
- Posts: 1739
- Joined: 19 Feb 2014 13:46
- Location: Serbia
- Contact:
Re: PIC32 bootloader
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
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
Re: PIC32 bootloader
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
Re: PIC32 bootloader
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.
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.
- darko.minic
- Posts: 747
- Joined: 01 Dec 2014 11:10
Re: PIC32 bootloader
Hi,
I believe I have answered you on your ticket, so we can continue our correspondence there.
Regards,
Darko
I believe I have answered you on your ticket, so we can continue our correspondence there.
Regards,
Darko