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

Compare with Current View Page History

« Previous Version 17 Next »

This webpage provides instructions for creating a new RL78 project from scratch and configuring peripheral modules using the Smart Configurator tool in the e2 Studio IDE or in the CS+ IDE.

Getting Started with the RL78 Family Development Environment

The above webpage introduces the tools required for development, recommended kits, and information on downloading products for new users of the RL78 family development environment.

Development environment pre-installation: (choose either one)

Board:

Emulator:

Hardware setup:

Connect the board and emulator as shown in the figure below.

The 14-pin connector (J5) on this board is used to connect this product to an on-chip debugging E2 emulator Lite. To use E2-Lite, please make the following settings.

  • J5: 14-pin connector must be mounted.
  • J8, J9, and J11: pins 2-3 are short-circuit
  • Pattern for cutting [TOOL0_USB]: cut
  • Pattern for cutting [RESET]: cut
  • Pattern for cutting [T_RESET]: cut

e2studio + Smart Configurator

Create a new project via File->New->Renesas C/C++ Project->Renesas RL78. Select a Renesas CC-RL C/C++ Executable Project and click Next. Provide an appropriate name for the project.




Ensure that the Toolchain is set to Renesas CC-RL with the latest version. Select the MCU shown: RL78G23, R7F100GLGxFB. Choose the E2 Lite (RL78) for the Hardware Debug Configuration, then click Next.

 

Leave the Use Smart Configurator checkbox selected, then click Next.Choose Bare Metal - Blinky and click Finish.You will see the Smart Configurator perspective view as shown below.When the FPB-RL78G23 is selected, the default configuration utilizes the COM Port as the debugging interface. Therefore, if you intend to use E2-Lite as a debugger, please ensure that these settings are adjusted manually in accordance with the specifications.Click “Generate Code”.Build and debug the project, and then click “Resume” twice. You will observe LED2 on this board blinking every second. 


CS+ for CC + Smart Configurator

In the CS+ development environment, Blinky's sample code is not provided. It is necessary to create the project manually. The following steps can be used as a guide.

Create a new project via File->New->Create New Project….

Select “R7F100GLGxFA” and provide an appropriate name for the project. Then click “Create”.

Open Smart Configurator by double-clicking “Smart Configurator (Design Tool)” in Project Tree Window.

Configure the port. In the Components tab, click "Add component".

Select "Ports" and then click "Finish".

Configure P52 as an output pin and its default output level after reset is 0 (Low level).

To use the "R_BSP_SoftwareDelay" API, please enable this function in r_bsp.

Click “Generate Code” and close Smart Configurator.

 

Add these user codes to main.c.

Build this project without errors.

Modify the Debug Tool from RL78 Simulator to RL78 E2 Lite.

Double-click “RL78 E2 Lite” to open the Property Window and power the Target Board from the emulator.

Click Debug à Download. You will observe LED2 on this board blinking every second.



  • No labels