You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 25 Next »

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 "File2 >> "New" >> "Renesas C/C++ Project >> Renesas RX"


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


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


Under ”Toolchain", "Target Board", and "Configurations", select your toolchain, target board, and debug configuration.
Device is auto populated from "Target Board" selection.  
Click the "Next" button.


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


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


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.  


 2.1 Smart Configurator perspective

You should see a flashing project in the Project Explorer pane. 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. 


3. Build Project

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


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

4. Download and Debug

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


  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.
Then connect the FPB-RX261 to the PC with the USB cable and change the e2studio settings as follows.

4.2 e2studio settings for debugger connection

Select ”Debug Configurtions"

 


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

 


Select ”Debugger" tab, set "E2 Light (RX)" as the "Debug hardware".

 


Under the "Debugger" tab, go to the "Connection Settings" subtab. "Power Target From The Emulator (MAX 200ms), select "No".
Click the "Debug" button.
This procedure allows the user to connect to the debugger and execute the program.

  


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.  


5. Run Project

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


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


  • No labels