Peripheral LBS sample not working as expected

I'm becoming familiar with the nRF5340 development kit by running the peripheral LBS sample application. I can connect with nRF connect but the LED and button are not working as expected. I think I must have something misconfigured.

I created the nrf/samples/bluetooth/peripheral_lbs application in VS Code from the nRF Connect welcome page.with SDK 2.3.0.

I added the build configuration for the nfr5340dk_nrf5340_cpuapp board.

I can connect to the NORDIC_LBS device with nRF Connect app on my mobile device but when I send LED on from the Nordic LED Button Service the RGB 2 blue LED turns off and when I send LED off the RBG 2 blue LED turns on. I expected LED 1 to turn on an off instead.

After enabling button notifications, the value does not change when I push the button. A debug breakpoint in the buttons_scan_fn() function is only ever hit once when the app comes up.

Parents Reply Children
  • Hello,

    Yes, that is it. You have a different DK. When you build for the "normal" DK the buttons and LEDs will be mapped differently. 

    To build for the Audio DK, you should select the board "nrf5340_audio_dk_nrf5340_cpuapp". If it doesn't show up under "compatible boards" in VS code, you should see it under "Nordic boards", or "All boards".

    I have actually not tested the Audio DK, but you can give it a go.

    Best regards,

    Edvin

Related