Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

RA Blinky Project

This page shows you how to create an RA

...

project.  As an example, we

...

use an EK-RA8D1 board but you can use any official Renesas RA board

...

...

The Blinky project is also a good

...

way to verify your tools

...

installation before you start diving into more advanced projects.  

Install FSP

Install FSP from GitHub FSP site.  Recommend that you use the latest FSP

...

platform

...

installer that includes e2studio and toolchains.  At the time of writing, the platform installer file is named setup_fsp_v5_6_0_e2s_v2024-10.exe.  

Create Project

Go to File >> New >> Renesas C/C++ Project >> Renesas RA

Image Added


Select Renesas RA C/C++ Project

Image Added


Type in the project name.  Do not use spaces. 

Image Added


Select your board, toolchains, and debugger.  Device is auto populated from your board selection.  

Image Added


From Project Type Selection Window, select Flat (Non-TrustZone) Project.   This window is used to select TrustZone or non-TrustZone project creation.   

Image Added


Select Executable and No RTOS from the Build Artifact and RTOS Selection window.  In this window, you can select executable or library project types.  You could also select if you want to use an RTOS or not.  

Image Added


And lastly, select Bare Metal - Blinky from the Project Template Selection.  This template includes simple source code to blink LEDs on an official Renesas RA board.  

Image Added

Change Perspective

If you see the window below, check the Remember my decision box and click on Open Perspective button.  This opens the FSP Configuration perspective that allows you to configure your project visually.  

Image Added

e2studio IDE

You should see your blinky project in Project Explorer pane.  In the editor pane, the project configuration is shown.  Since we used a template to create the project, all required source code is created by the tool.  There are tabs at the bottom of the FSP Configuration editor: BSP, Clocks, Pins, Interrupts, Event Links, Stacks, and Components.  These tabs help configure the project and add new FSP modules. 

For more information, please click Renesas Software Package User's Manual button.  

Image Added

Generate Project

Click Generate Project Content button.  This adds the new FSP source code to your project and configures them.  

Build Project

Go to Project >> Build Project.  You should see your project is built without errors.  

Image Added

Download and Debug

Make sure you connect your board to your PC with the USB mini Debug port.  Go to Run >> Debug.  If you see the window below, check the Remember my decision box and click Switch button.  This switches the view to the Debug perspective and rearranges your panes for easy debugging.  

Image Added

Run Project

You should see window below.  In editor pane, source code shows the reset startup code.  

Image Added

Go to Run >> Resume.  Execution stops at main().  Go to Run >> Resume again.  The LEDs on your board should now be blinking.  










Table of Contents