-
Notifications
You must be signed in to change notification settings - Fork 8.5k
Description
Describe the bug
When running the rgb_led example:
在运行rgb_led示例时:
D:\Zephyr\zephyrproject\zephyr\samples\basic\rgb_led
Expected configuration file:fpb_ra6e2.overlay:
&pinctrl {
pwm2_default: pwm2_default {
group1 {
/* GTIOC2A GTIOC2B */
psels = <RA_PSEL(RA_PSEL_GPT2, 1, 3)>,
<RA_PSEL(RA_PSEL_GPT2, 1, 2)>;
};
};
pwm3_default: pwm3_default {
group1 {
/* GTIOC3A GTIOC3B */
psels = <RA_PSEL(RA_PSEL_GPT3, 1, 11)>,
<RA_PSEL(RA_PSEL_GPT3, 1, 12)>;
};
};
};
&pwm2 {
pinctrl-0 = <&pwm2_default>;
pinctrl-names = "default";
status = "okay";
};
&pwm3 {
pinctrl-0 = <&pwm3_default>;
pinctrl-names = "default";
status = "okay";
};
/ {
pwmleds {
compatible = "pwm-leds";
red_led: red_led {
/* 20ms = 20_000_000 ns */
pwms = <&pwm1 0 20000000 0>;
};
green_led: green_led {
/* 20ms = 20_000_000 ns */
pwms = <&pwm2 0 20000000 0>;
};
blue_led: blue_led {
/* 20ms = 20_000_000 ns */
pwms = <&pwm3 0 20000000 0>;
};
};
aliases {
red-pwm-led = &red_led;
green-pwm-led = &green_led;
blue-pwm-led = &blue_led;
};
};
Issues encountered:
In the directory:
D:\Zephyr\zephyrproject\zephyr\include\zephyr\dt-bindings\pinctrl\renesas\pinctrl-ra.h
only define:
#define RA_PSEL_GPT0 0x2
#define RA_PSEL_GPT1 0x3
I cannot find the definitions of RA_PSEL_GPT2 and RA_PSEL_GPT3. Could you please advise how to configure the fpb_ra6e2.overlay file?
Looking forward to your reply. Thank you!
Regression
- This is a regression.
Steps to reproduce
(.venv) PS D:\Zephyr\myapps\fpb_ra6e2\fpb_ra6e2_basic_rgb_led> west build -b myfpb_ra6e2 -- -DBOARD_ROOT="D:/Zephyr/custom_boards"
Relevant log output
my log is:
-- west build: generating a build system
west : Loading Zephyr default modules (Zephyr base (cached)).
所在位置 行:1 字符: 2
+ west build -b myfpb_ra6e2 -- -DBOARD_ROOT="D:/Zephyr/custom_boards"
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (Loading Zephyr ...base (cached)).:String) [], RemoteException
+ FullyQualifiedErrorId : NativeCommandError
-- Application: D:/Zephyr/myapps/fpb_ra6e2/fpb_ra6e2_basic_rgb_led
-- CMake version: 4.2.1
-- Cache files will be written to: D:/Zephyr/zephyrproject/zephyr/.cache
-- Zephyr version: 4.3.99 (D:/Zephyr/zephyrproject/zephyr)
-- Found west (found suitable version "1.5.0", minimum required is "0.14.0")
-- Board: myfpb_ra6e2, qualifiers: r7fa6e2bb3cfm
-- Found host-tools: zephyr 0.17.4 (C:/Users/Administrator/zephyr-sdk-0.17.4)
-- Found toolchain: zephyr 0.17.4 (C:/Users/Administrator/zephyr-sdk-0.17.4)
-- Found BOARD.dts: D:/Zephyr/custom_boards/boards/arm/myfpb_ra6e2/myfpb_ra6e2.dts
devicetree error: D:/Zephyr/custom_boards/boards/arm/myfpb_ra6e2/myfpb_ra6e2-pinctrl.dtsi:54 (column 24): parse error: expected nu
mber or parenthesized expression
CMake Error at D:/Zephyr/zephyrproject/zephyr/cmake/modules/dts.cmake:306 (execute_process):
execute_process failed command indexes:
1: "Child return code: 1"
Call Stack (most recent call first):
D:/Zephyr/zephyrproject/zephyr/cmake/modules/zephyr_default.cmake:129 (include)
D:/Zephyr/zephyrproject/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
D:/Zephyr/zephyrproject/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:97 (include_boilerplate)
CMakeLists.txt:4 (find_package)
-- Configuring incomplete, errors occurred!
FATAL ERROR: command exited with status 1: 'C:\Program Files\CMake\bin\cmake.EXE' -DWEST_PYTHON=D:/Zephyr/zephyrproject/.venv/Scri
pts/python.exe '-BD:\Zephyr\myapps\fpb_ra6e2\fpb_ra6e2_basic_rgb_led\build' -GNinja -DBOARD_ROOT=D:/Zephyr/custom_boards '-SD:\Zep
hyr\myapps\fpb_ra6e2\fpb_ra6e2_basic_rgb_led'Impact
Annoyance – Minor irritation; no significant impact on usability or functionality.
Environment
Windows
run example。board name: FPB-RA6E2
Additional Context
How can run rgb_led example ? Looking forward to your reply. Thank you!