How to deploy

Upload with a TFTP client

The device comes with an integrated bootloader which enables firmware updates via TFTP.

Each bootloader uses the assigned MAC address 00-04-A3-00-00-00 and IP address 192.168.97.60. Via this MAC and IP the bootloader can be accessed directly. These default addresses are statically defined and can only be changed by recompiling the bootloader itself.

The only services that are available during bootloader operation are TFTP and ARP. ICMP (ping) and other services are not implemented.

TFTP operation on clean or faulty devices

On clean devices the bootloader is active by default. The active bootloader is indicated by a fast blinking link LED.

If an application is installed the bootloader stays active after power cycling for approx. two seconds.

To access the bootloader directly, the bootloader's IP address must be on the same subnet as your computer. For the default 192.168.97.60 IP address, you must temporarily change the settings on your PC.

The following instructions assume you are using Microsoft Windows XP and will vary for other operating systems.

  1. Open Network Connections.
    networkconnect1.jpg

  2. Right click on the network adapter that you are using to communicate with the bootloader and choose Properties.
    networkconnect2.jpg

  3. Select Internet Protocol (TCP/IP) and click Properties.
    networkconnect3.jpg

  4. Select Use the following IP address and then enter the IP address 192.168.97.61.
    networkconnect4.jpg

    Click OK and then Close on the previous dialog to close them and set the new address.

After completing the TFTP upload process, restore your PC's IP address settings to allow normal network activity and access to the application you bootloaded.

TFTP operation on running applications

If an already deployed application is compiled with the Reboot module of the Microchip TCPIP Stack, the build process can be started sending TFTP packets to the device.

Since Netzer Version 1.3 the Reboot module must be explicitly activated via the web interface (common settings, see image below). This can only be done due an user with administrative rights.

webinterface_permit_firmware_upload_en.jpg

Once a TFTP packet received the device enters the bootloader automatically. IP address and MAC address of the application are adopted by the bootloader. Therefore no network settings must be changed in case the device application was accessable before.

TFTP Operation

Most operating systems come with a TFTP client built in. In Microsoft Windows, this utility is named tftp.exe. This utility is a very simple console application which can be used to upload your application .hex file over the network to the bootloader. To perform a Flash upgrade using the tftp.exe client, follow these procedures:

  1. Enter the bootloader mode like described above.
  2. At a console, execute the following command. Make appropriate path changes to the hex file.
    tftp 192.168.97.60 put "eWicht.hex" 
  3. If successful, the TFTP client will indicate how long the transfer took.
  4. The bootloader does data read back verification shortly after writing and does not need a second step to read back the Flash contents. If a verification error occurs, the error will be immediately reported to the TFTP client.

With the ICD2

When a new bootloader must be programmed or you want to debug an application you have to connect with a programming device like the ICD2.

Before connecting the enclosure of the eWicht must be opened: The 5 wire (VCC, GND, PGD, PGC, MCLR) interface of the ICD2 must be connected to the pads (see the red circle in the image below).

icd2conns.jpg

Cutout of the Netzer top placement


Important Note: VCC must NOT be powered from the ICD2. Use an external 3.3 Volt power supply instead!

If you have problems connecting to Netzer C107 should be removed.

Generated on Fri Mar 29 10:34:28 2013 for Netzer by  doxygen 1.5.5