This repository contains TF-Lite Micro examples for several TI devices, as listed below.
Build Type | Status |
---|---|
Sync from tflite-micro | |
Build (Windows) |
General hardware requirements:
- Development kit: TI MSP432P4R01 LaunchPad
Micro Speech example hardware requirements:
- Add-on board: TI BOOSTXL-AUDIO
Software requirements:
- Download and install Code Composer Studio 11+ (instructions)
- See section 3.2.3.5. Device Support - when prompted select "SimpleLink MSP432 low power + performance MCUs" component before proceeding
- Download and install the latest MSP432P401R SDK (instructions)
- Install the GCC toolchain
- Launch Code Composer Studio
- When prompted for a workspace directory, provide a new directory name to create a new workspace (or select an existing workspace directory), and press "Launch" - after which the main IDE windows will become visible
- Go to the Help menu and select - Install GCC ARM Compiler Tools… -> a window titled "Install" will open
- On the bottom, uncheck "Show only the latest versions of available software"
- In the middle, expand the "ARM GCC Tools" tree
- Check "ARM GCC Compiler Tools" - Version: "9.2.1.2009-q4-major"
- Press the "Next" button to finish the installation
- Restart Code Composer Studio
Generate, build and flash the project:
- Launch Code Composer Studio
- When prompted for a workspace directory, provide a new directory name to create a new workspace (or select an existing workspace directory), and press "Launch" - after which the main IDE windows will become visible
- In the main menu, choose Tools->Import CCS Projects...
- In the "Import CCS Projects" dialog, put the path to the repository in the "Select search-directory" field with the correct target - e.g. ~/repos/tensorflow-lite-micro-examples/targets/MSP432R01
- The "Discovery Projects" list should become populated with the available projects
- Choose a project and click the "Finish" button
Build and Flash:
In Code Composer Studio, select Run->Debug
- CCS will build the project and flash it to the device
- When flasing is done, select Run->Terminate
- Reset the board manually
Do the following to display the program output (per your computer OS):
- Linux
- Execute the following command in a terminal
screen /dev/ttyACM0 115200
- Execute the following command in a terminal
- Windows
- Open "Device Manager" to determine the COM port name, the device is called "XDS110 Class Application/User UART (COM#)"
- Use a serial terminal emulator to display the output (e.g. TeraTerm, PuTTy, etc)
General hardware requirements:
- Development kit: TI MSP432P4R01 LaunchPad
Micro Speech example hardware requirements:
- Add-on board: TI BOOSTXL-AUDIO
Software requirements:
- Download and install Code Composer Studio 11+ (instructions)
- See section 3.2.3.5. Device Support - when prompted select "SimpleLink Wi-Fi CC32xx Wireless MCUs" component before proceeding
- Download and install the latest CC32XX SDK (instructions)
- Install the GCC toolchain
- Launch Code Composer Studio
- When prompted for a workspace directory, provide a new directory name to create a new workspace (or select an existing workspace directory), and press "Launch" - after which the main IDE windows will become visible
- Go to the Help menu and select - Install GCC ARM Compiler Tools… -> a window titled "Install" will open
- On the bottom, uncheck "Show only the latest versions of available software"
- In the middle, expand the "ARM GCC Tools" tree
- Check "ARM GCC Compiler Tools" - Version: "9.2.1.2009-q4-major"
- Press the "Next" button to finish the installation
- Restart Code Composer Studio
Generate, build and flash the project:
- Launch Code Composer Studio
- When prompted for a workspace directory, provide a new directory name to create a new workspace (or select an existing workspace directory), and press "Launch" - after which the main IDE windows will become visible
- In the main menu, choose Tools->Import CCS Projects...
- In the "Import CCS Projects" dialog, put the path to the repository in the "Select search-directory" field with the correct target - e.g. ~/repos/tensorflow-lite-micro-examples/targets/CC32XXSF
- The "Discovery Projects" list should become populated with the available projects
- Choose a project and click the "Finish" button
Build and Flash:
In Code Composer Studio, select the project in the Project Explorer (left side pane)
- Build
- Go to the "Project" menu and select "Build Project"
- Flash
- Go to the "Run" menu, select "Load"->"Load SLI Image to Serial Flash"
- Reset the board manually
Do the following to display the program output (per your computer OS):
- Linux
- Execute the following command in a terminal
screen /dev/ttyACM0 115200
- Execute the following command in a terminal
- Windows
- Open "Device Manager" to determine the COM port name, the device is called "XDS110 Class Application/User UART (COM#)"
- Use a serial terminal emulator to display the output (e.g. TeraTerm, PuTTy, etc)