undefined reference to `__device_dts_ord_XX' #50628
-
Hi zephyr developers, Hello! I'm currently trying to reproduce the "blinky pwm" sample onto my stm32f411ce and I'm facing different problems that I would like to clear asap. I'm working with the platformio ide env with zephyr release 2.7.1. At this moment, I have made a pwm device as follows in my overlay file:
And the output in the zephyr.dts is:
Now, I'm able to get the device and its infos out of the
but whenever I try to use these defines in my code I get a build error saying: Here is an example of how I want to use the PWM_LED0_NODE define:
I hope I was exhaustive enough, I'm still getting used to this RTOS and to devicetree so don't mind asking for more infos if there is something missing. Thx a lot! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
Has an addition I'm putting my prj.conf in here:
|
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
Well I'm not sure if this was the problem, but I made some changes to my "pwmleds" property:
So now the device name "pwm_led_white" is different then the property's name "external_pwm_led". I seem to be able to extract the node with its alias. @erwango correct me if I'm wrong but there is a binding named "external_pwm_leds" in "pwmleds" that I was not using before? I still have no voltage outputted to my pin though, but this must be related to another problem through my initialization of the driver. I think my question is answered, I'll make another question for the absence of voltage at my pin. |
Beta Was this translation helpful? Give feedback.
Well I'm not sure if this was the problem, but I made some changes to my "pwmleds" property:
So now the device name "pwm_led_white" is different then the property's name "external_pwm_led". I seem to be able to extract the node with its alias. @erwango correct me if I'm wrong but there is a binding named "external_pwm_leds" in "pwmleds" that I was not u…