Getting Started on Infineon/Cypress
This topic helps you setup the development environment for Infineon/Cypress boards.
Qt for MCUs is an Infineon Certified HMI Tool.
To develop for MCUs using the Qt Creator IDE, the MCU plugin is required. The Qt online installer enables it by default when you install the Qt for MCUs SDK.
To enable or disable the plugin, follow these instructions:
- Select Help > About Plugins and choose the MCU Support plugin from the list.
- Restart Qt Creator to apply changes
To build and run your application on MCUs, you must create a kit:
- Select Tools > Options > Devices > MCU
- If not already set, provide the path to the Qt for MCUs installation directory.
- Select a Target supported by the Qt for MCUs SDK. For example, Qt for MCUs dev - Desktop 32bpp.
- In the Requirements section, ensure that the platform-specific requirements are met.
- Select Automatically create kits for all available targets on start to create kits automatically.
Note: You could also manually create/remove kits using Create Kit and Remove Kit.
- Click Apply and restart Qt Creator if you choose to create kits automatically.
Note: The Automatically create kits for all available targets on start option is available from Qt Creator v4.14 onwards. On older versions of Qt Creator, you have to explictly create or remove kits using Create kit or Remove kit.
You could also set up the development environment from the command prompt. See Commmand-line Setup for Infineon/Cypress Boards for more information.
Open the CMake project file for the example you want to build and configure it with the kit you created earlier. Once the project is configured, select Run or press Ctrl+r on your keyboard to build and flash the binary to the target.
Note: Flashing using Qt Creator will only work with a MiniProg4 debug probe.
For debugging, a GHS probe or J-Link Ultra+ Probe is recommended. MultiProg4 is not supported.
Debugging with GDB requires the GNU Arm Embedded Toolchain (tested with Version 9-2019-q4-major). It can be downloaded from
Make sure to use
-DCMAKE_BUILD_TYPE=Debug when configuring, in order for the built executable to get the necessary DWARF2 debug table.
Connect the J-Link probe to the J-Tag socket on the board. Go to the
%CYPRESS_AUTO_FLASH_UTILITY_DIR%\bin directory and execute following command:
openocd -s ../scripts -f interface/jlink.cfg -c "transport select swd" -f target/traveo2_6m.cfg
OpenOCD is now connected to the MCU and is waiting for GDB connections. If you look into the terminal output, you will find three separate ports you can connect to. They are respectively for: CM0, CM7.0 and CM7.1 cores. If you want to debug CM0, choose the first one, when connecting to the GDB server using GDB. For CM7.0 choose second from the top, and for CM7.1 choose the third one.
Now you can connect to the GDB server and step through instructions.
Note: As this board is working in little-big CPU architecture it cannot be simply restarted. To perform correct restart monitor traveo2 reset_halt should be used.
arm-none-eabi-gdb.exe C:/path/to/binary/cm7_0.elf -ex "target remote localhost:3334" (gdb) monitor traveo2 reset_halt sysresetreq (gdb) continue
|TVIIC2D6M||TVIIC2D6M||GNU Arm 9 and Green Hills||Bare Metal|
Available under certain Qt licenses.
Find out more.