Versions Compared

Key

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

...

Install FSP

Install FSP from GitHub FSP site.  Recommend that you use the latest FSP and platform installation that includes e2studio and toolchains.  

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 type.  You could also select if you want to use an RTOS or not.  

Image Added


Then, select Bare Metal - Blinky from the Project Template Selection.  This project comes with simple source code to blink LEDs on an official Renesas RA board.  For your non-RTOS custom projects, start with Bare Metal - Minimal.   

Image Added

Change Perspective

If you see the window below, check the Remember my decision box.  This opens the FSP Configuration perspective.  You will the configuration perspective to configure your project.  

Image Added

e2studio IDE

You should see your blink 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, Components.  These tabs help configure the project and add new FSP modules.  For more information, please click Renesas Software Package User's Manual icon.  

Image Added

Generate Project

Click Generate Project Content button.  This adds the new FSP source code modules 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 Debug

Make sure you connected 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.  This switches to the Debug perspective and rearranges your views for easy debugging.  

Image Added

Run Project

You should see window below.  In editor pane, the 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.