Skip to main content

๐Ÿ› ๏ธ YPMOD-RA2A2-3PH


๐Ÿ“ฆ Project Overviewโ€‹

This project contains firmware written in C for evaluating LMA in an example application - it makes use of a serial terminal to interact with the project and uses onboard impulse LED's for energy accumulation.


๐Ÿงฐ Requirementsโ€‹

โœ… Hardwareโ€‹

  • Evaluation PCB: YPMOD-RA2A2-3PH (For more information e.g., User Manual/Availability/Documentation please contact your local Renesas Sales/FAE)
  • Microcontroller: RA2A2 - R7FA2A2AD3CFP
  • Debugger/Programmer: Segger J-Link OB

๐Ÿ’ป Softwareโ€‹

  • IDE: e2 studio 2025-10+
  • FSP: FSP 6.1.0+
  • Flashing utility: Renesas Flash Programmer 3.14+
  • Serial terminal: TeraTerm or PuTTY (9600 baud, 8-N-1)

๐Ÿ“ Project Structureโ€‹

โ”œโ”€โ”€ LMA_YPMOD_RA2A2/        # e2 studio project
โ”œโ”€โ”€ imgs/ # images for this RUNME.md
โ””โ”€โ”€ RUNME.md # This file

๐Ÿš€ Getting Startedโ€‹

1. Clone the Repositoryโ€‹

    git clone https://github.com/lwray-renesas/LMA.git

2. Import project to e2 studioโ€‹

  1. Open e2 studio.
  2. File โ†’ Import โ†’ General โ†’ Existing Projects into Workspace
  3. Select <LMA_root>/examples/YPMOD_RA2A2_3PH/LMA_YPMOD_RA2A2.
  4. Do not copy into workspace.
  5. Click Finish.

Import Project

3. Build the projectโ€‹

  1. Right click the project
  2. Build Project

Build Project

4. Serial Connectionโ€‹

Now to enable the evaluation, connect to the PMOD via USB-C on J16.

Serial Connection


๐Ÿงช Testingโ€‹

๐Ÿ•น๏ธ Standalone Modeโ€‹

First we must make the connection between the USB-C JLOB on the PC side and the RA2A2 - to do this we must ypass the isolation and short the connections between J1 and J17, this can be seen below - please be aware this connection is not isolated and therefore you should NOT have the PMOD connected to the mains for this.

Non-Isolated Connection

Launch RFP and connect to PMOD using the following settings:

  • Microcontroller: RA
  • Tool: J-Link
  • Interface: SWD

As shown below.

RFP Create

Once connected, add the .srec file from the LMA Example project in the Debug folder and click start: <LMA_root>/examples/YPMOD_RA2A2-3PH/LMA_YPMOD_RA2A2/Debug/LMA_YPMOD_RA2A2.srec

As shown below.

RFP Flash

Now disconnect the cable between J1 and J17 to ensure isolation.

Launch TeraTerm and connect to the JLink CDC UART virtual COM port with settings: 9600-8-N-1

TeraTerm Connect

If nothing is displayed, hit enter, and the help message should be shown.

Terminal Application

This example application is now running and it allows (among other commands) displaying live measurement parameters and performing a calibration.

It also performs impulse LED control using D1 on the YPMOD-RA2A2-3PH to acumulate energy.

This PMOD can now be connected to a live supply and behaviour observed.