AM13E232X BSL Toolkit - User Guide
Overview
The BSL Toolkit is a command-line utility for performing Bootstrap Loader (BSL) operations on AM13E232X TI MCUs. It enables device programming, memory verification, and factory reset through UART or I2C interfaces without requiring an external debugger.
Note
am13e230x is used as the device name in command examples below. Replace with other
supported device names based on the device you are using.
Feature List
Device Operations
Query Device Information — Retrieve basic Device Information
Read Memory — Read from any memory address with configurable start address and length
Erase MAIN Flash — Perform mass erase of entire MAIN flash memory
Erase Memory Ranges — Selectively erase specific memory ranges (sector-aligned)
Program Firmware — Write firmware to MAIN flash
Factory Reset — Erase NON-MAIN and MAIN Flash and program NON-MAIN with non-main config
Change Baud Rate — Dynamically switch UART communication speed during session
Start Application — Exit BSL and boot into user application
Communication Interfaces
The tool supports UART and I2C. It can use different backends; for example, it can use the COM port provided by USB to UART converters, or use the FT232H chip as a USB device.
Interface Connection Method Backend Options UART Direct COM ports (Windows, Linux, macOS) Serial COM Ports (native), FT232H (USB adapter) I2C FT232H USB-to-I2C adapter FT232H
The current support is enabled for UART through serial COM Ports.
For I2C mode support via FT232H Chips, refer to FT232H Setup Guide.
Supported Devices
The BSL Toolkit supports the following AM13E232X device variants:
AM13E23218
AM13E23219
AM13E232N9
Installation
Prerequisites
Python 3.12 or higher
Texas Instruments CCS (Code Composer Studio)
The tool does not support the building of main and non-main binaries. That is done through CCS.
Installation via pip
To install the BSL Toolkit:
pip install tools/am13e230x/ti_bsl_toolkit-x.x.x.whl
This command installs the wheel file via pip.
Verify Installation
After installation, verify that the toolkit is properly installed:
ti-bsl --version # Verify installation
CLI
The BSL Toolkit provides a CLI for executing the BSL operations.
Quick Start
ti-bsl --help # Show all commands and utilities
ti-bsl init # Setup the config file
ti-bsl <cmd> --help # Show detailed command help
ti-bsl <cmd> [CMD OPTIONS] # Execute the command
Note
During the BSL flow, you will be prompted to invoke the BSL if BSL is not active. Use any of the BSL invoking methods to invoke BSL and continue.
Command Mode
Execute a single command and exit.
ti-bsl info
ti-bsl mass-erase
Interactive Mode (REPL)
Enter an interactive session with persistent device connection. Useful for multiple operations on the same device without reconnecting.
ti-bsl
bsl:am13e230x:uart> info
bsl:am13e230x:uart> mass-erase
bsl:am13e230x:uart> exit
For executing commands in interactive mode, type only the commands.
Global Options
The following global options are available with all BSL Toolkit commands:
Configuration
-f, --config-file PATH— Path to TOML configuration file (default:~/.bsl/bsl.toml)-c KEY VALUE— Override any configuration value using dot-notation. Can be specified multiple times.
Example:
ti-bsl -c transport.transport_type uart \
-c transport.config.port COM3 \
flash-firmware firmware.bin
Logging
--log-level [CRITICAL|ERROR|WARNING|INFO|DEBUG]— Set logging level
Example:
ti-bsl --log-level DEBUG info
Information
--version— Show the version and exit--help— Show help message and exit
Device Services
The services offered by BSL Toolkit are in the form of commands.
Run ti-bsl --help for detailed usage information about each command
and their available options.
Configuration
Configuration for the BSL Toolkit is stored in a TOML file located at
~/.bsl/bsl.toml by default. This file contains:
Device - Target device variant (e.g., am13e232x)
Transport - Communication interface (UART via serial/FT232H or I2C via FT232H)
Backend - Protocol implementation for the transport
Invoke - Optional hardware reset method (GPIO via FT232H, manual prompts)
Runtime - Password file for protected operations
Initialize Configuration
Create or update the configuration file interactively:
ti-bsl init
This command will prompt for:
Device name
Transport type
Backend/interface
Connection parameters
Invoke method
BSL Password file path
Override Configuration
Override any configuration value from the command line using -c flags:
ti-bsl -c transport.config.port COM3 \
-c transport.config.baud_rate_bps 115200 \
flash-firmware firmware.bin
Multiple -c flags can be chained to override multiple settings.
Get Device Information
Get basic information about the connected device.
Command Syntax:
ti-bsl info
For detailed options, run:
ti-bsl info --help
Read Memory
Read memory from the readable memory regions of the device.
Command Syntax:
ti-bsl read --address 0x0 --length 256
Optional Arguments:
--address MEMORY_ADDRESS- Start address to read from (default: 0x0)
Required Arguments:
--length POSITIVE_INT- Number of bytes to read
Output:
Hexadecimal dump of memory contents
For detailed options, run:
ti-bsl read --help
Erase MAIN Flash Memory
Erase MAIN flash memory regions on the device.
Command Syntax:
ti-bsl mass-erase
For detailed options, run:
ti-bsl mass-erase --help
Range Erase
Erase a specific memory range on the device.
Command Syntax:
ti-bsl range-erase --start-address 0x00000000 --end-address 0x00010000
Required Arguments:
--start-address MEMORY_ADDRESS- Start address for erase range--end-address MEMORY_ADDRESS- End address for erase range
Note
Memory ranges must be sector aligned. Ensure start and end addresses align to device sector boundaries.
For detailed options, run:
ti-bsl range-erase --help
Flash Firmware
Flash firmware to MAIN Flash memory on the device. For NON-MAIN flash programming, use the factory-reset command.
Command Syntax:
ti-bsl flash-firmware firmware.bin
Required Arguments:
FILE- Path to firmware binary file
For detailed options, run:
ti-bsl flash-firmware --help
Factory Reset
Perform a complete factory reset of the device by programming the NON-MAIN flash with provided firmware.
Command Syntax:
ti-bsl factory-reset --firmware-file firmware.bin
Required Arguments:
--firmware-file PATH- Path to factory firmware binary file
Optional Arguments:
-pwd, --factory-reset-password PATH- Path to factory reset password file-wp, --with-password- Enable password-protected factory reset mode
For detailed options, run:
ti-bsl factory-reset --help
Change UART Baud Rate
Change UART communication baud rate for faster data transfer.
Command Syntax:
ti-bsl change-baud-rate BAUD_RATE
Required Arguments:
BAUD_RATE- Target baud rate in bits per second
For detailed options, run:
ti-bsl change-baud-rate --help
Start Application
Start execution of the application firmware on the device after programming.
Command Syntax:
ti-bsl start-application
For detailed options, run:
ti-bsl start-application --help
Note
This command starts the firmware execution and the MCU exits the BSL after executing the command.