Renesas RZ BSP Custom Board Configuration
By default the Microsoft Azure RZ Software Development kit demos are designed the Renesas Evaluation Kit boards.
- Renesas RZA1H Display-it Kit (RSK)
- Renesas RZA1LU Stream-it Kit
This page provides information on how to use the SDK for Custom Boards
BSP
Board Specific drivers
The rz_bsp configuration file "mcu_board_select.h" set up both the TARGET_MCU and TARGET_BOARD for the rz_bsp and some on the Azure middleware. This section discuss how to configure the BSP for custom boards.
- MCU Selection
- -The MCU selection is required for custom board configuration. This setting sets the number of channels supported for each RZA peripheral. WARNING: Setting the TARGET_MCU hire than what is on the board can cause erratic behavior.
- BOARD Selection
- -The TARGET_BOARD is not required for custom board configuration. This setting is for the middleware( Audio Codec, Phy, Camera modules, LCD) and some drivers ( led, switches, SCI ( TTY), and I2C(touch)). By setting the TARGET_BAORD to 0 these middleware and drivers are disabled.
VDC5 Graphic Drivers
- -The VDC5 configuration files are located tin the rz_bsp .\src\renesas\application\graphics\inc
- lcd_panel.h
- - This configuration file selects what board LCD is supported and number of supported LCD. RZA1H and M support 2 LCD panels or one LVDS all other support one LCD. FOr custom board you an override the number of supported LCDs here.
- .\lcd\rsk_tft_ch0.h
- - Configuration control signals for RZA1H/M VDC5 channel 0.
- .\lcd\rsk_tft_ch1.h
- - Configuration control signals for RZA1H/M VDC5 channel 1.
- .\lcd\rsk_tft_clk.h
- - RZA1H/M VDC5 defines macros for the above signals
- .\lcd\stream2_tft_ch0.h
- - Configuration control signals for RZA1L/LU/LC VDC5 channel 0.
- .\lcd\stream2_tft_clk.h
- - RZA1L/LU/LC VDC5 defines macros for the above signals
GUIX Drivers
The rz_bsp provides three drivers for the 16bpp (RGB565), 24bpp (RBG888), and 32bpp (RGB8888). The rz_bsp mcu configuration file allows for selection of these three drivers. This section shows how create a custom driver.
GUIX Application Port
The GUIX sample projects include a GUIX Studio Project (GXP). This sections describes settings in the GXP project and how to port these changes to a RZA.
USBX Drivers
The USB hardware is the same for all RZA1 parts.
- Set the MPU board, and GUI Driver( see Renesas RZA1 BSP Board Configuration ).
- Full Build of the rz_bsp project.
- In the USBX library set the USB channel. For USB Device open "\common\usbx_device_controllers\ux_dcd_rz.h". For USB Host open "\common\usbx_host_controllers\ux_hcd_rz.h"
- Set the preprocessor define UX_RZ_USB_BASE to the desired channel. Note: The setting in the file "ux_hcd_rz.h" has condition compilation depending on the board selected, so it may not be required to make additional settings.
#define UX_RZ_USB0_BASE 0xE8010000
#define UX_RZ_USB1_BASE 0xE8207000
....
#define UX_RZ_USB_BASE UX_RZ_USB0_BASE
- Rebuild the USBx library. This is required because the RZ USB drivers are part of the USBX library. These drivers have conditional compilations for the selected board ( not MPU).
- In the USB Sample demo select the build configuration that matches the selection in step 1.
- Download and Run demo.