This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

error : nRF52840 light bulb (zigbee)

Hello!
I'm trying to reach zigbee on nRF52840, and I'm trying to get a zigbee communication from light_bulb.
The hex file on the sdk goes in well, and I want to add additional coding to work on it.
The tool is using ses (segger embedded studio).
First of all, I compiled the 'main.c' file in the 'light_bulb' to see if it works properly, and the error is as shown below.


[DT_N_S_pwmleds_S_pwm_led_3_P_pwms_IDX_0_PH_P_label'] undeclared (first use in this function); did you mean 'DT_N_NS_pwmleds_Swm_3_


The above error is from the deviceree_unfixed.h file when compiled in main.c.

Is there a meaning and solution for this error?

I'd appreciate it if you could help me!

  • Hi,

    Which SDK are you using, nRF5 SDK or Nrf Connect SDK (NCS)?

    The light bulb examples should work out of the box for both SDKs. Have you installed the necessary tools and opened the project correctly in SES?

    If you haven't already, I would recommend you take a look at some of our guides for the SDK you're using, and follow along when you try to build your project. If you're using nRF5 SDK for Thread and Zigbee, there's a getting started guide here. There you will find how to install the toolchain as well as building and running examples. If you're using NCS, you can take a look at this getting started guide for the SDK, where you will also find how to install everything as well as building and running, and for working with Zigbee in NCS you should look at this link.

    Best regards,

    Marte

Related