...
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.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.
Sync the Telink "Burning EVK" with the target:
Code Block sudo tcdb 9518 sws
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 the0x
prefix (eg1000
,ff000
).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.
...