Skip to content

Add offset argument to program #70

Open

Description

@kivkiv12345

When programming fails, a suggested resume offset is printed, but this is only a valid argument to upload not program.

  Upload 70912 bytes to node 6986 addr 0x22000
  ................................ - 6 K
  ................ - 9 K
Upload didn't complete, suggested offset to resume: 8448
Usage: program [OPTIONS...] <slot>

  -h, --help                display this help
  -n, --node=NUM            node address in decimal or name (default = 6986)
  -f, --file=FILENAME       File to upload (Searches recursively by default)
  -F, --force               Do not ask for confirmation before programming
  -C, --crc32               Compare CRC32 as a program success criteria
  -w, --window=NUM          rdp window (default = 3 packets)
  -c, --conn_timeout=NUM    rdp connection timeout (default = 10000)
  -p, --packet_timeout=NUM  rdp packet timeout (default = 5000)
  -k, --ack_timeout=NUM     rdp max acknowledgement interval (default = 2000)
  -a, --ack_count=NUM       rdp ack for each (default = 2 packets)
Usage: upload [OPTIONS...] <file> <address>

  -h, --help                display this help
  -n, --node=NUM            node address in decimal or name (default = 6986)
  -t, --timeout=NUM         timeout (default = <env>)
  -v, --version=NUM         version (default = 1)
  -o, --offset=NUM          byte offset in file (default = 0)
  -w, --window=NUM          rdp window (default = 3 packets)
  -c, --conn_timeout=NUM    rdp connection timeout (default = 10000)
  -p, --packet_timeout=NUM  rdp packet timeout (default = 5000)
  -k, --ack_timeout=NUM     rdp max acknowledgement interval (default = 2000)
  -a, --ack_count=NUM       rdp ack for each (default = 2 packets)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions