SPRADN0 December 2024 F29H850TU , F29H859TU-Q1
The UART flash programmer is a program in command line interface that runs on the host PC and to be interfaced with the bootROM or UART flash kernel on the target device. The program can be easily incorporated into scripting environments for applications like production line programming.
UART flash programmer is written in C++ and can be built as either a Microsoft Visual Studio® or CMake project in Windows® or Linux®. The project and the source can be found in the tools directory of the SDK (f29h85x-sdk_x_xx_xx_xx > tools> flash_programmers > uart_flash_programmer).
Two Windows pre-compiled executables are provided:
For Linux users, a shell script build_cmake.sh is provided to automate the CMake build. The default source code generates an executable identical to uart_flash_programmer.exe.
To use this tool to program the F29H85x device, make sure that the target device has been reset and is in the UART boot mode with UART pins connected to the host PC serial port via a UART transceiver. Refer to Section 5.1 for the setup specifics.
The supported parameters can be displayed by supplying -h or --help as a parameter.
Syntax:
uart_flash_programmer.exe -d f29h85x -p <COM/tty Port> -k <uart kernel image>.bin -a <CPU1 application image>.bin -e <F29x alternate entry address>-r <HSM runtime image>.bin -f <user HSM keys>.bin -t <CPU1 application image>.bin -g <HSM application image>.bin -c <sec cfg program image>.bin -q -w| -d, --device <device> | The name of the device to connect and load to. Currently, F29H85x is the only device supported. |
| -k, --kernel <file> | The file name for the CPU1 flash kernel |
| -a, --appcpu1 <file> | The file name for CPU1 application image to download via DFU for HS-FS device. |
| -r, --hsmrt <file> | The file name for RAM-based HSM runtime image. This is required to load the runtime image prior to key and code provisioning. |
| -f, --hsmkeys <file> | The file name for HSM certificate key image used to convert devices to HS-KP. |
-t, --cpappcpu1 <file> | The file name for Flash-based CPU1 application image via code provisioning for devices in HS-KP/HS-SE. |
| -g, --cpapphsm <file> | The file name for Flash-based HSM application image via code provisioning for devices in HS-KP/HS-SE. |
| -s, --cpseccfg <file> | The file name for the image used to program SEC CFG section in non-main flash via code provisioning. |
| -e, --entry <hex_num> | An optional parameter to override the default entry address for C29 CPU1 application. For example, pass 10001000 for the hex address 0x10001000. TI recommends to use the default 10001000 as the entry address because that is the bootROM flash entry point. |
| -h, --help | Shows the help dialogue. |
| -q, --quiet | Quiet mode. Suppress all non-essential printouts. |
| -l, --log <file> |
Log mode. Redirect All non-essential printouts to the specified file. Overrides quiet mode if specified. |
| -w | Wait for a key press before exiting. |
-d, -p, -k are mandatory parameters.