CC13XX + CC26XX

Below are common example commands specific for Texas Instruments’ CC13XX and CC26XX devices.

IEEE Address (Read)

Obtaining a device’s IEEE Address

Python

>>> tiflash.get_option("DeviceIeeePrimary", pre_operation="ReadPriIeee", serno="L4000CE")

00:12:4B:00:11:22:33:44

CLI

$ tiflash -s L4000CE options-get DeviceIeeePrimary --operation "ReadPriIeee"

00:12:4B:00:11:22:33:44

IEEE Address (Write)

Writing a device’s Secondary IEEE Address

Python

>>> tiflash.set_option("DeviceIeeeSecondary", "12:34:56:78:9A:BC:DE:F0", serno="L4000CE", post_operation="WriteSecIeee")

CLI

$ tiflash -s L4000CE options-set "DeviceIeeeSecondary" "12:34:56:78:9A:BC:DE:F0" -op "WriteSecIeee"

Writing a device’s Secondary IEEE Address (when flashing)

Python

>>> opts = {"DeviceIeeeSecondary": "12:34:56:78:9A:BC:DE:F0", "OverrideIeeeSecondaryAddr": True}
>>> tiflash.flash("/path/to/image.hex", serno="L4000CE", options=opts)

True

CLI

$ tiflash -s L4000CE flash "/path/to/image.hex" -o DeviceIeeeSecondary "12:34:56:78:9A:BC:DE:F0" -o OverrideIeeeSecondaryAddr True

True

BLE Address (Read)

Obtaining a device’s BLE Address

Python

>>> tiflash.get_option("DeviceBlePrimary", pre_operation="ReadPriBle", serno="L4000CE")

00:81:F9:11:22:33

CLI

$ tiflash -s L4000CE options-get DeviceBlePrimary --operation "ReadPriBle"

00:81:F9:11:22:33

BLE Address (Write)

Writing a device’s Secondary BLE Address

Python

>>> tiflash.set_option("DeviceBleSecondary", "12:34:56:78:9A:BC:DE:F0", serno="L4000CE", post_operation="WriteSecBle")

CLI

$ tiflash -s L4000CE options-set "DeviceBleSecondary" "12:34:56:78:9A:BC:DE:F0" -op "WriteSecBle"

Writing a device’s Secondary BLE Address (when flashing)

Python

>>> opts = {"DeviceBleSecondary": "12:34:56:78:9A:BC", "OverrideBleSecondaryAddr": True}
>>> tiflash.flash("/path/to/image.hex", serno="L4000CE", options=opts)

True

CLI

$ tiflash -s L4000CE flash "/path/to/image.hex" -o DeviceBleSecondary "12:34:56:78:9A:BC" -o OverrideBleSecondaryAddr True

True

Flash Erase - All Unprotected Sectors

Erase entire Flash on device before flashing image

Python

>>> opts = {"FlashEraseSetting" : "All Unprotected Sectors"}
>>> tiflash.flash("/path/to/image.hex", options=opts, serno="L4000CE")

True

CLI

$ tiflash -s L4000CE flash "/path/to/image.hex" -o "FlashEraseSetting" "All Unprotected Sectors"

True

Flash Erase - Necessary Sectors Only

Erase Necessary Sectors Only of Flash on device before flashing image (default option)

Python

>>> opts = {"FlashEraseSetting" : "Necessary Sectors Only"}
>>> tiflash.flash("/path/to/image.hex", options=opts, serno="L4000CE")

True

CLI

$ tiflash -s L4000CE flash "/path/to/image.hex" -o "FlashEraseSetting" "Necessary Sectors Only"

True

Flash Erase - Program Load Only

Program Load Only (do not erase any sectors of flash) when flashing image on to device

Python

>>> opts = {"FlashEraseSetting" : "Program Load Only (do not erase sectors)"}
>>> tiflash.flash("/path/to/image.hex", options=opts, serno="L4000CE")

True

CLI

$ tiflash -s L4000CE flash "/path/to/image.hex" -o "FlashEraseSetting" "Program Load Only (do not erase sectors)"

True

Reset After Flash

Reset the device after flashing

Python

>>> opts = {"ResetOnRestart" : True}
>>> tiflash.flash("/path/to/image.hex", options=opts, serno="L4000CE")

True

CLI

$ tiflash -s L4000CE flash "/path/to/image.hex" -o "ResetOnRestart" "True"

True

Device Revision

Get device’s Revision Number

Python

>>> tiflash.get_option("DeviceInfoRevision", serno="L4000CE")

"2.1"

CLI

$ tiflash -s L4000CE options-get DeviceInfoRevision

2.1

Device RAM Size

Get RAM size on device

Python

>>> tiflash.get_option("DeviceInfoRAMSize", serno="L4000CE")

"80 KB"

CLI

$ tiflash -s L4000CE options-get DeviceInfoRAMSize

80 KB

Device Flash Size

Get Flash size on device

Python

>>> tiflash.get_option("DeviceInfoFlashSize", serno="L4000CE")

"352 KB"

CLI

$ tiflash -s L4000CE options-get DeviceInfoFlashSize

352 KB