Page 1
All information contained in these materials, including products and product specifications, represents information on the product at the time of publication and is subject to change by Renesas Electronics Corp. without notice. Please review the latest information published by Renesas Electronics Corp.
Page 2
Renesas Electronics disclaims any and all liability for any damages or losses incurred by you or any third parties arising from the use of any Renesas Electronics product that is inconsistent with any Renesas Electronics data sheet, user’s manual or other Renesas Electronics document.
Page 3
Unit Products The following usage notes are applicable to all Microprocessing unit and Microcontroller unit products from Renesas. For detailed usage notes on the products covered by this document, refer to the relevant sections of the document as well as any technical updates that have been issued for the products.
Page 4
Terms and Conditions available at https://www.renesas.com/en-us/legal/disclaimer.html. The EK-RA4M2 is not guaranteed to be error free, and the entire risk as to the results and performance of the EK-RA4M2 is assumed by the User. The EK- RA4M2 is provided by Renesas on an “as is” basis without warranty of any kind whether express or implied, including but not limited to the implied warranties of good workmanship, fitness for a particular purpose, title, merchantability, and non-infringement of intellectual property rights.
Figure 1. EK-RA4M2 Kit Contents ........................7 Figure 2. Quick Start Example Project Flow ....................8 Figure 3. Connecting the EK-RA4M2 Board to the Host PC via USB Full Speed Port ........9 Figure 4. USB Serial Device in Windows Device Manager ................10 Figure 5.
Page 6
Figure 21. Building the Project ........................24 Figure 22. Successful Build Output ....................... 24 Figure 23. Connecting the EK-RA4M2 Board to the Host PC via USB Debug Port ........25 Figure 24. Selecting the Debug Option ......................26 Figure 25. Selecting the Debug Image ......................26 Figure 26.
3. Prior to running the Quick Start example project or programming the EK-RA4M2 board, default jumper settings must be used. Refer to the EK-RA4M2 user’s manual for the default jumper settings. 4. The screen shots provided throughout this document are for reference. The actual screen content may differ depending on the version of software and development tools used.
10%, 50%, and 90%. When the EK-RA4M2 board running the Quick Start example project is connected to a host PC via USB as a Full Speed CDC Device, the kit information, MCU die temperature, and user LED blinking frequency are displayed on a terminal console.
RA4M2 board lights up white, indicating that the EK-RA4M2 board is powered on. Note: If the EK-RA4M2 board is not powered through micro-AB USB Full Speed port (J11) and the host PC, then USB CDC functionality of the Quick Start example project cannot be fully demonstrated because of the absence of a USB Full Speed Device connection with the host PC.
Note: The debug LED (LED5) will blink or light up orange; this can be ignored for now. 2. Press the user button (S1) on the EK-RA4M2 board to change the intensity of the user LED1. With every press of the user button (S1), the intensity will switch from 10% to 50% to 90% and cycle back.
Renesas RA Family EK-RA4M2 – Quick Start Guide 5. Open Tera Term, select Serial and COMxx: USB Serial Device (COMxx) and click OK. Figure 5. Selecting the Serial Port on Tera Term 6. Using the Setup menu pull-down, select Serial port… and ensure that the speed is set to 115200, as shown below.
Renesas RA Family EK-RA4M2 – Quick Start Guide 7. Complete the connection. The ‘welcome and main menu’ screen will be displayed. Figure 7. Welcome and Main Menu R20QS0018EG0100 Rev.1.00 Page 12 of 29 Jan.04.21...
Renesas RA Family EK-RA4M2 – Quick Start Guide Press 1 to display the Kit Information including the kit name, part number, MCU ID, MCU die temperature, and the user LED’s current blinking frequency. Figure 8. Kit Information 8. Press space to return to the ‘welcome and main menu’ screen.
Renesas RA Family EK-RA4M2 – Quick Start Guide 9. Press 2 to display the Quad-SPI FLASH Write/Read. This application performs a read-write cycle to the Quad-SPI memory, in the Special Functions Area of the evaluation kit. 10. Enter a read-write block size, in kB, using multiples of 2 kB and press tab.
Renesas RA Family EK-RA4M2 – Quick Start Guide 11. The EK-RA4M2 will write a block of memory, of the entered size, then read it back. On successful completion the cycle times will be displayed as follows: Figure 10. Quad-SPI Speed Measurement 12.
Renesas RA Family EK-RA4M2 – Quick Start Guide 13. Press 3 to display Next Steps. Figure 11. Next Steps 14. Press space to return to the ‘welcome and main menu’ screen. 5. Customizing the Quick Start Example Project This section lists the requirements and instructions for customizing the Quick Start example project.
1. Download and extract the Quick Start example project to a local directory on the host PC. The Quick Start example project (source code and project files) is available in the EK-RA4M2 Example Projects Bundle that is available in the Downloads tab of EK-RA4M2 webpage at renesas.com/ra/ek-ra4m2...
Renesas RA Family EK-RA4M2 – Quick Start Guide 5. Click Import from the File drop-down menu. Figure 14. Importing the Project R20QS0018EG0100 Rev.1.00 Page 18 of 29 Jan.04.21...
Renesas RA Family EK-RA4M2 – Quick Start Guide 6. In the Import dialog box, select General, and then select Existing Projects into Workspace. Figure 15. Importing Existing Projects into the Workspace 7. Click Next. R20QS0018EG0100 Rev.1.00 Page 19 of 29...
Renesas RA Family EK-RA4M2 – Quick Start Guide 8. Click Select root directory and click Browse to go to the location of the Quick Start example project folder. Figure 16. Selecting the Root Directory R20QS0018EG0100 Rev.1.00 Page 20 of 29...
Renesas RA Family EK-RA4M2 – Quick Start Guide 9. Select the Quick Start example project and click Finish. Figure 17. Finishing Importing the Quick Start Example Project R20QS0018EG0100 Rev.1.00 Page 21 of 29 Jan.04.21...
Renesas RA Family EK-RA4M2 – Quick Start Guide 5.3 Modifying, Generating, and Building the Quick Start Example Project This section provides instructions to modify the Quick Start example project. The Quick Start example project can be modified by editing the source code and reconfiguring the properties of the MCU peripherals, pins, clocks, interrupts, and so forth.
Renesas RA Family EK-RA4M2 – Quick Start Guide 2. For example, in the Stacks tab of the configurator, the user can click to select modules to modify the configuration settings, as required, in the Properties tab. The following screen shot illustrates modifying the USB Console driver configuration.
Renesas RA Family EK-RA4M2 – Quick Start Guide 3. After the desired modifications are made, click Generate Project. A dialog box may appear with an option of saving the configuration changes. Click Proceed. Figure 20. Saving the Configuration Changes 4. Modify the source files in the /src folder as needed and save the changes.
Note: The debug LED (LED5) continues to blink when J-Link drivers are not detected by the EK-RA4M2 board. In that case, make sure that the EK-RA4M2 board is connected to the host PC through the micro-B USB debug port (J10) and that J-Link drivers are installed on the host PC by checking in the Windows Device Manager (expand Universal Serial Bus controller, and locate J-Link driver).
Debug Configurations option. Figure 24. Selecting the Debug Option 2. In the dialogue, on the left-hand pane, expand the Renesas GDB Hardware Debugger and select the built image to debug, in this case, the quickstart_ek_RA4M2_ep.
4. Press F8 or click Resume icon to begin executing the project. Figure 27. Executing the Project 5. The modified Quick Start example project is programmed into the EK-RA4M2 board and is running. The project can be paused, stopped, or resumed using the debug controls.
Renesas RA Family EK-RA4M2 – Quick Start Guide 6. Next Steps 1. To learn more about the EK-RA4M2 kit, refer to the EK-RA4M2 user’s manual and design package available in the Documents and Download tabs respectively of the EK-RA4M2 webpage at renesas.com/ra/ek-ra4m2.
Need help?
Do you have a question about the RA4M2 and is the answer not in the manual?
Questions and answers