Flash Programmer

Application software is installed in a rewritable flash ROM in the TOCOS wireless engine.

You do not need to install the software development environment (SDK) if you use TWE-ZERO or a sample execution binary file (*.bin) and do not develop any own software.

To write the execution binary file (*.bin) to the wireless engine TWE-001 series, you need to install Flash Programmer and set up the driver for the USB-UART conversion cable.

The following describes the minimum required setup procedure.

The description assumes that you have our ZigBee / IEEE802.15.4 / Evaluation and Development Kit, but you can alternatively provide equivalent software separately.

*Writing requires the ZigBee/ IEEE802.15.4 Evaluation and Development Kit or Writing Jig.
*You need the ZERO-licensed wireless engine to use TWE-ZERO.

Set up Flash Programmer v1.7.2

This section assumes that you know how to install an application or driver on Windows.

    Install Flash Programmer 1.7.2.
  • Decompress JN-SW-4007-Flash-Programmer_v1.7.2.zip in a given location.
  • Confirm that the "Tools" folder created by decompression contains the "Drivers" and "flashprogrammer" folders.
    The "flashprogrammer" folder contains the software to write flash.
    The "Drivers" folder contains the driver necessary to connect the UART-USB cable.

Connect UART-USB Cable

Set up your computer so the UART-USB cable supplied with the evaluation and development kit for the TOCOS wireless engine can be used with your PC. This cable is used for writing or debugging firmware.

  • Insert the cable to a USB port of your computer. SDK_howto_FTDI_cable
  • Windows requires you to install the driver.
  • The driver is stored in the decompression destination of JN-SW-4007-Flash-Programmer_v1.7.2.zip above:
    [\Tools\Drivers\FTDI_drivers\CDM_2.08.14_WHQL_Certified]. Specify this folder to install the driver.
  • You are required to install the driver again since the driver is the 2-layer hierarchical structure. Specify the folder you specified in the previous Step.
  • When the driver configuration is completed, the COM port will become available. Check the port on the Device Manager.
    SDK_howto_FTDI_dev

How to Download the File to Flash ROM

Write the execution binary file (.bin) of the application into the flash ROM of the wireless engine.

  • Connect to your computer the UART-USB cable supplied with the evaluation and development kit for the TOCOS wireless engine, and check the COM port (see above).
  • Check that the wireless sensor substrate supplied with the evaluation and development kit for the TOCOS wireless engine is powered OFF, and connect the six-pin socket at the UART to UART0 of a wireless sensor substrate (large or small). Insert the socket such that Pin 1 of UART0 is the black line.
    EvalKit_UART_cable
  • Activate the power while pressing the PROGRAM button on the wireless sensor substrate, and then release the PROGRAM button. This operation switches the wireless engine to the program mode.
    *Alternatively, press the RESET button while pressing the PROGRAM button when the power is activated, and then release the PROGRAM button.
  • Execute FlashGUI.exe to activate Jennic Flash Programmer (stored in the \Tools\flashprogrammer folder).
    SDK_howto_flashp172
  • While the wireless engine is in the program mode, select a COM port (which can be automatically selected). Values appear in the Device, Flash and AMC Address columns to check the connection between the write tool and wireless engine.
    *Press the Refresh button if the display has not been updated so the wireless engine information will be acquired again.
    *If the wireless engine is not in the program mode, an error message appears in a few seconds. Then, configure the mode again and press the Refresh button.
  • Specify the execution binary file (*.bin) to be written in the Program File.
  • Press the Program button.
    *The program can be written at high speed by setting the baud rate at 115200.
    *Verification for writing can be skipped by ticking Skip Verification.
  • When writing is successfully completed, the following dialog appears. This is the end of the writing process. Power off the sensor substrate once. Subsequently, writing of other wireless modules is ready to be executed.
    *The program could be destroyed if you remove the module or cable or power off the unit. Therefore, make sure writing is completed.
    SDK_howto_flashp_success

Reference:
See "Evaluation and Development Kit (Introduction)" if you need the development environment (SDK) in developing software.