User Tools

Site Tools


installculfirmware

This is an old revision of the document!


Installing CUL Firmware

The CUL-stick has a ATMega32U4 processor on board and it has to be loaded with firmware in order to work. There is a special CUL-firmware developed for NetHomeServer, which works together with the encoders and decoders in NetHomeServer and ProtocolAnalyzer.

The firmware is in a file called NetHomeCUL.hex. In order to install this firmware on the CUL-stick you need the FLIP-tool from Atmel. Flip run on both Windows and Linux.

Here is a step by step instruction for how to install the firmware from a Windows PC:

1. Install Flip

Dowload Flip from the Flip download site and install it, but don't start it yet. Remember where you install Flip, you will need this location later.

2. Plug in CUL-stick in programming mode

This requires some dexterity… Unplug the CUL-Stick (if you have it plugged in). Locate the tiny button on the bottom just below the USB socket.

 CUL Switch

Now you have to press this button and keep it pressed WHILE you plug in the CUL-Stick. This is easier if you have the CUL-stick connected to an USB extension cable. In that case you can press the button with one hand and then plug the other end of the cable into the USB socket on your computer with the other hand. If you succeed windows will discover new hardware - then you can move to the next step. The LED on the CUL-stick should not be on.

3. Install USB-drivers

 Installing USB drivers

When windows asks for the new drivers, select to install from a specific location and browse to the location where you installed Flip, there you will find a folder called usb (for example: C:\Program Files\Atmel\Flip 3.3.4\usb). Select this folder and let Windows install the drivers.

4. Start Flip and connect

Start the Flip program.

  • Press the “Select A Target Device”-button and select “AT90USB162”
  • Press the USB-cable symbol and select “USB” in the menu.
  • Then select “Open” in the requester.

Now all buttons in the interface should become active: Flip

5. Backup current firmware

It might be a good idea to start by backing up the current firmware.

  • Press the “Read Target Device Memory”-button and press “ok”.
  • Select the menu Buffer→Options and select the radio button Whole Buffer
  • Select the menu File→Save Buffer As… and save the buffer as backup.hex
  • Select the menu Buffer→Options and select the radio button Last Loaded HEX File

6. Write new firmware

Now its finally time to write the new firmware

  • Select the menu File→Load HEX File
  • Browse to the NetHomeCUL.hex file and load it
  • Press the “Erase Target Device Memory”-button
  • Press the “Blank Check Target Device Memory”-button and see in the bottom of the window that it was ok
  • Press the “Program Target Device Memory”-button

The new firmware is now installed!

7. Run new firmware

To run the new firmware, unplug the CUL-Stick and then plug it in again (without pressing the little button). The Led should now start blinking!

installculfirmware.1275590224.txt.gz · Last modified: 2018/11/03 02:57 (external edit)