C
Bootloader flashing instructions for Infineon boards
The bootloader image must be flashed onto the device in the two following scenarios:
- Before using the board for the first time.
- After flashing an incompatible bootloader. For example, from the TRAVEO T2G SDK.
The following is a list of Infineon boards that require a bootloader image:
- Infineon TRAVEO T2G CYT3DL
- Infineon TRAVEO T2G CYT3DL (4M LITE KIT)
- Infineon TRAVEO T2G CYT4DN
- Infineon TRAVEO T2G CYT4DN (6M LITE KIT)
The bootloader image is available at bin/bootloaders/cypress/tviic2d6m-baremetal_bootloader.elf
in the Qt for MCUs install location.
There are two ways to flash the bootloader image, depending on which debug probe you have. These commands assume that QUL_DIR is set to the root of the Qt for MCUs installation that is being used, for example C:/Qt/QtMCUs/2.10.1
. It's assumed that Infineon Auto Flash Utility is installed to the default location. If not, change the paths accordingly.
Note: The openocd command requires using forward slashes when specifying the path to the bootloader image. If there are spaces in the path, escape them with the \ character.
Windows host
Using the MiniProg4 probe:
set QUL_DIR=C:/Qt/QtMCUs/2.10.1 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_c2d_4m.cfg -c "init; reset init; program %QUL_DIR%/bin/bootloaders/cypress/tviic2d4m-baremetal_bootloader.elf verify; shutdown"
set QUL_DIR=C:/Qt/QtMCUs/2.10.1 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_c2d_4m.cfg -c "init; reset init; program %QUL_DIR%/bin/bootloaders/cypress/tviic2d4mlite-baremetal_bootloader.elf verify; shutdown"
set QUL_DIR=C:/Qt/QtMCUs/2.10.1 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 "init; reset init; program %QUL_DIR%/bin/bootloaders/cypress/tviic2d6m-baremetal_bootloader.elf verify; shutdown"
set QUL_DIR=C:/Qt/QtMCUs/2.10.1 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 "init; reset init; program %QUL_DIR%/bin/bootloaders/cypress/tviic2d6mlite-baremetal_bootloader.elf verify; shutdown"
set QUL_DIR=C:/Qt/QtMCUs/2.10.1 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 "init; reset init; program %QUL_DIR%/bin/bootloaders/cypress/tviic2d6mlite-baremetal_mtb_bootloader.elf verify; shutdown"
Using the J-Link probe:
set QUL_DIR=C:/Qt/QtMCUs/2.10.1 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/jlink.cfg -c "transport select swd" -f target/traveo2_c2d_4m.cfg -c "program %QUL_DIR%/bin/bootloaders/cypress/tviic2d4m-baremetal_bootloader.elf verify exit"
set QUL_DIR=C:/Qt/QtMCUs/2.10.1 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/jlink.cfg -c "transport select swd" -f target/traveo2_c2d_4m.cfg -c "program %QUL_DIR%/bin/bootloaders/cypress/tviic2d4mlite-baremetal_bootloader.elf verify exit"
set QUL_DIR=C:/Qt/QtMCUs/2.10.1 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/jlink.cfg -c "transport select swd" -f target/traveo2_6m.cfg -c "program %QUL_DIR%/bin/bootloaders/cypress/tviic2d6m-baremetal_bootloader.elf verify exit"
set QUL_DIR=C:/Qt/QtMCUs/2.10.1 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/jlink.cfg -c "transport select swd" -f target/traveo2_6m.cfg -c "program %QUL_DIR%/bin/bootloaders/cypress/tviic2d6mlite-baremetal_bootloader.elf verify exit"
set QUL_DIR=C:/Qt/QtMCUs/2.10.1 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/jlink.cfg -c "transport select swd" -f target/traveo2_6m.cfg -c "program %QUL_DIR%/bin/bootloaders/cypress/tviic2d6mlite-baremetal_mtb_bootloader.elf verify exit"
Linux host for Infineon TRAVEO T2G CYT4DN (6M LITE KIT), ARM GCC (ModusToolbox):
Using the MiniProg4 probe:
QUL_DIR=$HOME/Qt/QtMCUs/2.10.1 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 $QUL_DIR/bin/bootloaders/cypress/tviic2d6mlite-baremetal_mtb_bootloader.elf verify; shutdown"
Using the J-Link probe:
QUL_DIR=$HOME/Qt/QtMCUs/2.10.1 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 $QUL_DIR/bin/bootloaders/cypress/tviic2d6mlite-baremetal_mtb_bootloader.elf verify; shutdown"
Available under certain Qt licenses.
Find out more.