Hi,
I am trying to build a simple example that will run nRF91 as BLE host and nRF52 as BLE controller in the latest stable NCS 1.4 and nRF9160DK 0.8.2. However, I have encountered two issues.
My sample for nRF91 won't communicate with HCI UART driver flashed to nRF52840 on nRF9160DK.
This is what I get from the log.
00> *** Booting Zephyr OS build v2.4.0-ncs1-5-g1664f186a309 *** 00> 00> [00:00:00.000,274] <inf> main: Bluetooth trying to init 00> [00:00:00.002,868] <inf> fs_nvs: 2 Sectors of 4096 bytes 00> [00:00:00.003,143] <inf> fs_nvs: alloc wra: 0, ff0 00> [00:00:00.003,387] <inf> fs_nvs: data wra: 0, 0 00> [00:00:00.610,656] <wrn> bt_hci_core: OpCode 0x0000 completed instead of expected 0x0c03 00> [00:00:00.611,053] <wrn> bt_hci_core: opcode 0x0c03 status 0xc0 00> [00:00:00.611,358] <err> main: Bluetooth init failed (err -5)
Steps to reproduce:
- Build HCI UART from ncs/zephyr/samples/bluetooth/hci_uart and flash it to nRF52840 on nRF9160DK
- Build my sample code from https://github.com/lukasbrchl/nrf91_bluetooth_host and flash it to nRF9160 on nRF9160DK
- Restart DK and observe the error
The weird thing is that when I use the prebuilt hci_uart.hex file from this thread. Then it works without any problem. Even when I try to build and flash the LTE BLE Gateway sample, then it also initializes Bluetooth without problems.
Bluetooth MAC address is not kept static after reset in the split stack
Steps to reproduce:
- Flash the prebuilt hci_uart.hex file from this thread to nRF52840 on nRF9160DK
- Build my sample code from https://github.com/lukasbrchl/nrf91_bluetooth_host and flash it to nRF9160 on nRF9160DK
- Observe in nRF Connect on a mobile phone that MAC address changes on each restart.
It was already discussed in this thread. Since I cannot get working the hci_uart sample (first issue) I cannot experiment in adding additional settings/configs.
Please let me know your thoughts.