cc2538-bsl: -p/--port option seems broken

Hi guys,

I’m trying to flash my Sonoff dongle version P as usual, but it fails with this error:

cc2538-bsl.py: error: argument -p/--port: invalid int value: '/dev/ttyUSB1'

Here is the command I use (using docker):

docker run --rm --device /dev/ttyUSB1:/dev/ttyUSB1 -e FIRMWARE_URL=https://github.com/Koenkk/Z-Stack-firmware/raw/Z-Stack_3.x.0_coordinator_20230507/coordinator/Z-Stack_3.x.0/bin/CC1352P2_CC2652P_launchpad_coordinator_20230507.zip ckware/ti-cc-tool -ewv -p /dev/ttyUSB1 --bootloader-sonoff-usb

I double checked the port on which the Sonnoff dongle is connected.

After reading the commit history, I can see some changes have been made to use argparse (https://github.com/JelmerT/cc2538-bsl/commit/f42a2e252f27a6e489c3f76e63ec9543121c29dd#diff-9d6356e73eb9065e1b5a72ad6cfd71d5c08cd22b7be6cb08d6318aa51885a93eR1061)

The option expects an int value and port seems to be dynamically retrieved from /dev/. So I tried several things, but it always fails.

Any help appreciated. Thanks.

About this issue

  • Original URL
  • State: closed
  • Created 4 months ago
  • Comments: 16 (6 by maintainers)

Commits related to this issue

Most upvoted comments

No need to run out of patience:

  • A workaround was advertised in this thread if you need a working image.
  • The issue has an open PR!163.
  • In case you’re affected by the issue #162, there’s an open PR!165, too.

Subscribe the PRs and you will be notified on any change.

The container image is updated.

Fixed with #163 👍 Thanks for reporting @6wheels

To minimize further irritations, I updated the latest tag of image ckware/ti-cc-tool to point to the last working version 2024-01-28.

You can use the previous image ckware/ti-cc-tool:2024-01-28 as a workaround.