Skip to content

Commit 08170d3

Browse files
duynguyenxaquytranpzz
authored andcommitted
boards: renesas: Add initial support for EK-RA6E2 board
Initial support for Renesas EK-RA6E2 board Signed-off-by: Duy Phuong Hoang. Nguyen <[email protected]> Signed-off-by: Quy Tran <[email protected]>
1 parent ab9d137 commit 08170d3

File tree

11 files changed

+347
-0
lines changed

11 files changed

+347
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Copyright (c) 2024 Renesas Electronics Corporation
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
config BOARD_EK_RA6E2
5+
select SOC_R7FA6E2BB3CFM
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Copyright (c) 2024 Renesas Electronics Corporation
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
board_runner_args(jlink "--device=R7FA6E2BB")
5+
6+
include(${ZEPHYR_BASE}/boards/common/jlink.board.cmake)

boards/renesas/ek_ra6e2/board.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
board:
2+
name: ek_ra6e2
3+
vendor: renesas
4+
socs:
5+
- name: r7fa6e2bb3cfm
57.4 KB
Loading
Lines changed: 163 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,163 @@
1+
.. _ek_ra6e2:
2+
3+
RA6E2 Evaluation Kit
4+
####################
5+
6+
Overview
7+
********
8+
9+
The EK-RA6E2, an Evaluation Kit for RA6E2 MCU Group, enables users to
10+
seamlessly evaluate the features of the RA6E2 MCU group and develop
11+
embedded systems applications using Flexible Software Package (FSP)
12+
and e2 studio IDE. The users can use rich on-board features along with
13+
their choice of popular ecosystems add-ons to bring their big ideas to life
14+
15+
The key features of the EK-RA6E2 board are categorized in three groups as follow:
16+
17+
**MCU Native Pin Access**
18+
19+
- 200MHz Arm Cortex-M33 based RA6E2 MCU in 64 pins, LQFP package
20+
- 256 kB Code Flash, 40 kB SRAM
21+
- Native pin access through 2 x 14-pin and 1 x 40-pin male headers
22+
- MCU current measurement points for precision current consumption measurement
23+
- Multiple clock sources - RA6E2 MCU oscillator and sub-clock oscillator crystals,
24+
providing precision 20.000 MHz and 32,768 Hz reference clock.
25+
Additional low precision clocks are avaialbe internal to the RA6E2 MCU
26+
27+
**System Control and Ecosystem Access**
28+
29+
- USB Full Speed Host and Device (micro-AB connector)
30+
- Three 5V input sources
31+
32+
- USB (Debug, Full Speed)
33+
- External power supply (using surface mount clamp test points and J31 through holes)
34+
35+
- Three Debug modes
36+
37+
- Debug on-board (SWD)
38+
- Debug in (SWD)
39+
- Debug out (JTAG, SWD)
40+
41+
- User LEDs and buttons
42+
43+
- Three User LEDs (red, blue, green)
44+
- Power LED (white) indicating availability of regulated power
45+
- Debug LED (yellow) indicating the debug connection
46+
- Two User buttons
47+
- One Reset button
48+
49+
- Five most popular ecosystems expansions
50+
51+
- Two Seeed Grove system (I3C/Analog) connectors
52+
- One SparkFun Qwiic connector
53+
- Two Digilent Pmod (SPI and UART) connectors
54+
- Arduino (Uno R3) connector
55+
- MikroElektronika mikroBUS connector
56+
57+
- MCU boot configuration jumper
58+
59+
**Special Feature Access**
60+
61+
- 16 Mb (128 Mb) External Quad-SPI Flash
62+
- CAN (3-pin header)
63+
64+
.. figure:: ek-ra6e2-board.webp
65+
:align: center
66+
:alt: RA6E2 Evaluation Kit
67+
68+
EK-RA6E2 Board Functional Area Definitions (Credit: Renesas Electronics Corporation)
69+
70+
Hardware
71+
********
72+
Detailed hardware feature for the RA6E2 MCU group can be found at `RA6E2 Group User's Manual Hardware`_
73+
74+
.. figure:: ra6e2-block-diagram.webp
75+
:width: 442px
76+
:align: center
77+
:alt: RA6E2 MCU group feature
78+
79+
RA6E2 Block diagram (Credit: Renesas Electronics Corporation)
80+
81+
Detailed hardware feature for the EK-RA6E2 MCU can be found at `EK-RA6E2 - User's Manual`_
82+
83+
Supported Features
84+
==================
85+
86+
The below features are currently supported on Zephyr OS for EK-RA6E2 board:
87+
88+
+-----------+------------+----------------------+
89+
| Interface | Controller | Driver/Component |
90+
+===========+============+======================+
91+
| GPIO | on-chip | gpio |
92+
+-----------+------------+----------------------+
93+
| MPU | on-chip | arch/arm |
94+
+-----------+------------+----------------------+
95+
| NVIC | on-chip | arch/arm |
96+
+-----------+------------+----------------------+
97+
| UART | on-chip | serial |
98+
+-----------+------------+----------------------+
99+
100+
Other hardware features are currently not supported by the port.
101+
102+
Programming and Debugging
103+
*************************
104+
105+
Applications for the ``ek_ra6e2`` board target configuration can be
106+
built, flashed, and debugged in the usual way. See
107+
:ref:`build_an_application` and :ref:`application_run` for more details on
108+
building and running.
109+
110+
Flashing
111+
========
112+
113+
Program can be flashed to EK-RA6E2 via the on-board SEGGER J-Link debugger.
114+
SEGGER J-link's drivers are avaialbe at https://www.segger.com/downloads/jlink/
115+
116+
To flash the program to board
117+
118+
1. Connect to J-Link OB via USB port to host PC
119+
120+
2. Make sure J-Link OB jumper is in default configuration as describe in `EK-RA6E2 - User's Manual`_
121+
122+
3. Execute west command
123+
124+
.. code-block:: console
125+
126+
west flash -r jlink
127+
128+
Debugging
129+
=========
130+
131+
You can use Segger Ozone (`Segger Ozone Download`_) for a visual debug interface
132+
133+
Once downloaded and installed, open Segger Ozone and configure the debug project
134+
like so:
135+
136+
* Target Device: R7FA6E2BB
137+
* Target Interface: SWD
138+
* Target Interface Speed: 4 MHz
139+
* Host Interface: USB
140+
* Program File: <path/to/your/build/zephyr.elf>
141+
142+
**Note:** It's verified that we can debug OK on Segger Ozone v3.30d so please use this or later
143+
version of Segger Ozone
144+
145+
References
146+
**********
147+
- `EK-RA6E2 Website`_
148+
- `RA6E2 MCU group Website`_
149+
150+
.. _EK-RA6E2 Website:
151+
https://www.renesas.com/us/en/products/microcontrollers-microprocessors/ra-cortex-m-mcus/ek-ra6e2-evaluation-kit-ra6e2-mcu-group
152+
153+
.. _RA6E2 MCU group Website:
154+
https://www.renesas.com/us/en/products/microcontrollers-microprocessors/ra-cortex-m-mcus/ra6e2-entry-line-200mhz-arm-cortex-m33-general-purpose-microcontroller
155+
156+
.. _EK-RA6E2 - User's Manual:
157+
https://www.renesas.com/us/en/document/mat/ek-ra6e2-v1-users-manual
158+
159+
.. _RA6E2 Group User's Manual Hardware:
160+
https://www.renesas.com/us/en/document/mah/ra6e2-group-users-manual-hardware
161+
162+
.. _Segger Ozone Download:
163+
https://www.segger.com/downloads/jlink#Ozone
35 KB
Loading
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
/*
2+
* Copyright (c) 2024 Renesas Electronics Corporation
3+
* SPDX-License-Identifier: Apache-2.0
4+
*/
5+
6+
&pinctrl {
7+
sci0_default: sci0_default {
8+
group1 {
9+
/* tx rx */
10+
psels = <RA_PSEL(RA_PSEL_SCI_0, 4, 11)>,
11+
<RA_PSEL(RA_PSEL_SCI_0, 4, 10)>;
12+
};
13+
};
14+
};
Lines changed: 102 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
1+
/*
2+
* Copyright (c) 2024 Renesas Electronics Corporation
3+
* SPDX-License-Identifier: Apache-2.0
4+
*/
5+
6+
/dts-v1/;
7+
8+
#include <renesas/ra/ra6/r7fa6e2bb3cfm.dtsi>
9+
#include <dt-bindings/gpio/gpio.h>
10+
11+
#include "ek_ra6e2-pinctrl.dtsi"
12+
13+
/ {
14+
model = "Renesas EK-RA6E2";
15+
compatible = "renesas,ra6e2", "renesas,ra";
16+
17+
chosen {
18+
zephyr,sram = &sram0;
19+
zephyr,flash = &flash0;
20+
zephyr,console = &uart0;
21+
zephyr,shell-uart = &uart0;
22+
};
23+
24+
leds {
25+
compatible = "gpio-leds";
26+
led1: led1 {
27+
gpios = <&ioport2 7 GPIO_ACTIVE_HIGH>;
28+
label = "LED1";
29+
};
30+
led2: led2 {
31+
gpios = <&ioport4 0 GPIO_ACTIVE_HIGH>;
32+
label = "LED2";
33+
};
34+
led3: led3 {
35+
gpios = <&ioport1 13 GPIO_ACTIVE_HIGH>;
36+
label = "LED3";
37+
};
38+
};
39+
40+
aliases {
41+
led0 = &led1;
42+
};
43+
};
44+
45+
&sci0 {
46+
pinctrl-0 = <&sci0_default>;
47+
pinctrl-names = "default";
48+
status = "okay";
49+
uart0: uart {
50+
current-speed = <115200>;
51+
status = "okay";
52+
};
53+
};
54+
55+
&ioport1 {
56+
status = "okay";
57+
};
58+
59+
&ioport2 {
60+
status = "okay";
61+
};
62+
63+
&ioport4 {
64+
status = "okay";
65+
};
66+
67+
&flash0 {
68+
partitions {
69+
compatible = "fixed-partitions";
70+
#address-cells = <1>;
71+
#size-cells = <1>;
72+
73+
boot_partition: partition@0 {
74+
label = "application";
75+
reg = <0x00000000 DT_SIZE_K(128)>;
76+
};
77+
78+
storage_partition: partition@20000 {
79+
label = "storage";
80+
reg = <0x20000 DT_SIZE_K(128)>;
81+
};
82+
};
83+
};
84+
85+
&xtal {
86+
clock-frequency = <DT_FREQ_M(20)>;
87+
mosel = <0>;
88+
#clock-cells = <0>;
89+
status = "okay";
90+
};
91+
92+
&subclk {
93+
status = "okay";
94+
};
95+
96+
&pll {
97+
source = <RA_PLL_SOURCE_MAIN_OSC>;
98+
div = <RA_PLL_DIV_1>;
99+
mul = <10 0>;
100+
freq = <DT_FREQ_M(200)>;
101+
status = "okay";
102+
};
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
identifier: ek_ra6e2
2+
name: Renesas EK-RA6E2
3+
type: mcu
4+
arch: arm
5+
ram: 40
6+
flash: 256
7+
toolchain:
8+
- zephyr
9+
- gnuarmemb
10+
supported:
11+
- gpio
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Copyright (c) 2024 Renesas Electronics Corporation
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=200000000
5+
6+
# Enable GPIO
7+
CONFIG_GPIO=y
8+
CONFIG_PINCTRL=y
9+
10+
# Enable Console
11+
CONFIG_SERIAL=y
12+
CONFIG_UART_INTERRUPT_DRIVEN=y
13+
CONFIG_UART_CONSOLE=y
14+
CONFIG_CONSOLE=y
15+
16+
CONFIG_BUILD_OUTPUT_HEX=y
17+
CONFIG_BUILD_NO_GAP_FILL=y

0 commit comments

Comments
 (0)