Skip to content

Commit 5afa17c

Browse files
Phi Tranjhedberg
authored andcommitted
boards: renesas: rx: Initial support for FPB-RX261 board
Initial support for board FPB-RX261 Signed-off-by: Phi Tran <[email protected]>
1 parent 6966f0a commit 5afa17c

File tree

9 files changed

+298
-0
lines changed

9 files changed

+298
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Copyright (c) 2025 Renesas Electronics Corporation
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
config BOARD_FPB_RX261
5+
select SOC_R5F52618BGFP

boards/renesas/fpb_rx261/board.cmake

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Copyright (c) 2025 Renesas Electronics Corporation
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
# options after "--tool-opt=" are directly passed to the tool. So instead of "--iface=JTAG" you could also write "--tool-opt=-if JTAG"
5+
board_runner_args(jlink "--device=R5F52618" "--iface=FINE" "--speed=1000" "--tool-opt=-jtagconf -1,-1 -autoconnect 1" )
6+
board_runner_args(rfp "--device=RX200" "--tool=e2l" "--interface=fine" "--erase")
7+
8+
include(${ZEPHYR_BASE}/boards/common/rfp.board.cmake)
9+
include(${ZEPHYR_BASE}/boards/common/jlink.board.cmake)

boards/renesas/fpb_rx261/board.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
board:
2+
name: fpb_rx261
3+
full_name: RX261 Fast Prototyping Board
4+
vendor: renesas
5+
socs:
6+
- name: r5f52618bgfp
73.6 KB
Binary file not shown.
Lines changed: 148 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,148 @@
1+
.. zephyr:board:: fpb_rx261
2+
3+
Overview
4+
********
5+
6+
The FPB-RX261 is a Fast Prototyping Board for the Renesas RX261 MCU Group, designed to
7+
evaluate features of the RX261 family and accelerate embedded system development. The board
8+
includes native MCU pin access, integrated debugger, power flexibility, and expansion connectors.
9+
10+
The key features of the FPB-RX261 board are categorized in two groups:
11+
12+
**MCU Native Pin Access**
13+
14+
- R5F52618BGFP MCU
15+
- 64 MHz Renesas RXv3-based RX261 MCU in 100-pin LFQFP package
16+
- 512 KB Code Flash, 8 KB Data Flash, 128 KB RAM
17+
- Native pin access through 2 x 50-pin male headers (not fitted)
18+
- MCU current measurement point for precision current consumption measurement
19+
- RX MCU on-chip oscillators as main clock
20+
- Providing 32.768 kHz crystal oscillator as sub clock
21+
22+
**System Control and Ecosystem Access**
23+
24+
- 5V input sources:
25+
26+
- USB (USB DEBUG1 - J5)
27+
- External 5V via 2-pin header (J8)
28+
29+
- On-board debugger via E2 Emulator OB (FINE interface)
30+
31+
- User LEDs:
32+
33+
- 2 Green User LEDs (PJ1, PC5)
34+
- 1 Green Power LED
35+
- 1 Yellow Debug LED
36+
37+
- User Buttons:
38+
39+
- 1 User Switch (S1 - P32)
40+
- 1 Reset Switch (S2)
41+
42+
- Popular expansion connectors:
43+
44+
- 2x Digilent Pmod connectors (J13, J14 - UART/SPI/I2C)
45+
- Arduino Uno R3-compatible header (J9-J12)
46+
47+
Hardware
48+
********
49+
50+
Detailed hardware features can be found at:
51+
- RX261 MCU: `RX261 Group User's Manual Hardware`_.
52+
- FPB-RX261 board: `FPB-RX261 - User's Manual`_.
53+
54+
Supported Features
55+
==================
56+
57+
.. zephyr:board-supported-hw::
58+
59+
Other hardware features are currently not supported by the port.
60+
61+
Programming and Debugging
62+
*************************
63+
64+
.. zephyr:board-supported-runners::
65+
66+
Applications for the ``fpb_rx261`` board can be built, flashed, and debugged using standard Zephyr workflows.
67+
Refer to :ref:`build_an_application` and :ref:`application_run` for more details.
68+
69+
**Note:** Currently, the RX261 is built and programmed using the Renesas GCC RX toolchain.
70+
Please follow the steps below to program it onto the board:
71+
72+
- Download and install GCC for RX toolchain:
73+
74+
https://llvm-gcc-renesas.com/rx-download-toolchains/
75+
76+
- Set env variable:
77+
78+
.. code-block:: console
79+
80+
export ZEPHYR_TOOLCHAIN_VARIANT=cross-compile
81+
export CROSS_COMPILE=<Path/to/your/toolchain>/bin/rx-elf-
82+
83+
- Build the Blinky Sample for FPB-RX261
84+
85+
.. code-block:: console
86+
87+
cd ~/zephyrproject/zephyr
88+
west build -p always -b fpb_rx261 samples/basic/blinky
89+
90+
Flashing
91+
========
92+
93+
The program can be flashed to FPB-RX261 via the on-board **E2 Emulator OB**.
94+
95+
- **Renesas Flash Programmer (RFP)** can be used with the on-board debugger
96+
https://www.renesas.com/software-tool/renesas-flash-programmer-programming-gui
97+
98+
1. **Connect the board:**
99+
100+
- Use USB DEBUG1 (J5) to connect the on-board E2 Emulator to the PC
101+
102+
2. **Configure jumpers for flashing:**
103+
104+
- J4: Jumper on pins **2-3** (enable E2 OB)
105+
- J7: Jumper on pins **1-2** (3.3V system voltage)
106+
107+
3. **Run flashing command:**
108+
109+
.. code-block:: console
110+
111+
west flash
112+
113+
Or use Renesas Flash Programmer with settings:
114+
- Debugger: E2 Emulator Lite
115+
- Interface: FINE
116+
- MCU: R5F52618
117+
118+
Debugging
119+
=========
120+
121+
Debugging is supported via:
122+
123+
- **On-board E2 Emulator OB** using USB DEBUG1 (J5)
124+
125+
To use debugger:
126+
127+
- J4: Jumper on pins **2-3** (enable E2 OB)
128+
- J7: Jumper on pins **1-2** (3.3V)
129+
- LED4 (Yellow) indicates debugger status
130+
131+
**Note:** Only one FPB-RX261 board can be debugged per PC at a time using E2 OB.
132+
133+
References
134+
**********
135+
- `FPB-RX261 Website`_
136+
- `RX261 MCU group Website`_
137+
138+
.. _FPB-RX261 Website:
139+
https://www.renesas.com/en/design-resources/boards-kits/fpb-rx261
140+
141+
.. _RX261 MCU group Website:
142+
https://www.renesas.com/en/products/rx261
143+
144+
.. _FPB-RX261 - User's Manual:
145+
http://renesas.com/en/document/mat/fpb-rx261-v1-users-manual?r=25565483
146+
147+
.. _RX261 Group User's Manual Hardware:
148+
https://www.renesas.com/en/document/mah/rx260-group-rx261-group-users-manual-hardware?r=25565707
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
/*
2+
* Copyright (c) 2025 Renesas Electronics Corporation
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
&pinctrl {
8+
sci5_default: sci5_default {
9+
group1 {
10+
psels = <RX_PSEL(RX_PSEL_SCI_5, 0xC, 0x3)>, /* TX */
11+
<RX_PSEL(RX_PSEL_SCI_5, 0xC, 0x2)>; /* RX */
12+
};
13+
};
14+
};
Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
/*
2+
* Copyright (c) 2025 Renesas Electronics Corporation
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
/dts-v1/;
8+
9+
#include <renesas/r5f52618bgfp.dtsi>
10+
#include <dt-bindings/gpio/gpio.h>
11+
#include "fpb_rx261-pinctrl.dtsi"
12+
13+
/ {
14+
model = "Renesas FPB-RX261";
15+
compatible = "renesas,fpb_rx261";
16+
17+
chosen {
18+
zephyr,sram = &sram0;
19+
zephyr,flash = &code_flash;
20+
zephyr,console = &uart5;
21+
zephyr,shell-uart = &uart5;
22+
};
23+
24+
leds {
25+
compatible = "gpio-leds";
26+
27+
led1: led1 {
28+
gpios = <&ioportj 1 GPIO_ACTIVE_LOW>;
29+
label = "LED1";
30+
};
31+
32+
led2: led2 {
33+
gpios = <&ioportc 5 GPIO_ACTIVE_LOW>;
34+
label = "LED2";
35+
};
36+
};
37+
38+
aliases {
39+
led0 = &led1;
40+
led1 = &led2;
41+
};
42+
};
43+
44+
&subclk {
45+
status = "okay";
46+
};
47+
48+
&cmt {
49+
clock-frequency = <DT_FREQ_M(4)>;
50+
status = "okay";
51+
};
52+
53+
&pclkblock {
54+
clocks = <&hoco>;
55+
};
56+
57+
&clkout {
58+
clocks = <&hoco>;
59+
};
60+
61+
&uclk {
62+
clocks = <&hoco>;
63+
};
64+
65+
&ioport3 {
66+
status = "okay";
67+
};
68+
69+
&ioportc {
70+
status = "okay";
71+
};
72+
73+
&ioportj {
74+
status = "okay";
75+
};
76+
77+
&sci5 {
78+
pinctrl-0 = <&sci5_default>;
79+
pinctrl-names = "default";
80+
status = "okay";
81+
82+
uart5: uart {
83+
current-speed = <115200>;
84+
status = "okay";
85+
};
86+
};
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Copyright (c) 2025 Renesas Electronics Corporation
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
identifier: fpb_rx261
5+
name: Renesas RX261 Fast Prototyping Board
6+
type: mcu
7+
arch: rx
8+
toolchain:
9+
- cross-compile
10+
supported:
11+
- gpio
12+
- serial
13+
- timer
14+
ram: 128
15+
flash: 512
16+
testing:
17+
timeout_multiplier: 5
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Copyright (c) 2025 Renesas Electronics Corporation
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
# Enable GPIO
5+
CONFIG_GPIO=y
6+
7+
# Enable UART driver
8+
CONFIG_SERIAL=y
9+
CONFIG_UART_INTERRUPT_DRIVEN=y
10+
11+
# Enable console
12+
CONFIG_CONSOLE=y
13+
CONFIG_UART_CONSOLE=y

0 commit comments

Comments
 (0)