This topic helps you setup the development environment for Renesas' RH850.
Use the Qt online installer to install the following prerequisites. You can download the installer from your Qt account .
注意： Ninja is an optional build tool and can be replaced with others like JOM or NMake. It is not needed when using Qt Creator.
注意： You could also manually create/remove kits using Create Kit and Remove Kit .
注意： 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 .
To get started from the command line, ensure that the following environment variables are set:
Qul_DIRto the Qt for MCUs SDK install path.
<QT_INSTALL_PATH>is the Qt install directory,
<VERSION>is the directory containing the Qt Quick Ultralite version you are using, for example
GHS_COMPILER_DIRenvironment variable and set it to the GHS Compiler installation path. For example:
RGL_DIRenvironment variable and set it to the Renesas Graphics Library installation path. For example:
Qt Creator provides a build configuration with the kit that you created earlier for the Qt for MCUs 1.7 - RH850-D1M1A-BAREMETAL 32bpp target. If you are using a command-line setup, configure using the following CMake variables. For more information, see the CMake 手册 .
警告： Please note that Ninja Generator causes issues with an incremental build on GHS. It is recommended to use NMake Makefiles or NMake Makefiles JOM . If Ninja generator is still used CMake will display a warning.
The platform to build must be set to
for this board.
此平台支持 GHS 工具链 .
The supported color depth by this platform is 32-bit.
注意： If this variable is not set, default color depth is used while configuring for the platform.
Connect the Mango Adapter to the Main Board, and ensure that all jumpers and switches are set exactly as described.
To enable HDMI video output, follow the jumper and dip-switch configuration.
On the Mango Main Board:
On the Mango Adapter Board:
To enable flashing and debugging, ensure that the following switch configuration is set:
To be able to use the HMI section on the board (HMI knob and 4-direction switch), open JP30 and set the DWS29.1-1 switches to ON.
注意： This setup can interfere with CAN. See Mango Main Board reference docs for more details.
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 运行 or press Ctrl+r on your keyboard to build and flash the binary to the target.
demo for RH850 D1M1A:
cd %Qul_DIR%\demos\automotive mkdir build cd build cmake .. -G "Ninja" -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=%Qul_DIR%\lib\cmake\Qul\toolchain\ghs.cmake -DQUL_PLATFORM=RH850-D1M1A-baremetal cmake --build .
The same procedure applies to any other application.
Following CMake options are available exclusively for this platform:
By default Qt Quick Ultralite is using startup file that comes with the
Renesas Flash Programmer
in order to flash the Automotive demo binary to the RH850 D1M1A board. The binary can be found in the following location
可以使用 Renesas e2 studio to debug applications built with QUL.