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 mode | Jumper J16 | USB port for the connection |
---|---|---|
Normal/Single-Chip mode | Open | J10 |
SCI/USB Boot mode | Closed | J11 |
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.
Software | MCU Boot mode |
---|---|
Renesas e2 studio | Normal/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 number | Board pin type | TTL-232-USB cable pin |
---|---|---|
GND | Ground | GND |
P410 | RXD0 | TXD |
P411 | TXD0 | RXD |
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 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
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 usingNote: 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
Property | Value |
---|---|
Name | g_adc0 |
Input / Channel Scan Mask / Channel 2 | Selected |
AN02 | P002 |
D/AVE 2D Port Interface on r_drw
Property | Value |
---|---|
Allow Indirect Mode | Enabled |
Memory Allocation | Default |
D2 Device Handle Name | d2_handle0 |
DRW Interrupt Priority | Priority 2 |
Display Driver on r_glcdc
Property | Value |
---|---|
Name | g_display0 |
Callback Function | glcdc_callback |
Line Detect Interrupt Priority | Priority 2 |
External IRQ Driver on r_icu
Property | Value |
---|---|
Name | g_touch_irq |
Channel | 0 |
Trigger | Falling |
Digital Filtering | Enabled |
Trigger | Falling |
Digital Filtering | Enabled |
Digital Filtering Sample Clock | PCLK / 64 |
Callback | touch_irq_cb |
Pin Interrupt Priority | Priority 5 |
IRQ00 | P206 |
Pin Configuration
Pin | Name | Value |
---|---|---|
P206 | Pull up | input pull-up |
I2C Master Driver on r_iic_master
Property | Value |
---|---|
Name | g_i2c_touch |
Channel | 2 |
Rate | Fast-mode |
Rise Time (ns) | 120 |
Fall Time (ns) | 120 |
Duty Cycle (%) | 50 |
Slave Address | 0x38 |
Address Mode | 7-bit |
Timeout Mode | Short Mode |
Callback | touch_i2c_callback |
Interrupt Priority Level | Priority 6 |
SDA | P511 |
SCL | P512 |
QSPI Driver on r_qspi
Property | Value |
---|---|
Name | g_qspi0 |
Minimum QSSL Deselect Cycles | 8 QSPCLK |
Timer Driver on r_gpt
Property | Value |
---|---|
Name | g_timer_PWM |
Channel | 7 |
Mode | PWM |
Period | 10 |
Period Unit | Milliseconds |
Duty Cycle Percent | 75 |
GTIOCA Output Enabled | True |
GTIOCA | P603 |
UART Driver on r_sci_uart
Property | Value |
---|---|
Name | g_uart0 |
Channel | 0 |
Data Bits | 8bits |
Parity | None |
Stop Bits | 1bit |
TXD_MOSI | P411 |
RXD_MISO | P410 |
Available under certain Qt licenses.
Find out more.