Difference between revisions of "Updating ZWIR4512 Firmware"

From InCircuit
Jump to: navigation, search
(Created page with 'To update the firmware of an ICradio ZWIR Module using an ICnova SAM9G45, the module can be programmed in system in most cases. === Requirements === ==== Hardware ==== The re…')
 
(Software)
 
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
To update the firmware of an ICradio ZWIR Module using an ICnova SAM9G45, the module can be programmed in system in most cases.  
+
To update the firmware of an ICradio ZWIR Module using an SAM9G45, the module can be programmed in system in most cases.  
  
 
=== Requirements ===
 
=== Requirements ===
Line 14: Line 14:
 
==== Software ====
 
==== Software ====
  
The Software needed to upload a new firmwarefile can be found at [[media:icradio_update_bin.tar.bz2]]. The contents of this archive, especially the file icradio_update have to be accessible from the ICnova.
+
The Software needed to upload a new firmwarefile can be found at [[media:Icradio_update_bin.tar.bz2]]. The contents of this archive, especially the file icradio_update have to be accessible from the ICnova.
 
+
  
 
=== Configuration of the Updater ===
 
=== Configuration of the Updater ===
Line 35: Line 34:
  
 
If the pins are connected using GPIOs, the sequence will be handled by the update-software.
 
If the pins are connected using GPIOs, the sequence will be handled by the update-software.
The firmwarefile itself should be present as an ihex-file.
+
The firmwarefile itself should be present as a hex-file.
 
Finally the firmware can be uploaded by using the following command:
 
Finally the firmware can be uploaded by using the following command:
  
 
   ./icradio_update -f example.com -F firmware.hex
 
   ./icradio_update -f example.com -F firmware.hex
  
[[Category:ICnova_SAM9G45]] [[Category:ICradio ZWIR Modules]]
+
[[Category:ICnova_SAM9G45]] [[Category:ICradio ZWIR Modules]] [[Category:HowTo]]

Latest revision as of 15:32, 31 January 2017

To update the firmware of an ICradio ZWIR Module using an SAM9G45, the module can be programmed in system in most cases.

Contents

[edit] Requirements

[edit] Hardware

The requirements to do so are the following:

  • The ICradio UART is accessible on the ICnova
  • The bootselect and reset pins of the ICradio are either connected directly to the ICnova or can be set manually

If the pins are accessible as GPIOs, the corresponding GPIO-Numbers have to be known. These are referenced by their pin-names in the following text.

[edit] Software

The Software needed to upload a new firmwarefile can be found at media:Icradio_update_bin.tar.bz2. The contents of this archive, especially the file icradio_update have to be accessible from the ICnova.

[edit] Configuration of the Updater

To update the firmware a suitable configurationfile must be present. To start with, the file example.conf from the archive can be used. The most important parameters in this file are:

  • device by default this uses ttyS1. If the ICradio is connected to another port or via USB, the correct tty has to be specified using this parameter
  • resetpin is the GPIO-number of the resetpin. This parameter has to be deleted, if the pin on the ICradio is toggled manually.
  • bspin is the GPIO-number of the bootselect pin. This parameter has to be deleted, if the pin on the ICradio is toggled manually.

[edit] Updating the Firmware

If the bs and resetpins are not connected via GPIOs, bring the board into bootloader-mode by following this sequence:

  • activate the reset-pin
  • activate the bootselect-pin
  • deselect the reset-pin
  • deselect the bootselect-pin

If the pins are connected using GPIOs, the sequence will be handled by the update-software. The firmwarefile itself should be present as a hex-file. Finally the firmware can be uploaded by using the following command:

 ./icradio_update -f example.com -F firmware.hex
Personal tools