C

Flashing instructions for Infineon boards

There are two ways to flash an application binary, depending on which debug probe you have. It's assumed that Infineon Auto Flash Utility version 1.4 is installed to the default location. If not, change the paths in the openocd command accordingly.

Note: The openocd command requires using forward slashes when specifying the path to the binary. Spaces in its path need to be escaped.

Windows host

Using the MiniProg4 probe:

set INFINEON_AUTO_FLASH_UTILITY_DIR="C:\Program Files (x86)\Infineon\Auto Flash Utility 1.4"
%INFINEON_AUTO_FLASH_UTILITY_DIR%\bin\openocd.exe -s %INFINEON_AUTO_FLASH_UTILITY_DIR%\scripts -f interface/kitprog3.cfg -c "set ENABLE_SEMPERFLASH_0 1" -c "transport select swd" -f target/traveo2_c2d_4m.cfg -c "program <PATH_TO_BINARY>/your_binary.elf verify exit"
set INFINEON_AUTO_FLASH_UTILITY_DIR="C:\Program Files (x86)\Infineon\Auto Flash Utility 1.4"
%INFINEON_AUTO_FLASH_UTILITY_DIR%\bin\openocd.exe -s %INFINEON_AUTO_FLASH_UTILITY_DIR%\scripts -f interface/kitprog3.cfg -c "set ENABLE_SEMPERFLASH_0 1" -c "transport select swd" -f target/traveo2_c2d_4m.cfg -c "program <PATH_TO_BINARY>/your_binary.elf verify exit"
set INFINEON_AUTO_FLASH_UTILITY_DIR="C:\Program Files (x86)\Infineon\Auto Flash Utility 1.4"
%INFINEON_AUTO_FLASH_UTILITY_DIR%\bin\openocd.exe -s %INFINEON_AUTO_FLASH_UTILITY_DIR%\scripts -f interface/kitprog3.cfg -c "transport select swd" -f target/traveo2_6m.cfg -c "program <PATH_TO_BINARY>/your_binary.elf verify exit"

Flashing to HyperFlash NOR Flash on TRAVEO T2G CYT4DN (6M and 6M LITE KIT):

Note: For TRAVEO T2G CYT4DN, external flash is only supported for the TVII-C-2D-6M-327-SET (REV-01) revision.

Note: For TRAVEO T2G CYT4DN (6M LITE KIT), external flash is currently only supported when using the Green Hills and IAR toolchains.

set INFINEON_AUTO_FLASH_UTILITY_DIR="C:\Program Files (x86)\Infineon\Auto Flash Utility 1.4"
%INFINEON_AUTO_FLASH_UTILITY_DIR%\bin\openocd.exe -s %INFINEON_AUTO_FLASH_UTILITY_DIR%\scripts -f interface/kitprog3.cfg -c "set SMIF0_LOADER TV2C2D6MB1_S0_S28HS512T.elf" -c "transport select swd" -f target/traveo2_6m_b1.cfg -c "program <PATH_TO_BINARY>/your_binary.elf verify exit"

After flashing data to HyperFlash, it's necessary to power the board off and on again.

Flashing to SEMPER NOR Flash on TRAVEO T2G CYT3DL:

In order to flash to SEMPER NOR Flash on TRAVEO T2G CYT3DL, you should clear the bootloader and power cycle the development board:

set INFINEON_AUTO_FLASH_UTILITY_DIR="C:\Program Files (x86)\Infineon\Auto Flash Utility 1.4"
%INFINEON_AUTO_FLASH_UTILITY_DIR%\bin\openocd.exe -s %INFINEON_AUTO_FLASH_UTILITY_DIR%\scripts -f interface/kitprog3.cfg -c "set ENABLE_SEMPERFLASH_0 1" -c "transport select swd" -f target/traveo2_c2d_4m.cfg -c "init; reset init; flash erase_address 0x10000000 0x8000; shutdown"

Next, flash the application binary as usual, and finally flash the bootloader as described on the Bootloader Flashing Instructions for Infineon boards page.

Flashing to SEMPER NOR Flash on TRAVEO T2G CYT3DL (4M LITE KIT):

After flashing data to SEMPER NOR Octal Flash, it's necessary to power the board off and on again. No specific flashing procedure required.

Linux host for Infineon TRAVEO T2G CYT4DN (6M LITE KIT), ARM GCC (ModusToolbox):

Using the MiniProg4 probe:

INFINEON_AUTO_FLASH_UTILITY_DIR=$HOME/tools/openocd
$INFINEON_AUTO_FLASH_UTILITY_DIR/bin/openocd -s $INFINEON_AUTO_FLASH_UTILITY_DIR/scripts -f interface/kitprog3.cfg -c "transport select swd" -f target/traveo2_6m.cfg -c "init; reset init; program <PATH_TO_BINARY/your_binary.elf verify; shutdown"
INFINEON_AUTO_FLASH_UTILITY_DIR=$HOME/tools/openocd
$INFINEON_AUTO_FLASH_UTILITY_DIR/bin/openocd -s $INFINEON_AUTO_FLASH_UTILITY_DIR/scripts -f interface/jlink.cfg -c "transport select swd" -f target/traveo2_6m.cfg -c "init; reset init; program <PATH_TO_BINARY/your_binary.elf verify; shutdown"

Available under certain Qt licenses.
Find out more.