U-Flash Instructions
U-Flash technology from CarNetix allows you to cost
effectively field upgrade your firmware or change your firmware to incorporate
new or changed features. The U-Flash process consists of the following steps:
- Purchase
a programmer.
- In
order to program the microprocessor in the CNX products you need to buy a
PIC (microprocessor) programmer. The most cost effective programmer is
the PIC-PG1 from www.sparkfun.com
(go to Programmers/PIC, then scroll down near
the bottom of the page to the PIC-PG1 serial programmer). The cost is $10.95
plus shipping.
- Download
and install the free ICPROG programming software from http://www.ic-prog.com/
- Download
the appropriate CarNetix firmware from this site. You should double check
to make sure the firmware matches the hardware revision number on your
circuit board.
- Program
the microprocessor.
The following are details of each step.
** CAUTION **
Before attempting to program your
PIC microprocessor, remove all jumpers from JP1 or reset them to their original
default position (open). If you leave
jumpers in a closed (shorted) position while programming, you may damage your
PIC programmer!!
- Purchase
the programmer.
- Make
sure you read through the on-line documentation at SparkFun.
Note that you must connect this device to a
serial port on your computer and provide (or buy) a serial cable to
connect it. Also note that this programmer does not work reliably with
laptop computers since it derives its operating voltages from the serial
port. Many laptops do not provide the appropriate voltages on the serial
port.
- There
are other PIC programmers that will work, but we can only provide support
for the PIC-PG1 programmer.
- Download
the appropriate firmware from the Firmware Upgrade Matrix on the CarNetix
website.
- Make
sure you select the firmware that is compatible with your PC board
revision number.
- Unzip
the firmware to a convenient location (i.e. your desktop).
- Download
and Install ICPROG programming software from http://www.ic-prog.com/
- Navigate
to the ICPROG site. Click on the download icon in the left pane. Then in
the download window, click on IC-Prog Software 1.05C Multi-Lingual.
Download and save this file to a convenient location. (i.e.
your desktop).
- Create
a new folder in your c:/programs directory called ICPROG and un-zip the
downloaded file there.
- Now
download Helpfile and unzip it to the same new ICPROG folder.
- If
you are using WinXP, NT,
or 2000, download the IC-Prog NT/2000 driver
and unzip it to the same new ICPROG
folder.
- Set up
ICPROG
- Plug
your programmer into an available serial port. Do not plug the programmer
into the CNX-P1260 yet!
-
** CAUTION **
Before attempting to program your
PIC microprocessor, remove all jumpers from JP1 or reset them to their original
default position (open). If you leave
jumpers in a closed (shorted) position while programming, you may damage your
PIC programmer!!
- Click
on the ICPROG icon in your ICPROG folder (you can create a shortcut on
your desktop for convenience if desired). Your ICPROG window should look similar
to this, or it may open directly to the Hardware Settings window.

- Select
the Microchip PIC 16F628 as the device to be programmed using:
i.
Settings/Device/Microchip PIC/More/16F628.
ii.
OR select PIC 16F628 from the drop down menu on the
toolbar.
- Select
the appropriate PIC programmer using:
i.
Settings/Hardware (or F3)
1. Under
Programmer select “JDM Programmer”
2. Select
the appropriate COM port where you have connected your programmer.
3. Select
“Direct I/O’ interface.
4. Leave
I/O delay at the default setting.



- If
you are using Win XP, NT, or 2000, you must enable the NT/2000/XP driver
by using:
i.
Settings/Options/Misc. and
check the Enable NT/2000/XP Driver check box.

- Load
the CarNetix CNX firmware into ICPROG by using:
i.
File/Open File/, then navigate to the firmware file
(.HEX) on your desktop. Hit enter.
ii.
The firmware file will now appear in the ICPROG upper window.
(Address – Program Code). Your window should look similar to this:

- In
the “Oscillator” drop down menu on the right side ICPROG select “IntRC I/O”.
- Uncheck
all of the “Fuses”.
** CAUTION **
Before attempting to program your
PIC microprocessor, remove all jumpers from JP1 or reset them to their original
default position (open). If you leave
jumpers in a closed (shorted) position while programming, you may damage your
PIC programmer!!
- Before
plugging in your PIC-PG1 programmer, MAKE SURE ALL OF THE JUMPERS ON THE
CNX-P1260 ARE IN THE “OPEN” POSITION. IF ONE OR MORE OF THE JUMPERS ARE IN
THE “SHORT” POSITION, IT MAY DAMAGE YOUR PROGRAMMER. The “open” position
is the factory default position.
- Plug
the programming cable of the PIC-PG1 into the white programming connector
on your CNX-P1XXX (see picture below). Note the polarity of the connector.

- Program
your CNX-P1XXX
- Erase
the contents of the PIC using:
i.
Command/Erase All.
ii.
If this process is successful you should receive a
confirmation window stating that the device is erased.

- Check
to see that the PIC flash memory is blank using:
i.
Command/Blank Check
ii.
If this process is successful you should receive a
confirmation window stating that the device is blank.

- Install
new firmware using:
i.
Command/Program All. Click on “YES” to verify that you
want to program the device.
ii.
This should start the programming process. If the
process is successful you will receive a confirmation window stating that the
device was successfully verified.

- The
programming process is now complete. Unplug the PIC-PG1 programmer, re-set
your jumpers to the desired position, and re-install your CNX-P1XXX.