|
| 1 | +.. _ek_ra6m2: |
| 2 | + |
| 3 | +RA6M2 Evaluation Kit |
| 4 | +#################### |
| 5 | + |
| 6 | +Overview |
| 7 | +******** |
| 8 | + |
| 9 | +The Renesas RA6M2 microcontroller is the entry point to the Renesas RA6 product series |
| 10 | +for applications that require a high-performance Arm® Cortex®-M4 core at a very attractive |
| 11 | +price point. The RA6M2 is suitable for IoT applications requiring security, large embedded |
| 12 | +RAM and low power consumption. |
| 13 | + |
| 14 | +The key features of the EK-RA6M2 board are categorized in three groups as follow: |
| 15 | + |
| 16 | +**MCU Native Pin Access** |
| 17 | + |
| 18 | +- 120MHz Arm Cortex-M4 based RA6M2 MCU in 144 pins, LQFP package |
| 19 | +- Native pin access through 4 x 40-pin male headers |
| 20 | +- MCU and USB current measurement points for precision current consumption measurement |
| 21 | +- Multiple clock sources - RA6M2 MCU oscillator and sub-clock oscillator crystals, |
| 22 | + providing precision 24.000 MHz and 32,768 Hz reference clock. |
| 23 | + Additional low precision clocks are avaialbe internal to the RA6M2 MCU |
| 24 | + |
| 25 | +**System Control and Ecosystem Access** |
| 26 | + |
| 27 | +- USB Full Speed device |
| 28 | +- 5V input through USB debug |
| 29 | + |
| 30 | +- Three Debug modes |
| 31 | + |
| 32 | + - Debug on-board (SWD) |
| 33 | + - Debug in (SWD and JTAG) |
| 34 | + - Debug out (SWD) |
| 35 | + |
| 36 | +- User LEDs and buttons |
| 37 | + |
| 38 | + - One User LEDs |
| 39 | + - One User buttons |
| 40 | + - One Reset button |
| 41 | + |
| 42 | +- Three most popular ecosystems expansions |
| 43 | + |
| 44 | + - Two Digilent Pmod (SPI and UART) connectors |
| 45 | + - Arduino (Uno R3) connector |
| 46 | + - MikroElektronika mikroBUS connector |
| 47 | + |
| 48 | +- MCU boot configuration jumper |
| 49 | + |
| 50 | +**Special Feature Access** |
| 51 | + |
| 52 | +- USB Full Speed Host and Device (micro-AB connector) |
| 53 | + |
| 54 | +.. figure:: ek-ra6m2-board.webp |
| 55 | + :align: center |
| 56 | + :alt: RA6M2 Evaluation Kit |
| 57 | + |
| 58 | + EK-RA6M2 Board Functional Area Definitions (Credit: Renesas Electronics Corporation) |
| 59 | + |
| 60 | +Hardware |
| 61 | +******** |
| 62 | +Detailed hardware feature for the RA6M2 MCU group can be found at `RA6M2 Group User's Manual Hardware`_ |
| 63 | + |
| 64 | +.. figure:: ra6m2-block-diagram.webp |
| 65 | + :width: 871px |
| 66 | + :align: center |
| 67 | + :alt: RA6M2 MCU group feature |
| 68 | + |
| 69 | + RA6M2 Block diagram (Credit: Renesas Electronics Corporation) |
| 70 | + |
| 71 | +Detailed hardware feature for the EK-RA6M2 MCU can be found at `EK-RA6M2 - User's Manual`_ |
| 72 | + |
| 73 | +Supported Features |
| 74 | +================== |
| 75 | + |
| 76 | +The below features are currently supported on Zephyr OS for EK-RA6M2 board: |
| 77 | + |
| 78 | ++-----------+------------+----------------------+ |
| 79 | +| Interface | Controller | Driver/Component | |
| 80 | ++===========+============+======================+ |
| 81 | +| GPIO | on-chip | gpio | |
| 82 | ++-----------+------------+----------------------+ |
| 83 | +| MPU | on-chip | arch/arm | |
| 84 | ++-----------+------------+----------------------+ |
| 85 | +| NVIC | on-chip | arch/arm | |
| 86 | ++-----------+------------+----------------------+ |
| 87 | +| UART | on-chip | serial | |
| 88 | ++-----------+------------+----------------------+ |
| 89 | + |
| 90 | +Other hardware features are currently not supported by the port. |
| 91 | + |
| 92 | +Programming and Debugging |
| 93 | +************************* |
| 94 | + |
| 95 | +Applications for the ``ek_ra6m2`` board target configuration can be |
| 96 | +built, flashed, and debugged in the usual way. See |
| 97 | +:ref:`build_an_application` and :ref:`application_run` for more details on |
| 98 | +building and running. |
| 99 | + |
| 100 | +Flashing |
| 101 | +======== |
| 102 | + |
| 103 | +Program can be flashed to EK-RA6M2 via the on-board SEGGER J-Link debugger. |
| 104 | +SEGGER J-link's drivers are avaialbe at https://www.segger.com/downloads/jlink/ |
| 105 | + |
| 106 | +To flash the program to board |
| 107 | + |
| 108 | + 1. Connect to J-Link OB via USB port to host PC |
| 109 | + |
| 110 | + 2. Make sure J-Link OB jumper is in default configuration as describe in `EK-RA6M2 - User's Manual`_ |
| 111 | + |
| 112 | + 3. Execute west command |
| 113 | + |
| 114 | + .. code-block:: console |
| 115 | +
|
| 116 | + west flash -r jlink |
| 117 | +
|
| 118 | +Debugging |
| 119 | +========= |
| 120 | + |
| 121 | +You can use Segger Ozone (`Segger Ozone Download`_) for a visual debug interface |
| 122 | + |
| 123 | +Once downloaded and installed, open Segger Ozone and configure the debug project |
| 124 | +like so: |
| 125 | + |
| 126 | +* Target Device: R7FA6M2AD |
| 127 | +* Target Interface: SWD |
| 128 | +* Target Interface Speed: 4 MHz |
| 129 | +* Host Interface: USB |
| 130 | +* Program File: <path/to/your/build/zephyr.elf> |
| 131 | + |
| 132 | +**Note:** It's verified that we can debug OK on Segger Ozone v3.30d so please use this or later |
| 133 | +version of Segger Ozone |
| 134 | + |
| 135 | +References |
| 136 | +********** |
| 137 | +- `EK-RA6M2 Website`_ |
| 138 | +- `RA6M2 MCU group Website`_ |
| 139 | + |
| 140 | +.. _EK-RA6M2 Website: |
| 141 | + https://www.renesas.com/us/en/products/microcontrollers-microprocessors/ra-cortex-m-mcus/ek-ra6m2-evaluation-kit-ra6m2-mcu-group |
| 142 | + |
| 143 | +.. _RA6M2 MCU group Website: |
| 144 | + https://www.renesas.com/us/en/products/microcontrollers-microprocessors/ra-cortex-m-mcus/ra6m2-32-bit-microcontrollers-120mhz-medium-size-memory-integration-and-ethernet |
| 145 | + |
| 146 | +.. _EK-RA6M2 - User's Manual: |
| 147 | + https://www.renesas.com/us/en/document/mat/ek-ra6m2-v1-users-manual-0 |
| 148 | + |
| 149 | +.. _RA6M2 Group User's Manual Hardware: |
| 150 | + https://www.renesas.com/us/en/document/mah/renesas-ra6m2-group-users-manual-hardware |
| 151 | + |
| 152 | +.. _Segger Ozone Download: |
| 153 | + https://www.segger.com/downloads/jlink#Ozone |
0 commit comments