C
EK-RA8D1 Kit
This topic provides board-specific information about Renesas' EK-RA8D1.
Board features
- R7FA8D1BHECBD MCU featuring ARM Cortex-M85, 2 MB Flash, 1 MB SRAM
- 4.5” 480x854 LCD Touch Display
- 64 MB SDRAM
- 64MB External Octo-SPI Flash
Supported color depths
The reference port for this board supports 16bpp color depth. See QUL_COLOR_DEPTH and Color depth for more information.
Building applications with prebuilt Qt Quick Ultralite libraries
- Open the CMake project file for the example you want to build.
- In the Configure Project window:
- Select the kit you created earlier. For example, Qt for MCUs 3.0.0 - Desktop 32bpp.
- Select Configure Project.

Once the project is configured, select Run or press Ctrl+r on your keyboard to build and flash the binary to the target.
Reading debug messages
By default, log data is redirected to JLink CDC UART Port (USB COM port).
Port settings
| Setting | Value |
|---|---|
| Bits per second | 115200 |
| Data bits | 8 |
| Parity | None |
| Stop bits | 1 |
| Flow control | None |
Debugging
Renesas e2 studio
Renesas e2 studio lets you debug a project using a custom configuration.
- Create a Bare Metal - Minimal project for EK-RA8D1.
- Build the project.
- Copy the Qt Quick Ultralite .elf file into the Debug folder of the e2 studio project.
- Take a copy of the original .sbd file and rename it with same name as the Qt Quick Ultralite .elf file.
- Select Run from the top menu.
- Select Debug Configurations....
- Select Renesas GDB Hardware Debugging.
- Set the Qt Quick Ultralite .elf to the C/C++ Application:.
- Select Apply and Close.
- Select Launch in 'Debug' mode.
Default FSP Configuration in Renesas e2 studio
The e2 studio IDE generates a default FSP configuration in platform/boards/renesas/ek-ra8d1-common/3rdparty/e2_project/configuration.xml. You can reuse this FSP configuration.xml file to view or modify the existing configurations.
To open the configuration .xml file in e2 studio,
- Create a new FSP project with New->Renesas C/C++ Project->Renesas RA and select Next.
- In the template selection window, choose the following and select Next:
- Renesas RA C/C++ project template.
- EK-RA8D1 as target board.
- GNU ARM Embedded as toolchain.
- In the Project Type Selection Window, choose Flat (Non-TrustZone) as project type and select Next.
- Choose Build Artifact as
Executableand RTOS Selection as No RTOS. Select Next. - Choose Bare Metal - Minimal as the project template and select Finish.
- Replace the default
configuration.xmlfile for the new project withplatform/boards/renesas/ek-ra8d1-common/3rdparty/e2_project/configuration.xml.
You can now open the configuration file to view or modify the existing configuration for pin muxing, clocks, and component stacks. If you modify the existing configuration, regenerate the code to update the BSP sources in Qt Quick Ultralite platform, and copy the generated the code into platform/boards/renesas/ek-ra8d1-common/3rdparty/e2_project/ folder.
Qt Quick Ultralite sections
Update linker scripts for custom Qt Quick Ultralite sections that are used to store image and font assets, and to reserve memory for caches. See platform\boards\renesas\ek-ra8d1-common\cmake\armgcc\fsp_gen.ld for reference.
- Add
QulResourceDataandQulFontResourceDatato internal flash memory.__flash_readonly$$ (READONLY) : { __flash_readonly$$Base = .; /* section.flash.readonly */ *(.flash) /* section.flash.code */ *(.flash_code) *(.text*) *(.rodata*) . = ALIGN(4); *(QulFontResourceData) . = ALIGN(4); *(QulResourceData) KEEP(*(.mcuboot_sce9_key)) KEEP(*(.version)) __flash_readonly$$Limit = .; }> FLASH - Add
QulResourceDataInExternalFlashandQulFontResourceDataInExternalFlashto OSPI external flash memory.QulFontResourceDataInExternalFlash : { . = ALIGN(4); *(QulFontResourceDataInExternalFlash) } > OSPI0_CS1 QulResourceDataInExternalFlash : { . = ALIGN(4); *(QulResourceDataInExternalFlash) } > OSPI0_CS1 - Add
QulModuleResourceDatasection to load the Qt Quick Ultralite module assets data in SDRAM at runtime.QulModuleResourceData : { . = ALIGN(4); __ModuleResourceDataCacheStart = .; *(QulModuleResourceData) . = ALIGN(4); __ModuleResourceDataCacheEnd = .; } > SDRAM AT> FLASH - Reserve some memory in SDRAM for image cache by defining two symbols:
__qulSdramCacheStartand__qulSdramCacheEnd.__sdram_noinit$$ (NOLOAD) : { __sdram_noinit$$Base = .; /* section.sdram.noinit */ *(.sdram_noinit) . = ALIGN(4); __qulSdramCacheStart = .; . += 8388608; . = ALIGN(4); __qulSdramCacheEnd = .; __sdram_noinit$$Limit = .; }> SDRAM - For FreeRTOS based port, the heap is placed in
.ram_noinit. Seeplatform\boards\renesas\ek-ra8d1-freertos\allocation_support.cpp.#if defined(configAPPLICATION_ALLOCATED_HEAP) && (configAPPLICATION_ALLOCATED_HEAP == 1) uint8_t ucHeap[configTOTAL_HEAP_SIZE] BSP_ALIGN_VARIABLE(64) BSP_PLACE_IN_SECTION(BSP_UNINIT_SECTION_PREFIX ".ram_noinit"); ; #endif
Resource storage section
By default, the application's image resource data is stored in internal flash memory. However, you can choose to store the resource data in external flash memory. Configure the ImageFiles.MCU.resourceStorageSection QmlProject property with QulResourceDataInExternalFlash when adding resources to the application using ImageFiles.files.
In a similar way, the font resource data is, by default, also stored in internal flash memory. You can choose to store the font resource data in external flash memory by using MCU.Config.fontFilesStorageSection QmlProject property with QulFontResourceDataInExternalFlash.
Available under certain Qt licenses.
Find out more.