You have unsaved changes. If you choose to leave all changes will be discarded.
posted on 2019/06/10 08:22:41 PM CEST
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.
posted on 2018/12/04 03:16:46 PM CET
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
posted on 2015/05/13 08:10:01 PM CEST
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
posted on 2013/10/19 03:31:36 PM CEST