Refactoring for tool "st-flash"
Fixed formatting for options display.
@@ -34,10 +34,10 @@ static void usage(void)
puts("stlinkv2/3 command line: ./st-flash [--debug] [--reset] [--serial <serial>] [--format <format>] [--flash=<fsize>] {read|write} <path> <addr> <size>");
puts("stlinkv2/3 command line: ./st-flash [--debug] [--serial <serial>] erase");
puts("stlinkv2/3 command line: ./st-flash [--debug] [--serial <serial>] reset");
- puts(" Use hex format for addr, <serial> and <size>.");
- puts(" fsize: Use decimal, octal or hex by prefix 0xXXX for hex, optionally followed by k=KB, or m=MB (eg. --flash=128k)");
- puts(" Format may be 'binary' (default) or 'ihex', although <addr> must be specified for binary format only.");
- puts(" ./st-flash [--version]");
+ puts(" <addr>, <serial> and <size>: Use hex format.");
+ puts(" <fsize>: Use decimal, octal or hex (prefix 0xXXX) format, optionally followed by k=KB, or m=MB (eg. --flash=128k)");
+ puts(" <format>: Can be 'binary' (default) or 'ihex', although <addr> must be specified for binary format only.");
+ puts("print tool version info: ./st-flash [--version]");
puts("example write option byte: ./st-flash --debug --reset --area=option write 0xXXXXXXXX");
puts("example read option byte: ./st-flash --debug --reset --area=option read > option_byte");
}
