diff --git a/scripts/flashing/efr32_firmware_utils.py b/scripts/flashing/efr32_firmware_utils.py index a6238874df6c51..35812f847c3507 100755 --- a/scripts/flashing/efr32_firmware_utils.py +++ b/scripts/flashing/efr32_firmware_utils.py @@ -22,7 +22,7 @@ usage: efr32_firmware_utils.py [-h] [--verbose] [--erase] [--application FILE] [--verify_application] [--reset] [--skip_reset] [--commander FILE] [--device DEVICE] - [--serialno SERIAL] + [--serialno SERIAL] [--ip ADDRESS] Flash EFR32 device @@ -36,6 +36,8 @@ Device family or platform to target --serialno SERIAL, -s SERIAL Serial number of device to flash + --ip ADDRESS, -a ADDRESS + Ip Address of the targeted flasher operations: --erase Erase device @@ -90,6 +92,14 @@ 'metavar': 'SERIAL' }, }, + 'ip': { + 'help': 'Ip Address of the probe connected to the target', + 'default': None, + 'alias': ['-a'], + 'argparse': { + 'metavar': 'ADDRESS' + }, + }, }, } @@ -102,7 +112,8 @@ def __init__(self, **options): self.define_options(EFR32_OPTIONS) # Common command line arguments for commander device subcommands. - DEVICE_ARGUMENTS = [{'optional': 'serialno'}, {'optional': 'device'}] + DEVICE_ARGUMENTS = [{'optional': 'serialno'}, { + 'optional': 'ip'}, {'optional': 'device'}] def erase(self): """Perform `commander device masserase`."""