Command-line Setup for Infineon Boards

Build configuration

Qt Creator provides a build configuration with the kit that you created earlier for the Qt for MCUs 2.6 - TVIIC2D4M-BAREMETAL or TVIIC2D6M-BAREMETAL 32bpp target.

If you are using a command-line setup, configure using the following CMake variables. For more information, see the CMake Manual.

Warning: The incremental build with Green Hills MULTI Compiler fails when the Ninja generator is used. CMake warns you about this on using the Ninja generator. It is recommended to use the NMake Makefiles or NMake Makefiles JOM generator instead.

Qul_ROOTSet the Qul_ROOT to the Qt for MCUs SDK install path.

Note: This CMake variable is intentionally mixed-case since it needs to match the package name.

QUL_PLATFORMThe platform to build must be set to tviic2d4m-baremetal or tviic2d6m-baremetal depending on the target board.
CMAKE_TOOLCHAIN_FILEThis platform supports the GHS for ARM and IAR toolchains.


QUL_TARGET_TOOLCHAIN_DIRQUL_TARGET_TOOLCHAIN_DIR cmake cache entry needs to be used to provide the location of the compiler. For example:


-DQUL_TARGET_TOOLCHAIN_DIR="C:\Program Files (x86)\IAR Systems\Embedded Workbench 8.0 EWARM FS 8.22.3\arm"
QUL_BOARD_SDK_DIRSet the QUL_BOARD_SDK_DIR CMake cache entry to the Graphics Driver for TRAVEO™ T2G Cluster Series installation path. For example:
INFINEON_AUTO_FLASH_UTILITY_DIRSet the INFINEON_AUTO_FLASH_UTILITY_DIR CMake cache entry to the Infineon Auto Flash Utility installation path. For example:
-DINFINEON_AUTO_FLASH_UTILITY_DIR="C:\Program Files (x86)\Infineon\Auto Flash Utility 1.2"
QUL_COLOR_DEPTHThe supported color depth by this platform is 32-bit.

Note: If this variable is not set, default color depth is used while configuring for the platform.


Note: In a Qt Quick Ultralite project, CMAKE_BUILD_TYPE is set to MinSizeRel by default. MinSizeRel is the build type used for the prebuilt platform libraries shipped with Qt Quick Ultralite. To change the build type (to Release for example), invoke CMake with the -DCMAKE_BUILD_TYPE=Release option. For more information, see CMAKE_BUILD_TYPE.

Building applications with prebuilt Qt Quick Ultralite libraries

The following example builds the minimal example:

cd %QUL_ROOT%\examples\minimal
mkdir build
cd build
cmake .. -G "Ninja" -DCMAKE_BUILD_TYPE=MinSizeRel -DQul_ROOT=%QUL_ROOT% -DCMAKE_TOOLCHAIN_FILE=%QUL_ROOT%\lib\cmake\Qul\toolchain\ghs-arm.cmake -DQUL_TARGET_TOOLCHAIN_DIR=C:\ghs\comp_201714 -DQUL_BOARD_SDK_DIR=C:\TVII-GraphicsDriver -DINFINEON_AUTO_FLASH_UTILITY_DIR="C:\Program Files (x86)\Infineon\Auto Flash Utility 1.2" -DQUL_PLATFORM=tviic2d4m-baremetal
cmake --build .
cd %QUL_ROOT%\examples\minimal
mkdir build
cd build
cmake .. -G "Ninja" -DCMAKE_BUILD_TYPE=MinSizeRel -DQul_ROOT=%QUL_ROOT% -DCMAKE_TOOLCHAIN_FILE=%QUL_ROOT%\lib\cmake\Qul\toolchain\ghs-arm.cmake -DQUL_TARGET_TOOLCHAIN_DIR=C:\ghs\comp_201714 -DQUL_BOARD_SDK_DIR=C:\TVII-GraphicsDriver -DINFINEON_AUTO_FLASH_UTILITY_DIR="C:\Program Files (x86)\Infineon\Auto Flash Utility 1.2" -DQUL_PLATFORM=tviic2d6m-baremetal
cmake --build .

Once you have successfully built the minimal example application, use the one of the following commands to flash it:

With the MiniProg4 probe:

Using the automatically generated flash target:

cmake --build . --target flash_minimal

Or manually:

"C:\Program Files (x86)\Infineon\Auto Flash Utility 1.2\bin\openocd.exe" -s "C:\Program Files (x86)\Infineon\Auto Flash Utility 1.2\scripts" -f interface/kitprog3.cfg -c "set ENABLE_SEMPERFLASH_0 1" -c "transport select swd" -f target/traveo2_c2d_4m.cfg -c "program MinSizeRel/minimal.elf verify exit"
"C:\Program Files (x86)\Infineon\Auto Flash Utility 1.2\bin\openocd.exe" -s "C:\Program Files (x86)\Infineon\Auto Flash Utility 1.2\scripts" -f interface/kitprog3.cfg -c "transport select swd" -f target/traveo2_6m.cfg -c "program MinSizeRel/minimal.elf verify exit"

The same procedure applies to any other application.

Available under certain Qt licenses.
Find out more.