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:

 

  1. Purchase a programmer.
    1. 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.
  2. Download and install the free ICPROG programming software from http://www.ic-prog.com/
  3. 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.
  4. 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!!

 

 

 

 

  1. Purchase the programmer.       
    1. 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.
    2. There are other PIC programmers that will work, but we can only provide support for the PIC-PG1 programmer.
  2. Download the appropriate firmware from the Firmware Upgrade Matrix on the CarNetix website.
    1. Make sure you select the firmware that is compatible with your PC board revision number.
    2. Unzip the firmware to a convenient location (i.e. your desktop).
  3. Download and Install ICPROG programming software from http://www.ic-prog.com/
    1. 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).
    2. Create a new folder in your c:/programs directory called ICPROG and un-zip the downloaded file there.
    3. Now download Helpfile and unzip it to the same new ICPROG folder.
    4. If you are using WinXP, NT, or 2000, download the IC-Prog NT/2000 driver and unzip it to the same new ICPROG folder.
  4. Set up ICPROG
    1. Plug your programmer into an available serial port. Do not plug the programmer into the CNX-P1260 yet!
    2.  

** 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!!

 

 

    1. 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.

 

 

 

    1. 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.

    1. 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.

 

Select JDM Programmer

 

Select correct COM port

 

 

 

    1. 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.

 

Enable NT/2000/XP Driver

 

 

 

 

    1. 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:

 

 

 

    1. In the “Oscillator” drop down menu on the right side ICPROG select “IntRC I/O”.
    2. 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!!

 

  1. 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.
  2. 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.

 

 

 

 

  1. Program your CNX-P1XXX
    1. 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.

 

 

    1. 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.

 

 

 

    1. 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.

 

 

 

  1. 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.