Fast Prototyping Board for RX140
Overview
The Fast Prototyping Board for RX140 MCU Group comes equipped with an RX140 MCU (R5F51406BGFN). The board is inexpensive for RX140 evaluation and prototype development of various applications. It has an emulator circuit so you can write/debug programs just by connecting it to a PC with a USB cable. In addition, it has high expandability with Arduino Uno and two Pmod™ connectors as standard, and through-hole access to all pins of the microcontroller.
MCU Native Pin Access
R5F51406ADFN MCU
Max 48MHz, 32-bit RXv2 core (RXv2)
256 KB Flash, 64 KB RAM
80-pin, LFQFP package
Native pin access through 2 x 40-pin male headers (not fitted)
RX MCU current measurement point for precision current consumption measurement
RX MCU on-chip oscillators as main clock
Providing 32.768 kHz crystal oscillator as sub clock
System Control and Ecosystem Access
Two 5 V input sources
USB
External power supply (using 2-pin header [not fitted])
On-board debugger / programmer (E2 emulator On Board (referred as E2OB, FINE Interface))
User LEDs and switches
Two User LEDs (green)
Power LED (green) indicating availability of regulated power
Debug LED (yellow) indicating the debug connection
One User switch
One Reset switch
Two popular ecosystem expansions
Two Digilent PmodTM
Arduino® (Uno R3) connector
Hardware
Detailed hardware features can be found at:
RX140 MCU: RX140 Group User’s Manual Hardware
FPB-RX140: FPB_RX140 - User’s Manual
Supported Features
The fpb_rx140 board supports the hardware features listed below.
- on-chip / on-board
- Feature integrated in the SoC / present on the board.
- 2 / 2
-
Number of instances that are enabled / disabled.
Click on the label to see the first instance of this feature in the board/SoC DTS files. -
vnd,foo -
Compatible string for the Devicetree binding matching the feature.
Click on the link to view the binding documentation.
Programming and Debugging
The fpb_rx140 board supports the runners and associated west commands listed below.
| flash | debug |
|---|
Applications for the fpb_rx140 board can be built, flashed, and debugged using standard
Zephyr workflows. Refer to Building an Application and Run an Application for more details.
Note: Currently, the RX140 is built and programmed using the Renesas GCC RX toolchain. Please follow the steps below to program it onto the board:
Download and install GCC for RX toolchain:
Set env variable:
export ZEPHYR_TOOLCHAIN_VARIANT=cross-compile export CROSS_COMPILE=<Path/to/your/toolchain>/bin/rx-elf-
Build the Blinky Sample for FPB-RX140
cd ~/zephyrproject/zephyr west build -p always -b fpb_rx140 samples/basic/blinky
Flashing
The program can be flashed to RSK-RX140 using the E2OB by connecting the board to the host PC and open Jumper J4. Here’s an example for building and flashing the Hello World application.
# From the root of the zephyr repository
west build -b rsk_rx140 samples/hello_world
west flash
Debugging
You can use Renesas Debug extension on Visual Studio Code for a visual debug interface. The configuration for launch.json is as below.
{
"version": "0.2.0",
"configurations": [
{
"type": "renesas-hardware",
"request": "launch",
"name": "RX140 Renesas Debugging E2lite",
"target": {
"deviceFamily": "RX",
"device": "R5F51406",
"debuggerType": "E2LITE"
"serverParameters": [
"-uUseFine=", "1",
"-w=", "0",
],
}
}
]
}