C

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.

Configure the in Qt Creator IDE

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:

  1. Select Help > About Plugins and choose the MCU Support plugin from the list.
  2. Restart Qt Creator to apply changes

To build and run your application on MCUs, you must create a kit:

  1. Select Tools > Options > Devices > MCU
  2. If not already set, provide the path to the Qt for MCUs installation directory.
  3. Select a Target supported by the Qt for MCUs SDK. For example, Qt for MCUs 2.0 - Desktop 32bpp.
  4. In the Requirements section, ensure that the platform-specific requirements are met.
  5. 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.

  6. 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 Command-line Setup for Infineon/Cypress Boards for more information.

Building applications with prebuilt Qt Quick Ultralite libraries

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.

Debugging using GDB

For debugging, a GHS probe or J-Link Ultra+ Probe is recommended. MultiProg4 is not supported.

Requirements

Debugging with GDB requires the GNU Arm Embedded Toolchain (tested with Version 9-2019-q4-major). It can be downloaded from

Compilation

Make sure to use -DCMAKE_BUILD_TYPE=Debug when configuring, in order for the built executable to get the necessary DWARF2 debug table.

Starting the GDB server

Connect the J-Link probe to the J-Tag socket on the board. Go to the %INFINEON_AUTO_FLASH_UTILITY_DIR%\bin directory and execute the 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.

Connecting with GDB

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

Board-specific information

HarwareBoardCompilerOperating System(s)
TVIIC2D6MTVIIC2D6MGNU Arm 9 and Green HillsBare Metal

Available under certain Qt licenses.
Find out more.