Summary of BOOTLOAD THE PIC18F4550 – FIRMWARE UPDATING
This article explains the process of bootloading the PIC18F4550 microcontroller on a USB interface board to update its firmware. It highlights useful bootloader software from eegeek.net and piccoder.co.uk, with a preference for eegeek.net's C# bootloading tool. The updated firmware enables control of six LEDs rather than just two. The device must be in RD/WR (bootload) mode rather than READ mode to enable firmware uploading. The article also references the PIC18F4550 demo schematic showing LED connections and steps for importing new hex files into the bootloader software to program the microcontroller.
Parts used in the USB Interface Board Bootloading Project:
- PIC18F4550 Microcontroller
- USB Interface Board
- LEDs (6 total connected to CTRL1, CTRL2, CTRL3, CTRL4, CTRL7, CTRL8 pins)
- Bootloader Software (C# application from eegeek.net)
- Hex firmware files for PIC18F4550
- PC with USB port for connection and running bootloader software
BOOTLOAD PIC18F4550 – FIRMWARE UPDATING
SETTING THE PIC18F4550 IN RD/WR ( BOOTLOAD ) MODE FOR BOOTLOADING
Loading / updating new code into the USB INTERFACE BOARD can be done with a Bootloader Software. While searching for good bootloader, I found some nice tutorial on eegeek.net and piccoder.co.uk for BOOTLOADING the USB INTERFACE board.
The firmware that is posted in the next tutorial will enable/ allow you to control 6 leds ( connected across CTRL1 , CTRL 2 ,CTRL 3 , CTRL 4 , CTRL 7 ,CTRL 8 – refer schematic below , CTRL 5, and CTRL 6 will flash alternatively)
PIC18F4550 DEMO SCHEMATIC
Piccoder.co.uk and eegeek.net have their own version of Bootloader software. My personal favourite version of BOOTLOADING Software is from eegeek.net , you can download the entire project file of his version of BOOTLOADING software from his website.
The downloaded zip file from eegeek.net will contain entire project file of the USB board, like mplab project, c# application , a BOOTLOADING software in C# and a firmware to control two leds . Search for BOOTLOAD folder inside the zip file and run the bootloading software inside the DEBUG folder (coded in C#).
STEPS OF BOOTLOADING
For loading new code into the USB BOARD it is necessary that the USB BOARD must be set to Bootload mode. There are two modes of a operation, READ mode (you will be able to control this Board only when the board is in READ MODE)and READ/WRITE mode (BOOTLOAD mode).
Connect the USB DEMO BOARD to your P.C , and start the BOOTLOADER Software. Import the new hex file that you need to write, into the BOOTLOADING software. [I will provide the new Firmware in my next post]
It is possible to write new code into the EPROM of PIC18F4550 only when it is in RD/WR mode.
For more detail: BOOTLOAD THE PIC18F4550 – FIRMWARE UPDATING