Replies: 10 comments 9 replies
-
Can you clarify which board you're using ? |
Beta Was this translation helpful? Give feedback.
-
It's not an official board, but compile well in zephyr-2.3, some pinctrl thing had been added. |
Beta Was this translation helpful? Give feedback.
-
DT_PWMS_LABEL is deprecated, which command should be used instead? |
Beta Was this translation helpful? Give feedback.
-
It depends what you need to do. Do you have an example of usage ? |
Beta Was this translation helpful? Give feedback.
-
Should be something like |
Beta Was this translation helpful? Give feedback.
-
I used DT_PWMS_CTLR to replace DT_PWMS_LABEL, seems this is the source of the error. for example: |
Beta Was this translation helpful? Give feedback.
-
I suggest to look at |
Beta Was this translation helpful? Give feedback.
-
Got it, thank you. |
Beta Was this translation helpful? Give feedback.
-
@erwango |
Beta Was this translation helpful? Give feedback.
-
I've transfered this to discussions, as it is likely not a bug so far. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the bug
Got compile error when trying to move code from zephyr-2.3.0 to zephyr-3.0.99
Please also mention any information which could help others to understand
the problem you're facing:
To Reproduce
Steps to reproduce the behavior:
in my project folder, run west build, then error as below would appear:
my_project_path/build/zephyr/include/generated/devicetree_unfixed.h:4751:54: error: 'DT_N_S_soc_S_timers_40012c00_S_pwm' undeclared here (not in a function); did you mean 'DT_N_S_soc_S_timers_40012c00_S_pwm_ORD'?
4751 | #define DT_N_S_pwmleds_S_pwm_led_all_P_pwms_IDX_0_PH DT_N_S_soc_S_timers_40012c00_S_pwm
Expected behavior
A clear and concise description of what you expected to happen.
No error
Impact
What impact does this issue have on your progress (e.g., annoyance, showstopper)
Can't continue
Logs and console output
If applicable, add console logs or other types of debug information
e.g Wireshark capture or Logic analyzer capture (upload in zip archive).
copy-and-paste text and put a code fence (```) before and after, to help
explain the issue. (if unable to obtain text log, add a screenshot)
my_project_path/build/zephyr/include/generated/devicetree_unfixed.h:4751:54: error: 'DT_N_S_soc_S_timers_40012c00_S_pwm' undeclared here (not in a function); did you mean 'DT_N_S_soc_S_timers_40012c00_S_pwm_ORD'?
4751 | #define DT_N_S_pwmleds_S_pwm_led_all_P_pwms_IDX_0_PH DT_N_S_soc_S_timers_40012c00_S_pwm
Environment (please complete the following information):
Additional context
Add any other context that could be relevant to your issue, such as pin setting,
target configuration, ...
code in dts file:
&timers1 {
//st,prescaler = <10000>;
status = "okay";
};
Beta Was this translation helpful? Give feedback.
All reactions