Use your forum account to login.


Libstock prefers package manager

Package Manager

We strongly encourage users to use Package manager for sharing their code on Libstock website, because it boosts your efficiency and leaves the end user with no room for error. [more info]

Sort By


<< previous | 1 | 2 last
Rainer Hantsch

posted on 2019/06/10 08:22:41 PM CEST


Bootloader for PIC32MX / MZ, supporting MicroSD card or USB Memory Stick

I am looking for a bootloader being able to load new firmware from microSD card or USB memory stick.
As far as I understand (PIC32 I am a newbe on), this huge PIC32MX/Z have a dedicated bootloader region in flash. If I understood right, this is independent to the normal flash?

I never tried that out

If I could get some example program showing me how to do that, it would be very kind.

Ed Anderson

posted on 2018/12/04 03:16:46 PM CET


PIC32MX795F512L USB MSD (Thumbwheel) Bootloader Needed

While my use of the USB HID Bootloader for my world wide customers has worked fine, I would like to have a USB Flash/Thumbwheel/pen drive capability to upgrade my products software to preclude the customer needing to carry a laptop to the vehicle my Electronic Ignition Monitor is installed in. Despite months of effort and some progress, I have finally had to admit the bootloader development skills/knowledge required is beyond me.

My custom board is USB OTG capable and currently I can read in and parse IntelHex format code and convert the Ascii hex format to binary. That is as far as I have gotten. The vector jumps and address locations required combined with the virtual and physical addressing just confuse me.

I would prefer the code to be in MikroPascal but can cope with it in C. The firmware would need to be installed using all the 12KB bootload reserved memory and then additional flash memory as required. The firmware would take 2-5 seconds to :
1. Determine that a Flash Drive has been inserted into the micro B socket
2. Query the files on the Flash Drive to match/ID a file with the proper file name as an application to be loaded
3. If 1 and 2 are satisfied then to activate the bootloaders download, convert and write to flashmemory
4. if 1 and 2 are NOT satisfied then to jump from bootloader to application firmware already loaded
5. One pin output (an LED on PORTB.RB13) will activate when condition 3 is met and will remain on during the download
6. If for some reason the bootloader is unable to proceed then to activate the LED in a blinking pattern.
7. Must not required a linking script as my MikroPascal compiler only provides the IntelHex file of the application
8. The file format should be FAT32 and standard IntelHex format for the PIC32
9. Should not require custom libraries but should use the Mikro provided ones

Additional information can be provided on requirements and custom board if needed.




posted on 2015/09/01 11:14:23 PM CEST


SD boot loader


We are looking for a boot loader that will read from the SD card.
Target system STM32 M3 in Mikroe Basic or C.

Best regards,

Mel Hooper

posted on 2015/05/13 08:10:01 PM CEST


USB Boot Loader


Looking for a boot loader that will work as following:
I will copy a hex file to a USB stick.
Then The USB stick will be attached to the USB host connector of my board.
On power up the boot loader will detect the existence of the hex file on the USB stick and will program it to the MCU.
if no hex file found the boot loader will switch and run the existing application.

1. MCU: PIC32MX7xx
2. Since the application switches ( application settings) could not be changed in the program, it should match the switches of the boot loader code.Thus, source of such a boot loader will be very appreciated.
3. it is OK to assume that only a single hex file is on the USB stick and that it is located in the root directory. it is also OK to assume that the file name format is 8.3 (DOS naming format) and if needed you can assume that the hex file will be always named App.hex

M. Hooper

Roberto Javier

posted on 2013/10/19 03:31:36 PM CEST


USB Bootloader

Im looking for the bootloader provided in the file examples/other/usb bootloader but my compiler is mikroC pro for pic v4.6 and that example doesnt came within, Can anyone share that code as a mpkg or so?

<< previous | 1 | 2 last