-
Notifications
You must be signed in to change notification settings - Fork 7.8k
boards: renesas: Add support Renesas ek_ra4c1 board #94074
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
khoa-nguyen-18
wants to merge
12
commits into
zephyrproject-rtos:main
Choose a base branch
from
renesas:support_renesas_ek_ra4c1
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+1,867
−1
Open
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
6e555c0
manifest: Update hal_renesas for RA4C1 support
khoa-nguyen-18 9284192
dts: arm: renesas: ra: Add support for Renesas RA4C1 soc
khoa-nguyen-18 8b2aac7
boards: renesas: Add support for Renesas ek_ra4c1 board
khoa-nguyen-18 17177ac
tests: drivers: adc: Add support test ADC for ek_ra4c1
khoa-nguyen-18 7abc0b1
tests: drivers: i2c: Add support test I2C for ek_ra4c1
khoa-nguyen-18 2abb351
tests: drivers: pwm: Add support test PWM for ek_ra4c1
khoa-nguyen-18 e6b6827
tests: drivers: spi: Add support spi test for ek_ra4c1
khoa-nguyen-18 30fb30c
tests: drivers: uart: Add support test UART for ek_ra4c1
khoa-nguyen-18 e5bd960
tests: boards: renesas: elc: Add support test app elc for ek_ra4c1
khoa-nguyen-18 e7cd1e5
tests: drivers: counter: Add support counter_basic_api for ek_ra4c1
khoa-nguyen-18 526e8d6
samples: drivers: counter: Add support alarm for Renesas ek_ra4c1
khoa-nguyen-18 645ce82
samples: boards: renesas: elc: Add support sample elc for ek_ra4c1
khoa-nguyen-18 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Copyright (c) 2025 Renesas Electronics Corporation | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
config BOARD_EK_RA4C1 | ||
select SOC_R7FA4C1BD3CFP |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Copyright (c) 2025 Renesas Electronics Corporation | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
board_runner_args(jlink "--device=R7FA4C1BD") | ||
|
||
include(${ZEPHYR_BASE}/boards/common/jlink.board.cmake) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
board: | ||
name: ek_ra4c1 | ||
full_name: RA4C1 Evaluation Kit | ||
vendor: renesas | ||
socs: | ||
- name: r7fa4c1bd3cfp |
Binary file not shown.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
@@ -0,0 +1,123 @@ | ||||||
.. zephyr:board:: ek_ra4c1 | ||||||
|
||||||
Overview | ||||||
******** | ||||||
|
||||||
The EK-RA4C1, an Evaluation Kit for the RA4 Series, enables users to seamlessly evaluate | ||||||
the features of the RA4C1 MCU group and develop embedded systems applications using | ||||||
Flexible Software Package (FSP) and the e2 studio IDE. The users can use rich on-board | ||||||
features along with their choice of popular ecosystems add-ons to bring their big ideas to life. | ||||||
|
||||||
The key features of the EK-RA4C1 board are categorized in three groups (consistent with | ||||||
the architecture of the kit) as follows: | ||||||
|
||||||
**Renesas RA4C1 Microcontroller Group** | ||||||
|
||||||
- R7FA4C1BD3CFP MCU (referred to as RA MCU) | ||||||
- 80 MHz, Arm® Cortex®-M33 core | ||||||
- 512 KB Code Flash, 96 KB SRAM | ||||||
- 100 pins, LQFP package | ||||||
- Native pin access through 3 x 26-pin headers (not populated) | ||||||
- Tamper Detection embedded into J4 | ||||||
- Segment LCD Board Interface | ||||||
- MCU current measurement points for precision current consumption measurement | ||||||
- Multiple clock sources – RA MCU oscillator and sub-clock oscillator crystals, | ||||||
providing precision 8.000 MHz and 32,768 Hz reference clocks. Additional low-precision | ||||||
clocks are available internal to the RA MCU | ||||||
|
||||||
**System Control and Ecosystem Access** | ||||||
|
||||||
- Two 5 V input sources | ||||||
|
||||||
- USB (Debug) | ||||||
- External Power Supply 2-pin header (not populated) | ||||||
|
||||||
- Three Debug modes | ||||||
|
||||||
- Debug on-board (SWD) | ||||||
- Debug in (SWD) | ||||||
- Debug out (SWD, SWO and JTAG) | ||||||
|
||||||
- User LEDs and buttons | ||||||
|
||||||
- Three User LEDs (red, blue, green) | ||||||
- Power LED (white) indicating availability of regulated power | ||||||
- Debug LED (yellow) indicating the debug connection | ||||||
- Two User buttons | ||||||
- One Reset button | ||||||
|
||||||
- Five most popular ecosystems expansions | ||||||
|
||||||
- Two Seeed Grove® system (I2C/Analog) connectors (not populated) | ||||||
- SparkFun® Qwiic® connector (not populated) | ||||||
- Two Digilent PmodTM (SPI, UART and I2C) connectors | ||||||
- Arduino™ (UNO R3) connector | ||||||
- MikroElektronikaTM mikroBUS connector (not populated) | ||||||
|
||||||
- MCU boot configuration jumper | ||||||
- Low Voltage Mode voltage input and operation | ||||||
|
||||||
**Special Feature Access** | ||||||
- 32 MB (256 Mb) External Quad-SPI Flash | ||||||
- CAN-FD (3-pin header) | ||||||
- External Battery Connector | ||||||
- Configuration Switch | ||||||
|
||||||
Hardware | ||||||
******** | ||||||
|
||||||
Detailed hardware features can be found at: | ||||||
- RA4C1 MCU: `RA4C1 Group User's Manual Hardware`_ | ||||||
- EK-RA4C1 board: `EK-RA4C1 - User's Manual`_ | ||||||
|
||||||
Supported Features | ||||||
================== | ||||||
|
||||||
.. zephyr:board-supported-hw:: | ||||||
|
||||||
.. note:: | ||||||
|
||||||
Other hardware features are currently not supported by the port. | ||||||
|
||||||
Programming and Debugging | ||||||
************************* | ||||||
|
||||||
Applications for the ``ek_ra4c1`` board target configuration can be | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
or did this get removed, can't remember @kartben |
||||||
built, flashed, and debugged in the usual way. See | ||||||
:ref:`build_an_application` and :ref:`application_run` for more details on | ||||||
building and running. | ||||||
|
||||||
Flashing | ||||||
======== | ||||||
|
||||||
Program can be flashed to EK-RA4C1 via the on-board SEGGER J-Link debugger. | ||||||
SEGGER J-link's drivers are avaialbe at https://www.segger.com/downloads/jlink/ | ||||||
|
||||||
To flash the program to board | ||||||
|
||||||
1. Connect to J-Link OB via USB port to host PC | ||||||
|
||||||
2. Make sure J-Link OB jumper is in default configuration as describe in `EK-RA4C1 - User's Manual`_ | ||||||
|
||||||
3. Execute west command | ||||||
|
||||||
.. code-block:: console | ||||||
|
||||||
west flash -r jlink | ||||||
|
||||||
References | ||||||
********** | ||||||
- `EK-RA4C1 Website`_ | ||||||
- `RA4C1 MCU group Website`_ | ||||||
|
||||||
.. _EK-RA4C1 Website: | ||||||
http://www.renesas.com/ek-ra4c1 | ||||||
|
||||||
.. _RA4C1 MCU group Website: | ||||||
http://www.renesas.com/ra4c1 | ||||||
|
||||||
.. _EK-RA4C1 - User's Manual: | ||||||
https://www.renesas.com/us/en/document/mat/ek-ra4c1-v1-users-manual | ||||||
|
||||||
.. _RA4C1 Group User's Manual Hardware: | ||||||
https://www.renesas.com/us/en/document/man/ra4c1-group-users-manual-hardware |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
@@ -0,0 +1,58 @@ | ||||||||||||||||||
/* | ||||||||||||||||||
* Copyright (c) 2025 Renesas Electronics Corporation | ||||||||||||||||||
* SPDX-License-Identifier: Apache-2.0 | ||||||||||||||||||
*/ | ||||||||||||||||||
|
||||||||||||||||||
&pinctrl { | ||||||||||||||||||
sci4_default: sci4_default { | ||||||||||||||||||
group1 { | ||||||||||||||||||
/* tx rx */ | ||||||||||||||||||
psels = <RA_PSEL(RA_PSEL_SCI_0, 2, 7)>, | ||||||||||||||||||
<RA_PSEL(RA_PSEL_SCI_0, 2, 6)>; | ||||||||||||||||||
}; | ||||||||||||||||||
}; | ||||||||||||||||||
|
||||||||||||||||||
spi0_default: spi0_default { | ||||||||||||||||||
group1 { | ||||||||||||||||||
/* MISO MOSI RSPCK SSL */ | ||||||||||||||||||
psels = <RA_PSEL(RA_PSEL_SPI, 1, 10)>, | ||||||||||||||||||
<RA_PSEL(RA_PSEL_SPI, 1, 9)>, | ||||||||||||||||||
<RA_PSEL(RA_PSEL_SPI, 1, 11)>, | ||||||||||||||||||
<RA_PSEL(RA_PSEL_SPI, 1, 12)>; | ||||||||||||||||||
Comment on lines
+18
to
+21
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Tab indentation should be consistent throughout this file. Please check other items in this file.
Suggested change
|
||||||||||||||||||
}; | ||||||||||||||||||
}; | ||||||||||||||||||
|
||||||||||||||||||
adc0_default: adc0_default { | ||||||||||||||||||
group1 { | ||||||||||||||||||
/* input */ | ||||||||||||||||||
psels = <RA_PSEL(RA_PSEL_ADC, 0, 2)>; | ||||||||||||||||||
renesas,analog-enable; | ||||||||||||||||||
}; | ||||||||||||||||||
}; | ||||||||||||||||||
|
||||||||||||||||||
pwm4_default: pwm4_default { | ||||||||||||||||||
group1 { | ||||||||||||||||||
/* GTIOC4A GTIOC4B */ | ||||||||||||||||||
psels = <RA_PSEL(RA_PSEL_GPT1, 3, 2)>, | ||||||||||||||||||
<RA_PSEL(RA_PSEL_GPT1, 3, 1)>; | ||||||||||||||||||
}; | ||||||||||||||||||
}; | ||||||||||||||||||
|
||||||||||||||||||
iic1_default: iic1_default { | ||||||||||||||||||
group1 { | ||||||||||||||||||
/* SCL1 SDA1 */ | ||||||||||||||||||
psels = <RA_PSEL(RA_PSEL_I2C, 4, 0)>, | ||||||||||||||||||
<RA_PSEL(RA_PSEL_I2C, 4, 1)>; | ||||||||||||||||||
drive-strength = "medium"; | ||||||||||||||||||
}; | ||||||||||||||||||
}; | ||||||||||||||||||
|
||||||||||||||||||
canfd0_default: canfd0_default { | ||||||||||||||||||
group1 { | ||||||||||||||||||
/* CRX0 CTX0 */ | ||||||||||||||||||
psels = <RA_PSEL(RA_PSEL_CANFD, 1, 3)>, | ||||||||||||||||||
<RA_PSEL(RA_PSEL_CANFD, 1, 2)>; | ||||||||||||||||||
drive-strength = "high"; | ||||||||||||||||||
}; | ||||||||||||||||||
}; | ||||||||||||||||||
}; |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please try to add pyocd runner support for this board. Thank you!