Versions Compared

Key

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

This page shows you how to create an RX project.  As an example, we use an FPB-RX261 board but you can use any official Renesas RX board.
The Blinky project is also a good way to verify your tools installation before you start diving into more advanced projects. 

1. Create Project

Go to "File" >> "New" >> "Renesas C/C++ Project >> Renesas RX"

Image Added


Select "Renesas CC-RX C/C++ Executable Project" or "GCC for Renesas RX C/C++ Excecutable Project"
Click the "Next" button.

Image Added


Type in the project name.  Do not use spaces.
Click the "Next" button.

Image Added


In the ”Select toolchain, device & debug settings" window, select your toolchain, target board, and debug configuration.
"Target Device" is auto populated from "Target Board" selection.  
Click the "Next" button.

Image Added


In the "Select Coding Assistant Settings" window, select "Use Smart Configurator".
Click the "Next" button.

Image Added


In the "Choose a project template" window, select "Bare Metal - Blinky".
This template includes sample application code to blink LED on an official Renesas RX board.
Click the "Finish" button.

Image Added


2. Change Perspective

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

Image Added


 2.1 Smart Configurator perspective

The project you created appears in the Project Explorer. At the bottom of the Smart Configurator view are the tabs: "Overview", "Board", "Clocks", "System", "Components", "Pins" and "Interrupts". These tabs are useful for configuring the project and adding new FIT modules.
For more information, click the "User's Guide" button. 

Image Added


3. Build Project

 The newly created project contains all the necessary drivers and configuration.
It also includes sample application code to blink LED.

Image Added


The project can be built and debugged.
Go to "Project" >> "Build Project".  
You should see your project is built without errors.  

Image Added

4. Download and Debug

This section explains an example of connecting a debugger using the FPB-RX261 board.


1. How to Create LED_Blinky project

There are two ways to create a project.

1.1 How to create a new LED Blinky project

Check out the video below to learn how to create a LED Blinky project.

The FPB_RX261_LED_Blinky project is based on the video, but differs from the video in the following ways.

 

Widget Connector
width640
urlhttps://www.youtube.com/watch?v=gfDXL3b9Xmw
height360

 

1.2 Differences from the video and FPB_RX261_LED_Blinky project

Project name

FPB_RX261_LED_Blinky
Image Removed

Device Settings -> Target Boad

FPB-RX261

Image Removed

1.3 Operating environment for FPB_RX261_LED_Blinky project

IDE : Renesas Electronics e2 studio 2024-07

C compiler : Renesas Electronics C/C++ Compiler Package for RX Family V3.06.00

Board used : FPB-RX261

USB cable (USB Micro-B --- USB Type A) × 1

1.4 LED blinking behavior of FPB_RX261_LED_Blinky project

The FPB_RX261_LED_Blinky Project allows customers to change the blinking frequency of the user LED(LED2) cyclically each time the user switch S1 on the FPB-RX261 is pressed.

Upon power-on, the user LED (LED2) blinks at 1 Hz.After that, each time the user switch S1 is pressed, the user LED (LED2) changes its blinking frequency cyclically from 1Hz to 5Hz to 10Hz to 1Hz…

2. Build and Debug for RX

Please refer the following Video.

Part 1 is "Build" and Part 2 is "Debug".

Widget Connector
width640
urlhttps://www.youtube.com/watch?v=FAQbaa2-tFU
height360

 

2.1 Debugger connection with FPB-RX261

Regarding debugger connection, if you are using the FPB-RX261 board to debug the FPB_RX261_LED project, please see below.

 

...

  4

.1 FPB-RX261 board settings

To debug and program with the FPB-RX261, you must set it to Debug on-board mode.
To enter Debug on-board mode, short pins 2 and 3 of the pin header jumper J4.
After that,
Then connect the FPB-RX261 to the PC with the USB cable to your PC and connect change the e2studio debugger settings as follows.

...

4.2 e2studio settings for debugger connection

Select ”Debug Configurtions"

 Image Modified


In the "Debug Configurations" dialogwindow, click select "FPB_RX261_LED_Blinkiy HardwareDebug" under "Reness GDB Hardware Debugging".

 Image Modified


Select the ”Debugger" tab, set "E2 LiteLight (RX)" in as the "DebuggerDebug hardware" tab.

 Image Modified


In Under the "Debugger" tab, in go to the "Connection Settings" tab, set subtab. "Power Target From The Emulator (MAX 200mA200ms)" to , select "No".
Click the "Debug" button.
This setting varies depending on the board.
Please refer to the user manual for each board for details.

This procedure allows the user to connect to the debugger and execute the program.

 Image Added 


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 Removed 


Image Added


5. Run Project

 The following window will appear.  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 LED on your board should now be blinking.