||Bootloading the DEVCC
|Document Number & Revision
||401 - 0001 - 1.0
||March 14, 2019
||Original Document, no ammendments
The DEVCC - V40 is an ideal development platform for projects and systems. To simplify usage, the bootloader system
is used to program the device for code updates and code changes while the system is in field. The bootloader reduces the cost of usage, as no additional development
hardware is required.
What you need:
- MikroC for PIC
- USB cable
- Hex file in a known location
- DEVCC - V 40
- Powersupply: <5Vdc @500MA
The bootloader is a small piece of firmware which is pre-installed on the PIC device, creating a boot area. It remains on the PIC indefinately or until the bootloader function
is no longer required. Since it must remain on the device, it does occupy a small amount of program memory, and this must be factored into you system design as this cannot be
used by the application. The firmware enables the device to connect to a PC based application which enables the user to download new firmware onto the PIC.
Previously, a PICKIT or 3rd part programmer would have been required to update the code on the device. However, the bootloader only requires the programmer once, and thereafter the
device firmware can be updated on demand using a USB cable and the bootloader software run from a Windows based pc.
The bootloader requires a hex file, which is compiled code generated from PIC compiler. You may use, for example either MPLABX or the MikroC compiler; or any other
complier which generates a compatiable hex file.
The DEVCC - 40 has the MikroC firware installed as a courtessy and at no charge. This is to faciliate the use of the DEVCC - 40 if an alternative means to program the device is not available. The content in this article is also
applicable for use with MikroC's product range of PIC Ready PCBs for 18F Devices.
The procedure to bootload the DEVCC is simple, and easy to perform.
: Open MikroC » Tools » MikroBootloader
- Click Change Settings
- Select Comport
- Set Baud Rate to 115200, remaining settings are default
- Click Ok
To bootload the device, do the following:
- Power up the DEVCC - V40
- Connect the USB cable to both the DEVCC and the PC
- Connect to Device
- Click Connect
- Press the reset button on the PCB; you have a few moments to do this before the software times out
- MikroBootloader will report when it is connected
- Click Browse for HEX
- Locate the [YourFileName].hex
- Click Open
- Click Begin uploading
- When the process is complete, disconnect the DEVCC from the USB cable and reboot the device to ensure that the reprogramming is complete
- Your code update is complete