Command-line Setup for Infineon/Cypress Boards

Build configuration

Qt Creator provides a build configuration with the kit that you created earlier for the Qt for MCUs 2.1 - 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 tviic2d6m-baremetal for this board.
CMAKE_TOOLCHAIN_FILEThis platform supports the GHS for ARM toolchain.
QUL_TARGET_TOOLCHAIN_DIRQUL_TARGET_TOOLCHAIN_DIR cmake cache entry needs to be used to provide the location of the GHS compiler. For example:
QUL_BOARD_SDK_DIRSet the QUL_BOARD_SDK_DIR CMake cache entry to the Graphics Driver for Traveo II Cluster Series installation path. For example:
INFINEON_AUTO_FLASH_UTILITY_DIRSet the INFINEON_AUTO_FLASH_UTILITY_DIR CMake cache entry to the Cypress AutoFlashUtility installation path. For example:
-DINFINEON_AUTO_FLASH_UTILITY_DIR="C:\Program Files (x86)\Cypress\Cypress Auto Flash Utility 1.0"
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 the CMAKE_BUILD_TYPE CMake argument is by default set to MinSizeRel. MinSizeRel is the build type used for the pre-built platform libraries shipped with Qt Quick Ultralite. If you want to change the build type (e.g. to Release) you can do so by invoking cmake with -DCMAKE_BUILD_TYPE=Release. Please refer to this page for more information.

Building applications with prebuilt Qt Quick Ultralite libraries

The following example builds the minimal example for Infineon/Cypress TVIIC2D6M:

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_201954 -DQUL_BOARD_SDK_DIR=C:\TVII-GraphicsDriver -DINFINEON_AUTO_FLASH_UTILITY_DIR="C:\Program Files (x86)\Cypress\Cypress Auto Flash Utility 1.0" -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:

cmake --build . --target flash_minimal
"C:\Program Files (x86)\Cypress\Cypress Auto Flash Utility 1.0\bin\openocd.exe" -s "C:\Program Files (x86)\Cypress\Cypress Auto Flash Utility 1.0\scripts" -f interface/jlink.cfg -c "transport select swd" -f target/traveo2_6m.cfg -c "program MinSizeRel/automotive verify exit"

The same procedure applies to any other application.

Available under certain Qt licenses.
Find out more.