Once the application image (.mcelf) is created one needs to copy or flash these to a supported boot media so that the application can start executing once the SOC is powered ON
When flashing the application we also need to flash a bootloader or SBL image.
Tools
Loading via CCS
There are 3 methods to load a binary via CCS:
- Loading an existing .out
- Build and load .out directly in CCS
- Load .mcelf via SBL JTAG UNIFLASH
Loading an executable in CCS
- A .out binary could be generated by either makefile build or via CCS build.
- To load a makefile generated binary, launch target configuration in CCS --> click load program --> click "Browse"
- Go to the binary path, select and click enter.
- To load CCS built binary, click on "Browse projects" instead and select the binary from the list of projects.
- For detailed explanation refer Load and run example binaries in CCS
Build and load using 1 click
Loading applicaction via SBL JTAG UNIFLASH
- This is a flash-writer example which uses JTAG to write files or erase flash.
- It can perform the following operations:
- Flash the received file at the given offset
- Verify if the data in the received file is present at the given offset
- Erase the entire flash.
- Refer SBL JTAG Uniflash for steps.
Loading via IAR Embedded Workbench
- A .out binary could be generated by either makefile build or via IAR EW build.
- To load IAR EW built binary, Click on
Project > Download and Debug.
- To load a makefile generated binary, Open any existing project.
- Right click on the project and select the option "Add external binary" and browse to the
.out file location.
- Now the binary is loaded to the project, Right click on the
.out file and make sure the "Set as Debug Target" is enabled.
- Click on
Project > Download and Debug to load the binary.
- For detailed explanation refer Load and run example binaries in IAR Embedded Workbench
Loading via TI Uniflash tool
- TI UniFlash Tool is used for programming "On-chip" and "External flash" memory on TI microcontrollers.
- It offers both GUI and command line interfaces.
- Refer TI Uniflash Tool for detailed information.
Script based loaders/flashwriters
| Tool | Description |
| uart_bootloader.py | Sends the SBL and mcelf binaries over UART using XMODEM protocol |
| uart_uniflash.py | Flashes SBL and applications to EVM flash using UART |
| can_bootloader.py | Sends the application binaries over CAN given the SBL is already flashed |
| can_uniflash.py | Flashes the application binaries after sending it over CAN given the SBL is already flashed |
UART_BOOTLOADER
Refer UART Bootloader Python Script for details.
UART_UNIFLASH Flashwriter
Refer UART Uniflash for details.
CAN_BOOTLOADER
Refer CAN Bootloader Python Script for details.
CAN_UNIFLASH Flashwriter
Refer SBL CAN UNIFLASH for details.
Flashing a hello world application
Steps to flash the SDK hello world example is mentioned here Flash a Hello World example
Next step - Running the application
Go to Running an Application