Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Connect the target board to the Telink "Burning EVK" via Swire as shown in the following picture:
    TBD
    - Connect EVK SWM pin to the target's SWS pin;
    - Connect the EVK 3V3 (5V) and GND pins to the target's 3V3 (5V) and GND pins, respectively.

  2. If the target is in the "sleep" mode, run the activate command:

    Code Block
    tcdb 9518 activate

    Note: The target may be completely inaccessible via Single Wire interface and will require resetting via an external source.

  3. Sync the Telink "Burning EVK" with the target:

    Code Block
    sudo tcdb 9518 sws
  4. Write a required firmware to the target:

    Code Block
    sudo tcdb 9518 wf <addr> -i <firmware file name> -b

    where
    -b specifies the binary file format;
    <addr> is an offset in the SoC's internal Flash. This value is hexadecimal, but it should be used without the 0x prefix (eg 1000, ff000).

  5. Reset the target using external reset or by power cycling the target.

...

where <addr> is an internal Flash block start offset (hexadecimal). The block size is 4K, so the offset should be multiply of 1000 (eg 1000, 2000, a000). -s is the required block count.
Note: tcdb can only erase one block at the time. Values other than 1 take no effect.

...