Skip to content

Commit 2f4f963

Browse files
EntepotenzKoenkk
andauthored
Add simple docker command for upgrading firmware (Koenkk#1622)
* Add simple docker command for upgrading firmware Add simple docker command for upgrading firmware by cc2538-bsl * Update flashing_via_cc2538-bsl.md * Update flashing_via_cc2538-bsl.md Co-authored-by: Koen Kanters <[email protected]>
1 parent c031418 commit 2f4f963

File tree

1 file changed

+16
-4
lines changed

1 file changed

+16
-4
lines changed

docs/guide/adapters/flashing/flashing_via_cc2538-bsl.md

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,19 @@ CC2538-bsl is a python script by [Jelmer Tiete](https://github.com/JelmerT) that
88

99
In this case we use a Sonoff Zigbee 3.0 USB Dongle Plus and flash the firmware without opening the case to press the "Boot" button.
1010

11-
## Prepare your system (debian based)
11+
## Method with Docker (Linux only)
12+
```bash
13+
docker run --rm \
14+
--device /dev/ttyUSB0:/dev/ttyUSB0 \
15+
-e FIRMWARE_URL=https://github.com/Koenkk/Z-Stack-firmware/raw/master/coordinator/Z-Stack_3.x.0/bin/CC1352P2_CC2652P_launchpad_coordinator_20220219.zip \
16+
ckware/ti-cc-tool -ewv -p /dev/ttyUSB0 --bootloader-sonoff-usb
17+
```
18+
19+
You can find details on the Docker command [here](https://github.com/git-developer/ti-cc-tool)
20+
21+
## Method without Docker
22+
23+
### Prepare your system (debian based)
1224

1325
1. Install python and python-pip.
1426
```bash
@@ -18,7 +30,7 @@ sudo apt update && sudo apt install python3 python3-pip
1830
```bash
1931
sudo pip3 install pyserial intelhex
2032
```
21-
## Download cc2538-bsl
33+
### Download cc2538-bsl
2234
3. Create a directory named "cc2538-bsl", download the last master of cc2538-bsl as tarball and extract in same folder.
2335
```bash
2436
mkdir cc2538-bsl
@@ -28,7 +40,7 @@ curl -sSL https://github.com/JelmerT/cc2538-bsl/archive/refs/heads/master.tar.gz
2840

2941
The sonoff feature is in the master since 20.01.2022.
3042

31-
## Download the Firmware
43+
### Download the Firmware
3244
Download the firmware for your adapter from the [Supported adapter page](../README.md) and unzip it in the `c2538-bsl` directory. So everything needed is in one folder.
3345

3446
4. In this case we will flash `CC1352P2_CC2652P_launchpad_coordinator_***.zip`.
@@ -60,7 +72,7 @@ Write 104 bytes at 0x00057F988
6072
Verifying by comparing CRC32 calculations.
6173
Verified (match: 0xe0c256fd)
6274
```
63-
## How-to check the installed firmware version
75+
### How-to check the installed firmware version
6476
Zigbee2MQTT will output the installed firmware version to the Zigbee2MQTT log on startup:
6577
```
6678
Zigbee2MQTT:info 2022-01-05 22:36:34: Coordinator firmware version: '{"meta":{"maintrel":1,"majorrel":2,"minorrel":7,"product":1,"revision":20220219,"transportrev":2},"type":"zStack3x0"}''

0 commit comments

Comments
 (0)