NRF5340-DK BLE examples fail to initialize

I am trying to use a 5340 BLE example project in VSC as a starting point.  I have two NRF5340-DK boards, both 2.0.0.  Whatever example I try, bt_enable always fails.  For example, the peripheral_uart example fails with HCI driver open failed.  I've tried the LBS and coded-hr examples as well.

I have captured a video of the process here:

https://youtu.be/XV-GMkifqJU

It's been a couple days, but I think the first time I tried the UART example it actually worked.  This was on a DK board that already had a programmed NETCPU with the RPC code.  But after doing a board erase, I could never get any of the BLE examples working again, so it almost looks like the NETCPU isn't getting loaded.

  • Hi Patrice

    Good to hear you found a solution in the end, but if the documentation is incorrect it sounds like something we should look into.

    I also had some issues building the peripheral_uart sample when I added CONFIG_BT_RPC_STACK=y to prj.conf, but I got it to work when building from command line as described in the documentation. According to the developers it should work fine to add the configuration in prj.conf, so I need to spend some more time with this to figure out what is going on. 

    Unfortunately I am quite busy this week, but I will set aside some time next week to investigate further. 

    Best regards
    Torbjørn

  • Hi again

    Sorry for the late return Wink

    It seems the issue in my case was that I forgot to do a pristine build after adding CONFIG_BT_RPC_STACK=y to prj.conf, which caused a conflict between the default hci_rpmsg child image and the rpc_host child image...

    Once I made sure to do a pristine build I had no issue running the sample with the configuration set in prj.conf. 

    Best regards
    Torbjørn

Related