C

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.0 - 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.

VariableValue
Qul_ROOTSet the Qul_ROOT to the Qt for MCUs SDK install path.
-DQul_ROOT=%QUL_ROOT%

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.
-DQUL_PLATFORM=tviic2d6m-baremetal
CMAKE_TOOLCHAIN_FILEThis platform supports the GHS for ARM toolchain.
-DCMAKE_TOOLCHAIN_FILE=%QUL_ROOT%\lib\cmake\Qul\toolchain\ghs-arm.cmake
QUL_TARGET_TOOLCHAIN_DIRQUL_TARGET_TOOLCHAIN_DIR cmake cache entry needs to be used to provide the location of the GHS compiler. For example:
-DQUL_TARGET_TOOLCHAIN_DIR=C:\ghs\comp_201954
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:
-DQUL_BOARD_SDK_DIR=C:\TVII-GraphicsDriver
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.

-DQUL_COLOR_DEPTH=32

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=Release -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 Release/automotive verify exit"

The same procedure applies to any other application.

Available under certain Qt licenses.
Find out more.