Command line arguments - LairdCP/UwFlashX GitHub Wiki

Command line arguments can be provided to UwFlashX to specify various configuration options, please note that for Mac, Linux and Windows the command line arguments are specified in the same manor, without hyphens, like so:

UwFlashX argument1 argument2 argument3=with_parameter argument4

Please also note that information about these command line parameters can be found from the about screen of UwFlashX.

AUTOMODE

Automatically starts the upgrade process at start-up.

AUTOEXIT

Automatically exits the application after the firmware upgrade has failed or completed (status will be returned in the exit code)

COM=n

Windows: COM[1..255] specifies a comport number

GNU/Linux: /dev/tty[device] specifies a TTY device

Mac: /dev/[device] specifies a TTY device

PORT=n

Same as COM=n

MAXBAUD=n

[1200..5000000] Maximum baud rate to use during firmware upgrade process. Could be limited to 115200 depending on PC hardware (limited to 230400 on most Macs). Generally, this command should not be used

EXACTBAUD=n

[1200..5000000] Similar to maximum baud rate option above but specifies the exact baud rate to use during firmware update process. Could be limited to 115200 depending on PC hardware (limited to 230400 on most Macs). Generally, this command should not be used

APPLICATIONBAUD=n

[1200..5000000] Should be set to the baud rate of the application which is used to enter the bootloader

BOOTLOADERBAUD=n

[1200..5000000] Should be set to the baud rate of the bootloader

REBOOT=n

[Reboot module after upgrade :: 0=No, 1=Yes]

ENTRANCE=n

[Bootloader entrance method :: 0=None, 1=AT+FUP (smartBASIC), 2=FTDI reset with AT+FUP (BL654 USB dongle), 3=FTDI reset (Pinnacle 100)]

NOPROMPTS

Will not prompt for errors or warnings when using an FTDI reset mode to launch the bootloader

UWF=filename

File path and name of the upgrade file to use.

UBU=filename

Same as UWF=filename

KEY=string

Optional read/write access unlock key, if a key has been programmed into the module.

VERIFY=n

[Verify written data :: 0=No, 1=Yes]

UARTBREAK=n

[Send UART BREAK prior to upgrade :: 0=No, 1=Yes]

DTS=n

[DTS line status during UART BREAK :: 0=Deasserted, 1=Asserted]

DISABLEENHANCED

Disables the enhanced bootloader functionality and instead forces legacy mode.