Flashing the Hex file using ds30 bootloader
Sharana (talk) 13:47, 7 August 2015 (IST)
We ship ds30 PIC bootloader with various PIC micro-controllers. This quick tutorial explains how to use the bootloader to program the board.
Contents
[hide]Hardware Setup
Basic Connections
You basically need a USB to UART board and target MCU with pins taken out. Remember some of our boards are shipped with the serial adapter board. If you do not have one, you may purchase the nice little board below:
Most of the Explore Embedded PIC Development boards come with standard pin breakouts for the UART. These come with a female header and and the UART comes with a corresponding male header. You can directly plug and mate them.
In case, you do not have this setup you'll have to make the connections listed below:
USB to UART | PIC Micro-controller | e.g PIC16877A pins/names |
---|---|---|
RXD | TXD | 25 (RC6/TX) |
TXD | RXD | 25 (RC7/RX) |
DTR | RESET | 1 (MCLR) |
GND | GND | 12 (VSS) |
VCC | VCC | 11 (VDD) |
The images below show the connections for the PIC Ultra Development board and also the breakout out board. You can use any of the ways, depending the boards that you have.
Ensure that the DTR jumper is placed as shown in the images. Connection with the Ultra PIC base board
Connection with the PIC breakout board
Software Setup and usage
Download and install the DS30 bootloader gui.
- Browse the hex file
- Select the appropriate MCU
- Select the baud rate as 9600
- Select the correct com port detected on your computer, when using USB to serial convertor check for exact COM port number in device manager
Step 3: The board uses DTR pin of the CP2102 USB to Serial Convertor to reset the MCU. Set it up as shown in the image below.
Step 4: Click on the write option to flash the hex file,. Images below show the sequence.
Resources and Downloads
Restoring the bootloader
In case you've replaced or damaged the IC shipped with the board, follow the tutorial below:
- Restoring the bootloader
Ultra PIC Board Test
The Explore Ultra PIC Kit comes with all the things required, not just for this experiment but for the entire series. And even if you think of migrating to PIC or Arduino, you'll have breakout...

Cp2102 Usb-to-Serial Driver Installation
In this tutorial, we will see how to install the Cp2102 Usb to Serial Drivers. Download the Usb2Serial drivers for this link and follow the below steps to install the Usb-To-Serial drivers...

Flashing Hex File Using Pickit2
In this tutorial we will see how to upload hex file using the below PICKit 2 programmer. Installing Pickit 2 Software Download and Install the Pickit2 software from...

PIC Software Setup
In this tutorial we will see how to setup a Mplabx project to generate .hex file for Pic16f877a MPLABx Setup Steps Step1: Open the MPLABx software and select the...