C

EK-RA6M3G Kit

This topic provides board-specific information about Renesas' EK-RA6M3G.

Board features

  • R7FA6M3AH3CFC MCU featuring ARM® Cortex®-M4, 2 MB Flash, 640 KB RAM
  • 4.3” 480x272 LCD Touch Display
  • 32 MB External QSPI Flash

Supported color depths

The reference port for this board supports 16bpp color depth. The board also supports 24bpp and 32bpp, but they are not implemented in the reference port. See QUL_COLOR_DEPTH and Color depth for more information.

Configure the operating mode

Select an operating mode for the MCU using the J16 jumper on the board, depending on the software used with the MCU.

MCU Boot modeJumper J16USB port for the connection
Normal/Single-Chip modeOpenJ10
SCI/USB Boot modeClosedJ11

See Renesas RA6M3 Group - User’s Manual: Hardware for the details.

Flashing the firmware

Select an appropriate boot mode for the MCU before flashing the firmware using one of the tools listed below.

SoftwareMCU Boot mode
Renesas e2 studioNormal/Single-Chip mode
SEGGER J-Link/J-Flash (Lite)Normal/Single-Chip mode

Prebuilt demos and examples

The package for EK-RA6M3G board comes with a prebuilt watch demo binary. You can find it in the demos_images directory.

Building applications with prebuilt Qt Quick Ultralite libraries

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 Run or press Ctrl+r on your keyboard to build and flash the binary to the target.

Reading debug messages

By default, the output of printf calls are redirected to UART in Serial Communications Interface channel 0 (SCI0).

Board pin numberBoard pin typeTTL-232-USB cable pin
GNDGroundGND
P410RXD0TXD
P411TXD0RXD

Port settings

SettingValue
Bits per second115200
Data bits8
ParityNone
Stop bits1
Flow controlNone

Debugging

Renesas e2 studio

Renesas e2 studio can be used for debugging by setting custom debug configuration in a project.

  • Open Run from the top menu
  • Select Debug Configurations...
  • Select Renesas GDB Hardware Debugging
  • Click Browse... from the C/C++ Application: and select .elf file to be debugged
  • Click Apply and Close
  • Click Launch in 'Debug' mode

SEGGER J-Link GDB Server can be used to create GDB server.

Note: This page uses QUL_ROOT and QUL_TOOLS in command line examples as if they were set as environment variables. They could be set for example:

export QUL_ROOT=$HOME/Qt/QtMCUs/2.0.0
export QUL_TOOLS=$HOME/Qt/Tools/QtMCUs
set QUL_ROOT=C:\Qt\QtMCUs\2.0.0
set QUL_TOOLS=C:\Qt\Tools\QtMCUs
  • Select Connection to J-Link as USB
  • Select Target device as R7FA6M3AH
  • Select Target interface as SWD
  • Select Speed as Fixed 4000 kHz
  • Click OK

    GDB Server is now listening for TCP connections on the default port, 2331.

  • Run arm-none-eabi-gdb in a separate console
    $QUL_TOOLS/arm_gcc_9/bin/arm-none-eabi-gdb.exe <PATH_TO>/your_app.elf
    %QUL_TOOLS%\arm_gcc_9\bin\arm-none-eabi-gdb.exe <PATH_TO>\your_app.elf
  • Connect to the target via the gdbserver in the arm-none-eabi-gdb console using

    Note: Actual TCP port used is printed out on gdbserver's console.

    (gdb) target remote 127.0.0.1:2331

Notes

  • Demos, examples, and tests that do not fit into the flash memory or require more RAM than available on the MCU have been excluded.
  • Stack region is set to overlap with the heap region in the default platform adaptation to enable building of tests and demos, which have differing stack and heap requirements.
  • Size for the stack and heap must be defined to ensure that the Memory Protection Unit detects stack overflow and underflow.
  • Asset preloading is not supported due to limited amount of RAM and non-availability of SDRAM on the evaluation kit board.
  • One framebuffer (single-buffering) is used by default due to limited amount of RAM. This might be observed as flickering on the screen. Double-buffering can be enabled from the Renesas e2 studio FSP configuration files.

Default FSP Stacks Configuration in Renesas e2 studio

Note: Use the default value for the property if not specified in the table.

ADC Driver on r_adc

PropertyValue
Nameg_adc0
Input / Channel Scan Mask / Channel 2Selected
AN02P002

D/AVE 2D Port Interface on r_drw

PropertyValue
Allow Indirect ModeEnabled
Memory AllocationDefault
D2 Device Handle Named2_handle0
DRW Interrupt PriorityPriority 2

Display Driver on r_glcdc

PropertyValue
Nameg_display0
Callback Functionglcdc_callback
Line Detect Interrupt PriorityPriority 2

External IRQ Driver on r_icu

PropertyValue
Nameg_touch_irq
Channel0
TriggerFalling
Digital FilteringEnabled
TriggerFalling
Digital FilteringEnabled
Digital Filtering Sample ClockPCLK / 64
Callbacktouch_irq_cb
Pin Interrupt PriorityPriority 5
IRQ00P206
Pin Configuration
PinNameValue
P206Pull upinput pull-up

I2C Master Driver on r_iic_master

PropertyValue
Nameg_i2c_touch
Channel2
RateFast-mode
Rise Time (ns)120
Fall Time (ns)120
Duty Cycle (%)50
Slave Address0x38
Address Mode7-bit
Timeout ModeShort Mode
Callbacktouch_i2c_callback
Interrupt Priority LevelPriority 6
SDAP511
SCLP512

QSPI Driver on r_qspi

PropertyValue
Nameg_qspi0
Minimum QSSL Deselect Cycles8 QSPCLK

Timer Driver on r_gpt

PropertyValue
Nameg_timer_PWM
Channel7
ModePWM
Period10
Period UnitMilliseconds
Duty Cycle Percent75
GTIOCA Output EnabledTrue
GTIOCAP603

UART Driver on r_sci_uart

PropertyValue
Nameg_uart0
Channel0
Data Bits8bits
ParityNone
Stop Bits1bit
TXD_MOSIP411
RXD_MISOP410

Available under certain Qt licenses.
Find out more.