Skip to main content

Unofficial python module for flashing TI devices.

Project description

Python Versions CCS Versions License: MIT Downloads

An unofficial Python flash programmer for Texas Instruments Launchpads.

Read The Docs

Please see the readthedocs page for the most up to date documentation.

Getting Started

TIFlash uses Texas Instruments’s Code Composer Studio scripting interface (Debug Server Scripting) to flash devices. It’s essentially a python/command line interface for CCS. This is helpful when just needing to perform simple actions like flashing, erasing or resetting a device without having to spin up an entire CCS GUI session.

Follow the steps below to get TIFlash set up on your computer.

Prerequisites

You will need to have Code Composer Studio installed along with drivers for any devices you plan to use (offered during installation of CCS or available in CCS’s Resource Explorer).

You’ll also need Python installed on your computer, either 2.7 or 3.6+ (preferred) will work.

Installing

Install TIFlash via PyPi (recommended)

pip install tiflash

Install via git repo (used for development)

git install https://github.com/webbcam/tiflash.git
cd tiflash
pip install -r requirements.txt
pip install -e .

Quickstart

TIFlash can be used via Python directly or using the commandline.

Command Line

Installing TIFlash via pip will install the commandline application.

From a command prompt:

tiflash -h      # display help menu
tiflash -s L4000CE flash /path/to/image.hex -o ResetOnRestart True

For more commandline examples see the CLI docs

Python

TIFlash can also be used directly in your Python scripts.

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

For more python examples see the API docs

Contributing

Please read CONTRIBUTING.rst for details on the process for submitting pull requests to us.

Versioning

For the versions available, see the tags on this repository.

Authors

  • Cameron Webb - Initial work - webbcam

See also the list of contributors who participated in this project.

License

This project is licensed under the MIT License - see the LICENSE file for details

Disclaimer

Please see the Disclaimer.

Acknowledgments

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

tiflash-1.3.0.tar.gz (43.8 kB view details)

Uploaded Source

Built Distributions

tiflash-1.3.0-py3-none-any.whl (56.9 kB view details)

Uploaded Python 3

tiflash-1.3.0-py2-none-any.whl (56.9 kB view details)

Uploaded Python 2

File details

Details for the file tiflash-1.3.0.tar.gz.

File metadata

  • Download URL: tiflash-1.3.0.tar.gz
  • Upload date:
  • Size: 43.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for tiflash-1.3.0.tar.gz
Algorithm Hash digest
SHA256 e625799af4907604d3cbf23448b75c30eb1925ef4943d942f51cd131f9ae568b
MD5 5387ef9b71efe1701b83fb8941173263
BLAKE2b-256 5f30591a4992cc553ebd01b48fdfdfcb3b25726d5428d28f0f90f1834d02aac1

See more details on using hashes here.

File details

Details for the file tiflash-1.3.0-py3-none-any.whl.

File metadata

  • Download URL: tiflash-1.3.0-py3-none-any.whl
  • Upload date:
  • Size: 56.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for tiflash-1.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 35608a6296500ec4269d69e84224b958a7825a4d5c0f0fef4d361edadf5f3167
MD5 36456de9f6f8ee285c63c49bd5da3de3
BLAKE2b-256 e5ea22f083a7c3565d751db50cd5392bb14c054348c9da00b35bd179acf6573b

See more details on using hashes here.

File details

Details for the file tiflash-1.3.0-py2-none-any.whl.

File metadata

  • Download URL: tiflash-1.3.0-py2-none-any.whl
  • Upload date:
  • Size: 56.9 kB
  • Tags: Python 2
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for tiflash-1.3.0-py2-none-any.whl
Algorithm Hash digest
SHA256 7b4c50d38f1b3a6da143778dbd98aa0bf4a2806b2a2d5f07f4bd6f7dc8b95d61
MD5 b1262dfe6242f029bad77cb4585484ef
BLAKE2b-256 e37e4388fecf481a1829fea7281bd8b8b8bd9a37edd6c0d8e0bee0ace0d5325a

See more details on using hashes here.

Supported by

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