User guide
Atmel AVR2054: Serial Bootloader User Guide [APPLICATION NOTE]
8390D−WIRELESS−03/2015
20
4.1.3 Using the command line
MCU programming with PC Bootloader tool can be also done via command line interface as follows:
bootloader –f <file_name> –p <com_port> [-e <eeprom size>]
For example following line:
bootloader –f C:\work\SerialNet_ZigBit_Rf230B.srec –p COM4
can be used to load C:\work\SerialNet_ZigBit_Rf230B.srec image via port enumerated as COM4. Figure 4-2
shows a screenshot with an example of successful firmware upload using command line control.
Note: With the command line COM-port settings will be automatically used as given in Table 2-1 and cannot be changed.
Besides, when the
-e <eeprom_size> option is specified the EEPROM section is cleared.
To see help information run:
bootloader -h
Figure 4-2. Loading application firmware using command line control of PC Bootloader tool.
4.1.3.2 Command line options
Table 4-1 describes set of command line options supported by the PC bootloader tool and corresponding GUI control
elements (the GUI window is shown on Figure 4-1). Options can be entered in any order.
Table 4-1. Command-line options and corresponding GUI controls.
Command line option GUI control Description
-h
N/A Print help information
-f Select SREC file Path to the firmware image of SREC
format to be loaded to the MCU
-p
Select Serial port COM port number
-e EEPROM Erase Clean up EEPROM section. EEPROM size
shall be specified










