When using the distance measurement sample code on my nrf5340 development kits, LEDs 1 and 2 seem to be working correctly, but LED 3 does not light up when connected. The only thing I changed about the sample code was adding this line:
When using the distance measurement sample code on my nrf5340 development kits, LEDs 1 and 2 seem to be working correctly, but LED 3 does not light up when connected. The only thing I changed about the sample code was adding this line:
Hi
Just to confirm. You have two nRF5340 DKs flashed with the same nRF Distance Measurement sample here, correct? https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/samples/bluetooth/nrf_dm/README.html
Do you get any indication when logging that the nRF5340s are in fact connected, and do you get any measurement results? Also, what version of the nRF5340 DKs are you working on, and what version of the nRF Connect SDK are you using?
Best regards,
Simon
Yes, I am using the same sample code on both development kits. The two kits seem to be connected as distance measurements are outputting to my serial terminal and LED 1 is lit based on the connection between the kits. I am using the nRF Connect SDK version 2.9.0. I believe the version of the nrf5340 DKs is PCA10095.
Hi
I'll get back to you on Monday or Tuesday next week as I need to try setting up this on my end and see if I can reproduce this. Can you check the nRF5340 DK board file of the project have indeed set LED3 as pin P0.30 on your end, just to make sure nothing has been changed/edited there in a previous project for some reason. Also, please check solder bridge SB7 on both DKs to make sure that hasn't been cut, as that would cut off the connection to LED3.
Best regards,
Simon
Solder bridge SB7 doesn't look to be cut on either DK. This is what the LEDs are set to in the Devicetree.
leds { compatible = "gpio-leds"; led0: led_0 { gpios = <&gpio0 28 GPIO_ACTIVE_LOW>; label = "Green LED 0"; }; led1: led_1 { gpios = <&gpio0 29 GPIO_ACTIVE_LOW>; label = "Green LED 1"; }; led2: led_2 { gpios = <&gpio0 30 GPIO_ACTIVE_LOW>; label = "Green LED 2"; }; led3: led_3 { gpios = <&gpio0 31 GPIO_ACTIVE_LOW>; label = "Green LED 3"; }; };
Okay, this looks good. And just to make sure, you don't have an .overlay file for example that overrides P0.30 in your project? I will be able to test this on my end tomorrow and will get back to you then.
Best regards,
Simon