Software Setup for Flashing NXPRT117X
Scene Composer Configuration
(CGI-ROOT/cgi_studio_content/2D/Paid_Stock_Images) Drag and drop the imported images into the Scene Editor. In the Scene Editor, adjust the images by scaling and rotating them as needed. Add the following elements to the Scene Editor:
VS Code Configuration
Toolchain Table:
Rev_b with Touch enabled display
and BSP version 2.16
For Eg: If using a Rev_b hardware version with BSP version 2.16, navigate to the following file.(CGI-ROOT/cgi_studio_devices/src/RT117X/ToolchainFiles/IAR-toolchain-RT117X_Native2D_B_Touch_2.16.txt)
Open the file and make the following edits:
set (CGIDEVICE_TOUCH_ENABLED OFF CACHE BOOL "Enable Touch support"). Update the BSP path to match the local directory.
Next, open the following file and update the display configurations as required:
(CGI-ROOT/cgi_studio_devices/src/RT117X/CourierPlatformDefs/Target_FreeRTOS_RT117X
/KernelTargets/iar/bsp_cm7_B216_cgi/vglite/cm7/display_support.h) In this file, go to line 28 and update the display panel configuration as shown below:
#define DEMO_PANEL DEMO_PANEL_RASPI_7INCH //DEMO_PANEL_RK055MHD091 After:
#define DEMO_PANEL DEMO_PANEL_RK055MHD091
This removes the commented-out section and sets the display to RK055MHD091.
Project Configuration using Cmake GUI
(CGI-ROOT\cmake\Apps\Courier\CourierSampleAppLight) Set the build folder (the location where build files will be generated). Click Configure.
When prompted, select Ninja as the generator.
Specify the toolchain file for cross-compiling refer the toolchain table, select the appropriate toolchain file as per the hardware version.
Click Finish → Next. Click Configure again until all red entries disappear, then click Generate. Close CMake GUI. Open terminal in the build folder and give a ninja build. Run the following command
ninja
Adding Assets
CGI-ROOT\cgi_studio_courier_apps\src\CourierSampleAppLight Add the generated asset file to this folder. Rename it to:
AssetLibCff_RT117X_Target.bin
Flashing and Execution
BUILD-ROOT\iar_project\debug_cm7_B_cgi\CGI_RT117X.ew
IAR Embedded Workbench IDE will launch automatically. Click Download and Debug to flash the binary to the hardware.
After flashing, click GO in IAR to start execution.
Observe the output on the display connected to the NXP RT117X board.