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

Bluetooth examples are in infinity loop

Device: nRF5340DK, PCA10095

I'm using latest nRF Connect SDK, installed by nRF Connect - Toolchain application.

I opened central_uart sample:

I added only "LOG_INF("main executed");" into the main, to see if it's seen in logs. Then I burned it and started debugging.
I have following log:

[00:00:00.004,852] <inf> central_uart: main executed!!!
[00:00:00.007,019] <inf> fs_nvs: 2 Sectors of 4096 bytes
[00:00:00.007,019] <inf> fs_nvs: alloc wra: 0, ff0
[00:00:00.007,019] <inf> fs_nvs: data wra: 0, 0

So, main was executed, but it didn't printed "Bluetooth initialized" and it does nothing right now.
I traced the issue, and the app is in infinity loop here:
bt_enable (main.c@551)
err = bt_dev.drv->open(); (hci_core.c@6559)

I traced what executes the last line, and it executes "bt_rpmsg_open" at rpmsg.c file.
It loops on while with "bt_rpmsg_platform_endpoint_is_bound".

Any ideas where can be issue? It's totally fresh untouched SDK.

Also, the same example works absolutely fine on nRF52840DK

Thanks

Related