Difference between revisions of "Bootloader AVR109"

From InCircuit
Jump to: navigation, search
m (added baudrate information)
Line 9: Line 9:
 
To update the application any AVR109 compatible program can be used. The following examples will present the usage of ''avrdude''. This can be downloaded at http://www.ic-board.de/shop_content.php?coID=9 for example.
 
To update the application any AVR109 compatible program can be used. The following examples will present the usage of ''avrdude''. This can be downloaded at http://www.ic-board.de/shop_content.php?coID=9 for example.
  
The first step is always to gather the information on which UART or COM-Port the ICradio is connected. Using the ICradio Stick 2.4G this is the same port as is used usally to communicate with the device. Using the ICradio Module 2.4G, we recommend either the usage of the ICradio Application Development Board or the USB-UART Bridge. Both will make the Modules UART available via a virtual COM Port. The following example will use the port COM3.
+
The first step is always to gather the information on which UART or COM-Port the ICradio is connected. Using the ICradio Stick 2.4G this is the same port as is used usally to communicate with the device. Using the ICradio Module 2.4G, we recommend either the usage of the ICradio Application Development Board or the USB-UART Bridge. Both will make the Modules UART available via a virtual COM Port. The following example will use the port COM3. All communication will use a baudrate of 38400.
  
 
To flash now a new application, eg. the file called main.hex, open a commandline and enter but not starting the command
 
To flash now a new application, eg. the file called main.hex, open a commandline and enter but not starting the command
  
   avrdude -c avr109 -P COM3 -p m1281 -U flash:w:main.hex
+
   avrdude -c avr109 -P COM3 -b 38400 -p m1281 -U flash:w:main.hex
  
 
Now the ICradio should either be reseted or disconnected and reconnected (and repowered this way) and as soon as the the device was detected again the entered command started.
 
Now the ICradio should either be reseted or disconnected and reconnected (and repowered this way) and as soon as the the device was detected again the entered command started.
  
 
[[Category:ICradio AVR Modules]]
 
[[Category:ICradio AVR Modules]]

Revision as of 12:30, 24 February 2011

The ICradio Module 2.4G and the ICradio Stick 2.4G contain a bootloader allowing the update of the application-software without a hardware debugging unit. While older modules used a proprietary protocol, all recent modules shipped after November 2010 are equipped with an AVR109 compatible bootloader. The ICradio Mini 2.4G are not shipped with a bootloader at all.

Boot strategy

After Power up or Reset the Device will enter the bootloader mode for 5 seconds. If there is no communication, the user application will be started. If an 'E' is received, the bootloader will start the application immediately. If some AVR109 compatible Tool start communicating the device within this time, the bootloader will stay running, until it is stopped by software.

Updating the Application

To update the application any AVR109 compatible program can be used. The following examples will present the usage of avrdude. This can be downloaded at http://www.ic-board.de/shop_content.php?coID=9 for example.

The first step is always to gather the information on which UART or COM-Port the ICradio is connected. Using the ICradio Stick 2.4G this is the same port as is used usally to communicate with the device. Using the ICradio Module 2.4G, we recommend either the usage of the ICradio Application Development Board or the USB-UART Bridge. Both will make the Modules UART available via a virtual COM Port. The following example will use the port COM3. All communication will use a baudrate of 38400.

To flash now a new application, eg. the file called main.hex, open a commandline and enter but not starting the command

 avrdude -c avr109 -P COM3 -b 38400 -p m1281 -U flash:w:main.hex

Now the ICradio should either be reseted or disconnected and reconnected (and repowered this way) and as soon as the the device was detected again the entered command started.

Personal tools