1.. _ek_ra6m1:
2
3RA6M1 Evaluation Kit
4####################
5
6Overview
7********
8
9The Renesas RA6M1 microcontroller is the entry point to the Renesas RA6 product
10series for applications that require a high-performance Arm® Cortex®-M4 core at
11a very attractive price point. The RA6M1 is built on a highly efficient 40nm process
12and is supported by an open and flexible ecosystem concept—the Flexible Software
13Package (FSP), built on FreeRTOS—and is expandable to use other RTOSes and middleware.
14The RA6M1 is suitable for IoT applications requiring security, large embedded RAM and
15low power consumption.
16
17The key features of the EK-RA6M1 board are categorized in three groups as follow:
18
19**MCU Native Pin Access**
20- R7FA6M1AD3CFP
21- 100-pin LQFP package
22- 120 MHz Arm® Cortex®-M4 core with Floating Point Unit (FPU)
23- 256 KB SRAM
24- 512 KB code flash memory
25- 8 KB data flash memory
26
27**Connectivity**
28- A Device USB connector for the Main MCU
29- S124 MCU-based SEGGER J-Link® On-Board interface for debugging and programming of the
30RA6M1 MCU. A 10-pin JTAG/SWD interface is also provided for connecting optional external
31debuggers and programmers.
32- Two PMOD connectors, allowing use of appropriate PMOD compliant peripheral plug-in modules for
33rapid prototyping
34- Pin headers for access to power and signals for the Main MCU
35
36**Multiple clock sources**
37- Main MCU oscillator crystals, providing precision 12.000 MHz and 32,768 Hz external reference
38clocks
39- Additional low-precision clocks are available internal to the Main MCU
40
41**General purpose I/O ports**
42- One jumper to allow measuring of Main MCU current
43- Copper jumpers on PCB bottom side for configuration and access to selected MCU signals
44**Operating voltage**
45- External 5 V input through the Debug USB connector supplies the on-board power regulator to power
46logic and interfaces on the board. External 5 V or 3.3 V may be also supplied through alternate
47locations on the board.
48- A two-color board status LED indicating availability of regulated power and connection status of the J-Link
49interface.
50- A red User LED, controlled by the Main MCU firmware
51- A User Push-Button switch, User Capacitive Touch Button sensor, and an optional User Potentiometer,
52all of which are controlled by the Main MCU firmware
53- MCU reset push-button switch
54- MCU boot configuration jumper
55
56**Special Feature Access**
57
58- USB Full Speed Debug and Device (micro-AB connector)
59
60.. figure:: ek_ra6m1.webp
61	:align: center
62	:alt: RA6M1 Evaluation Kit
63
64	EK-RA6M1 Board Functional Area Definitions (Credit: Renesas Electronics Corporation)
65
66Hardware
67********
68Detailed hardware feature for the RA6M1 MCU group can be found at `RA6M1 Group User's Manual Hardware`_
69
70.. figure:: ra6m1_block_diagram.webp
71	:width: 442px
72	:align: center
73	:alt: RA6M1 MCU group feature
74
75	RA6M1 Block diagram (Credit: Renesas Electronics Corporation)
76
77Detailed hardware feature for the EK-RA6M1 MCU can be found at `EK-RA6M1 - User's Manual`_
78
79Supported Features
80==================
81
82The below features are currently supported on Zephyr OS for EK-RA6M1 board:
83
84+-----------+------------+----------------------+
85| Interface | Controller | Driver/Component     |
86+===========+============+======================+
87| GPIO      | on-chip    | gpio                 |
88+-----------+------------+----------------------+
89| MPU       | on-chip    | arch/arm             |
90+-----------+------------+----------------------+
91| NVIC      | on-chip    | arch/arm             |
92+-----------+------------+----------------------+
93| UART      | on-chip    | serial               |
94+-----------+------------+----------------------+
95| CLOCK     | on-chip    | clock control        |
96+-----------+------------+----------------------+
97| I2C       | on-chip    | i2c                  |
98+-----------+------------+----------------------+
99| SPI       | on-chip    | spi                  |
100+-----------+------------+----------------------+
101| COUNTER   | on-chip    | counter              |
102+-----------+------------+----------------------+
103| ADC       | on-chip    | adc                  |
104+-----------+------------+----------------------+
105| PWM       | on-chip    | pwm                  |
106+-----------+------------+----------------------+
107
108Other hardware features are currently not supported by the port.
109
110Programming and Debugging
111*************************
112
113Applications for the ``ek_ra6m1`` board target configuration can be
114built, flashed, and debugged in the usual way. See
115:ref:`build_an_application` and :ref:`application_run` for more details on
116building and running.
117
118Flashing
119========
120
121Program can be flashed to EK-RA6M1 via the on-board SEGGER J-Link debugger.
122SEGGER J-link's drivers are avaialbe at https://www.segger.com/downloads/jlink/
123
124To flash the program to board
125
126  1. Connect to J-Link OB via USB port to host PC
127
128  2. Make sure J-Link OB jumper is in default configuration as describe in `EK-RA6M1 - User's Manual`_
129
130  3. Execute west command
131
132	.. code-block:: console
133
134		west flash -r jlink
135
136Debugging
137=========
138
139You can use Segger Ozone (`Segger Ozone Download`_) for a visual debug interface
140
141Once downloaded and installed, open Segger Ozone and configure the debug project
142like so:
143
144* Target Device: R7FA6M1AD
145* Target Interface: SWD
146* Target Interface Speed: 4 MHz
147* Host Interface: USB
148* Program File: <path/to/your/build/zephyr.elf>
149
150**Note:** It's verified that we can debug OK on Segger Ozone v3.30d so please use this or later
151version of Segger Ozone
152
153References
154**********
155- `EK-RA6M1 Website`_
156- `RA6M1 MCU group Website`_
157
158.. _EK-RA6M1 Website:
159   https://www.renesas.com/us/en/products/microcontrollers-microprocessors/ra-cortex-m-mcus/ek-ra6m1-evaluation-kit-ra6m1-mcu-group
160
161.. _RA6M1 MCU group Website:
162   https://www.renesas.com/us/en/products/microcontrollers-microprocessors/ra-cortex-m-mcus/ra6m1-32-bit-microcontrollers-120mhz-optimized-entry-point-ra6-series
163
164.. _EK-RA6M1 - User's Manual:
165   https://www.renesas.com/us/en/document/mat/ek-ra6m1-v1-users-manual
166
167.. _RA6M1 Group User's Manual Hardware:
168   https://www.renesas.com/us/en/document/mah/renesas-ra6m1-group-users-manual-hardware?r=1054156
169
170.. _Segger Ozone Download:
171   https://www.segger.com/downloads/jlink#Ozone
172