Hi,
I want to design a small PCB board using one of the PICs (PIC18F2455/2550/4455/4550) that uses USB comms to interface to a PC application.
I also would like to use a bootloader so I could reprogram the PIC18F device so that I don't need an external programmer to update the code.
Has anybody done this and if so could they please advise the steps to take?
Thanks,
Paul
USB Bootloader for PIC18F2455/2550/4455/4550
-
- Posts: 444
- Joined: Tue Apr 15, 2014 4:19 pm
- Location: Kajaani, Finland
- Has thanked: 345 times
- Been thanked: 227 times
- Contact:
Re: USB Bootloader for PIC18F2455/2550/4455/4550
I once looked into this but my head blew after few attempts... Basically you would need to create a bootloader that:
Initializes and checks it's own bootloading code (that were good to go).
Brings USB up,waits for knok, if nobody is knoking, closes USB and starts user application.
If someone knocks, take all data input for the new firmware to certain region (i used extrenal battery backed up SRAM to save this),then interface checks the code against provided checksum and if it matches, starts the reprogramming process. I managed to do the things until i was faced with the how to reprogram memory-areas... I looked for the "save variables to flash" things but seemed to not be able to get it working.
Unfortunately after i did some cleaning of those "unfinishable" projects folder, i seem to have lost the code's for that. :/
Initializes and checks it's own bootloading code (that were good to go).
Brings USB up,waits for knok, if nobody is knoking, closes USB and starts user application.
If someone knocks, take all data input for the new firmware to certain region (i used extrenal battery backed up SRAM to save this),then interface checks the code against provided checksum and if it matches, starts the reprogramming process. I managed to do the things until i was faced with the how to reprogram memory-areas... I looked for the "save variables to flash" things but seemed to not be able to get it working.
Unfortunately after i did some cleaning of those "unfinishable" projects folder, i seem to have lost the code's for that. :/
Ill just keep the good work up!
-
- Valued Contributor
- Posts: 2045
- Joined: Wed Aug 27, 2008 10:31 pm
- Location: Netherlands
- Has thanked: 553 times
- Been thanked: 1081 times
- Contact:
Re: USB Bootloader for PIC18F2455/2550/4455/4550
Microchip provides C sources for boot loaders as part of their Microchip Libraries for Applications
“Integrity is doing the right thing, even when no one is watching.”
― C.S. Lewis
― C.S. Lewis
- QMESAR
- Valued Contributor
- Posts: 1287
- Joined: Sun Oct 05, 2014 3:20 pm
- Location: Russia
- Has thanked: 384 times
- Been thanked: 614 times
- Contact:
Re: USB Bootloader for PIC18F2455/2550/4455/4550
If you are interested in using a PIC18F2550 you can use the ready made boot-loader from mE see this page
https://shop.mikroe.com/development-boa ... artusb/pic
https://shop.mikroe.com/development-boa ... artusb/pic
https://www.flowcodexchange.com/
Regards QMESAR
Regards QMESAR