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
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
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