1.. _ek_ra6e2:
2
3RA6E2 Evaluation Kit
4####################
5
6Overview
7********
8
9The EK-RA6E2, an Evaluation Kit for RA6E2 MCU Group, enables users to
10seamlessly evaluate the features of the RA6E2 MCU group and develop
11embedded systems applications using Flexible Software Package (FSP)
12and e2 studio IDE. The users can use rich on-board features along with
13their choice of popular ecosystems add-ons to bring their big ideas to life
14
15The 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.webp
65	:align: center
66	:alt: RA6E2 Evaluation Kit
67
68	EK-RA6E2 Board Functional Area Definitions (Credit: Renesas Electronics Corporation)
69
70Hardware
71********
72Detailed 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
81Detailed hardware feature for the EK-RA6E2 MCU can be found at `EK-RA6E2 - User's Manual`_
82
83Supported Features
84==================
85
86The 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| CLOCK     | on-chip    | clock control        |
100+-----------+------------+----------------------+
101| SPI       | on-chip    | spi                  |
102+-----------+------------+----------------------+
103| ADC       | on-chip    | adc                  |
104+-----------+------------+----------------------+
105| PWM       | on-chip    | pwm                  |
106+-----------+------------+----------------------+
107| ENTROPY   | on-chip    | entropy              |
108+-----------+------------+----------------------+
109
110Other hardware features are currently not supported by the port.
111
112Programming and Debugging
113*************************
114
115Applications for the ``ek_ra6e2`` board target configuration can be
116built, flashed, and debugged in the usual way. See
117:ref:`build_an_application` and :ref:`application_run` for more details on
118building and running.
119
120Flashing
121========
122
123Program can be flashed to EK-RA6E2 via the on-board SEGGER J-Link debugger.
124SEGGER J-link's drivers are avaialbe at https://www.segger.com/downloads/jlink/
125
126To flash the program to board
127
128  1. Connect to J-Link OB via USB port to host PC
129
130  2. Make sure J-Link OB jumper is in default configuration as describe in `EK-RA6E2 - User's Manual`_
131
132  3. Execute west command
133
134	.. code-block:: console
135
136		west flash -r jlink
137
138Debugging
139=========
140
141You can use Segger Ozone (`Segger Ozone Download`_) for a visual debug interface
142
143Once downloaded and installed, open Segger Ozone and configure the debug project
144like so:
145
146* Target Device: R7FA6E2BB
147* Target Interface: SWD
148* Target Interface Speed: 4 MHz
149* Host Interface: USB
150* Program File: <path/to/your/build/zephyr.elf>
151
152**Note:** It's verified that we can debug OK on Segger Ozone v3.30d so please use this or later
153version of Segger Ozone
154
155References
156**********
157- `EK-RA6E2 Website`_
158- `RA6E2 MCU group Website`_
159
160.. _EK-RA6E2 Website:
161   https://www.renesas.com/us/en/products/microcontrollers-microprocessors/ra-cortex-m-mcus/ek-ra6e2-evaluation-kit-ra6e2-mcu-group
162
163.. _RA6E2 MCU group Website:
164   https://www.renesas.com/us/en/products/microcontrollers-microprocessors/ra-cortex-m-mcus/ra6e2-entry-line-200mhz-arm-cortex-m33-general-purpose-microcontroller
165
166.. _EK-RA6E2 - User's Manual:
167   https://www.renesas.com/us/en/document/mat/ek-ra6e2-v1-users-manual
168
169.. _RA6E2 Group User's Manual Hardware:
170   https://www.renesas.com/us/en/document/mah/ra6e2-group-users-manual-hardware
171
172.. _Segger Ozone Download:
173   https://www.segger.com/downloads/jlink#Ozone
174