Skip to main content

Flasher for SMLIGHT CC26xx Devices

Project description

SMLIGHT CC Flasher

Firmware flasher for Texas Instruments CC13xx / CC26xx Zigbee SoCs.

Installation

$ pip install smlight-cc-flasher

Usage

While this flasher was based on cc2538-bsl, some CLI options have changed:

  • -p, --port is now -d, --device for input /dev/ttyUSB0 or socket://host:port
  • New --host to specify network host, as alternative to -d socket://host:port, however if specified with USB -d /dev/ttyUSB0, will attempt network BSL only.
  • -p, --port now specifies network port (default 6638)
  • New --m33 option, required for CC2654P10 chips (i.e SLZB-0xP10)
  • New -bootloader-reset <mode> to specify BSL mode
  • --read now outputs to dedicated file specified with --output <file>
  • Some other options removed.

See smlight-cc-flasher --help for more details.

Flashing Firmware Examples

USB (on Linux/Mac will attempt to autodetect device if not specified):

$ smlight-cc-flasher -ewv \
    [-d /dev/ttyUSB0] znp_LP_CC1352P7.hex

SLZB-06x over network:

$ smlight-cc-flasher -ewv \
    --host slzb-06.local [--port 6638] \
    znp_LP_CC1352P7.hex

or

$ smlight-cc-flasher -ewv \
    --device socket://10.42.0.2:6638 \
    znp_LP_CC1352P7.hex

SLZB-06P10 USB flash with network bootloader (currently SLZB authentication is not supported):

$ smlight-cc-flasher -ewv \
    --device /dev/ttyUSB0 --host slzb-06.local --m33 \
    znp_LP_CC1352P7.hex

Other notes

Bootloader settings from the new firmware are displayed before flashing. If the new firmware disables bootloader you are required to provide the --force flag to proceed with flashing.

For all the CC13xx and CC26xx families, the ROM bootloader is configured through the BL_CONFIG 'register' in CCFG. BOOTLOADER_ENABLE should be set to 0xC5 to enable the bootloader in the first place.

This is enough if the chip has not been programmed with a valid image. If a valid image is present, then the remaining fields of BL_CONFIG and the ERASE_CONF register must also be configured correctly:

  • Select a DIO by setting BL_PIN_NUMBER
  • Select an active level (low/high) for the DIO by setting BL_LEVEL
  • Enable 'failure analysis' by setting BL_ENABLE to 0xC5
  • Make sure the BANK_ERASE command is enabled: The BANK_ERASE_DIS_N bit in the ERASE_CONF register in CCFG must be set. BANK_ERASE is enabled by default.
Authors

Tim Lunn (c) 2024, tl@smlight.tech

Based on cc2358-bsl by:

Jelmer Tiete (c) 2014, jelmer@tiete.be

Loosely based on stm32loader by Ivan A-R ivan@tuxotronic.org

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

smlight_cc_flasher-0.1.5.tar.gz (82.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

smlight_cc_flasher-0.1.5-py3-none-any.whl (28.3 kB view details)

Uploaded Python 3

File details

Details for the file smlight_cc_flasher-0.1.5.tar.gz.

File metadata

  • Download URL: smlight_cc_flasher-0.1.5.tar.gz
  • Upload date:
  • Size: 82.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for smlight_cc_flasher-0.1.5.tar.gz
Algorithm Hash digest
SHA256 5110a9992ef0da37051a4d4668c0a2bfdb1d4eebc69499c0c43eb6c00e8760f5
MD5 5a4726010fa4dea3c0050d8d5d647aa9
BLAKE2b-256 2ad2a088b45f932d53a49beaf905a8e49e3f66cc25961eb80b771d85e875a294

See more details on using hashes here.

Provenance

The following attestation bundles were made for smlight_cc_flasher-0.1.5.tar.gz:

Publisher: python-publish.yml on smlight-tech/smlight-cc-flasher

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file smlight_cc_flasher-0.1.5-py3-none-any.whl.

File metadata

File hashes

Hashes for smlight_cc_flasher-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 cb10a9ca30505dff9f68ec0dc1eaae59e5cfa310bafc12bde0433e3fb50c922d
MD5 b12e4ddcb9bc9df577fbb38cf8245e8e
BLAKE2b-256 8cbc12f46f45b91aa03d356a0a6ddbe092972c05493dc022c78f8ee1ee0cde62

See more details on using hashes here.

Provenance

The following attestation bundles were made for smlight_cc_flasher-0.1.5-py3-none-any.whl:

Publisher: python-publish.yml on smlight-tech/smlight-cc-flasher

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page