This section describes how to Compile and download the Tes Guilaini Demos on to the RZA3UL.
NOTE: If the IPL has not been loaded refer to the Loading the IPL.
└── Guiliani_SDK_2.5.0_Renesas_RZA3UL_FreeRTOS10_eGML ├── CMake ├── Documentation ├── Export ├── External ├── FlashTools ├── GSE ├── Guiliani ├── Renesas ├── SR_GuilianiDemo ├── StreamRuntime └── eGaC
Select Workspace | ||
TBD
The Display Configuration by default are for a 1080p monitor, however the GUI demo is a Wide VGA demo. When displayed on a PC monitor the resulting image is located in the upper left side of the monitor. This section describes how to configure the RZA3UL Display Unit (DU) for a Wide VGA LCD Display.
Supported LCD | Link | Resolution |
---|---|---|
GeeekPi 5 Inch Capacitive Touch Screen 800x480 HDMI Monitor | Amazon | 800 x 480 |
DEBO LCD 7 HDMI Entwicklerboards | reichelt.de | 1024 x 600 |
Step 1) Open the BSP Project FSP Configuration file ( configuration.xml ).
Step 2) Select the FSP Configurator "Stack" Tab.
Step 3) In the Stacks Configuration Tab in the Threads Window, select "g_display0 Display on r_lcdc"
Step 4) In the bottom of the IDE there are IDE windows ( console, Problems, Smart Brower, Properties, ... ). Select the Properties window.
NOTE: It the Properties Window is not visible, in the IDE memu select Window -> Show View -> Properties.
Step 5) With the "g_display0 Display on r_lcdc" selected in the FSP configurator you will see the properties for the DU.
Step 6) Expand the Display property Output -> Timing
Step 7) Make the following property changes.
DU Property | GeekPI |
---|---|
Horizontal Total Size | 1056 |
Horizontal Active Video Cycles | 800 |
Horizontal back porch Cycles | 216 |
Horizontal Sync Signal Cycles | 128 |
Horizontal Sync Signal Polarity | High Active |
Vertical Total Size | 628 |
Vertical Active Video Cycles | 600 |
Vertical back porch Cycles | 27 |
Vertical Sync Signal Cycles | 4 |
Vertical Sync Signal Polarity | High Active |
Data Enable Signal Polarity | High Active |
These steps require modification of the board level display Driver.
Step 1) Open the RA3UL Smarc Board Display Driver file rza3ul_smarc_lcd.c. This is located here <BSP Project>/src/rza3ul_smarc/ directory.
Step 2) Scroll down to the function "bsp_lcd_init".
Step 2.1) Change this code snippet
/* PLL5 Pixel Clock */ R_CPG->CPG_SIPLL5_CLK3 = 0x40000006; R_CPG->CPG_SIPLL5_CLK4 = 0x004a0000; R_CPG->CPG_PL5_SDIV = 0x01010202; R_CPG->CPG_SIPLL5_STBY = 0x00150001;
Step 2.2) To this
/* 40MHz 800x600 */ uint32_t reg; uint32_t fracin = 800; uint32_t intin = 140; uint32_t refdiv = 2; uint32_t posdiv1 = 7; uint32_t posdiv2 = 6; R_CPG->CPG_SIPLL5_CLK3_b.FRACIN = fracin; R_CPG->CPG_SIPLL5_CLK4_b.INTIN = intin; reg = R_CPG->CPG_SIPLL5_CLK1; reg &= 0xFFFF0000; reg |= ( (1 << 24) | (1 << 20) | (1 << 16) | (refdiv << 8) | (posdiv2 << 4) | posdiv1 ); R_CPG->CPG_SIPLL5_CLK1 = reg; R_CPG->CPG_PL5_SDIV = 0x01010000; R_CPG->CPG_SIPLL5_STBY = 0x00150001;
Step 3) Save file this Clean and build the SR_GuilianiDemo project. NOTE: This will clean and build the BSP project tool.
Step 4) Download the project to the RZA3UL.