Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Table of Contents
outlinetrue

Introduction

The Renesas RL78/G14 Fast Prototyping Board is an development board of the manufacterer Renesas. The device is a 16 bit CPU with 48kB of RAM and 512kB of ROM. It is capable as an application controller for the iRJ45/SoM module.

Info

Currently the RL78/G14 is only compatible with uGoal.

Software

Integrated Development Environment

The e2 studio by Renesas is a free Integrated Development Environment which provides several utilities to develope and debug applications for the RL78/G14 Fast Prototyping Board. It is available on the Renesas website.

Info

If you just want to use our applications, you won’t need the IDE.

Building and Flashing

There are two Toolchains available to build applications for the Renesas RL78/G14: the CCRL and the GNURL78 Toolchain. The former one is provided by Renesas and is free for applications up tp 64 kB of linkage size.

...

To flash the device we’re using the Renesas Flash Programmer. You can download the Programmer from here.

Getting Started

Preparations

Hardware Requirements

...

Make sure following settings are set:

  • J13 - Connect “iRJ45” with “Sockel”

  • J8 - Connect “CS_SOURCE” with “PB2”

  • J7 - Connect “RST_SOURCE” with “PD7”

  • Set all DIP-Switches to “OFF”

RL78/G14 Fast Prototyping Board

...

Per default there are no jumpers to set on this board.

Target System

...

Connect both boards (see Figure above). Voltage supply is done through the VCC33_Sockel by the Rl78/G14.

Note

Please connect both boards with each other, before you connect them per USB to your computer.

Using delivered build system

Within a example folder “ugoal/projects/ugoal/…” of the software delivery, build the firmware with following commands:

...

Code Block
make PLATFORM=rl78g14 clean

Using e2 studio by Renesas

This chapter describes the integration of the source files into a new e2 studio project, to edit, compile and debug the software delivery.

Automatic project generation

From any project folder a project generator can be run to create an e2studio project for the application. The project generator requires a python3 installation. Required dependencies are installed automatically.

...

The imported project can be compiled and debugged:

...

Manually import sources into new project

Install the latest e2 studio with RL78 support, which is downloadable from https://www.renesas.com/us/en/software-tool/e-studio.

...

Tip

Now the project is succesfully integrated and configured.

Build and Run application with e2 studio

Click “Build” in the upper left corner of e2 studio, to build the application. The output should look like this:

...

Tip

Now the build *.elf can be started by selecting “Launch in ‘Debug’ Mode” in the toolbar.

Debugging

UART

The RL78/G14 Fast Prototyping Board provides multiple UART-interfaces. In the example application the UART0 is used. You can access the UART by the PMOD1 interface by connecting a USB-to-serial adapter to the TxD0 of the RL78/G14 and launching a serial monitor like putty. Choose the following settings:

Speed

115200

Data Bits

8

Stop Bits

1

Parity

Odd

Flow Control

XON/XOFF

Application

After setting up the serial monitor and starting the application, the output should look like this:

Code Block
[INF] ../rpc/goal_mctc_rb.c:277 creating rpc ring buffer with buffer size 768 and elem size 256
[INF] ../rpc/goal_mctc_rb.c:277 creating rpc ring buffer with buffer size 768 and elem size 256
[INF] ../goal_media/goal_mi_mctc.c:793 rpc transfer size set to 1024
[INF] ../goal_media/goal_mi_mctc.c:723 peer requested Sync Init
[INF] ../goal_media/goal_mi_mctc.c:723 peer requested Sync Init
[INF] ../goal_media/goal_mi_mctc.c:723 peer requested Sync Init
[INF] ../goal_media/goal_mi_mctc.c:723 peer requested Sync Init
[INF] ../goal_media/goal_mi_mctc.c:455 RPC state synchronized, running appl_setup
[INF] ../goal_media/goal_mi_mctc.c:458 configuring timeout values for peer
[INF] ../pnio/goal_pnio_rpc_ac.c:259 PROFINET Application Core successfully started
[INF] ../example/02_profinet/goal_appl.c:188 Initializing device structure
[INF] ../example/02_profinet/goal_appl.c:230 PROFINET ready
[INF] ../goal_media/goal_mi_mctc.c:487 local setup done
[INF] ../ugoal/ugoal.c:212 HEAP utilization: 3400/4096 (83%).

Known Issues

Following you’ll find current limitations regarding the RL78/G14.

...