nrf5340运行示例出现的bt_hci_core: opcode 0x0c33 status 0x11 Bluetooth init failed (err -5)问题

今天试了下使用52840运行链接里面的这个例子
https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/samples/bluetooth/central_and_peripheral_hr/README.html
52840运行起来一切正常,日志也能正常输出, 由于这个例子还需要另一块板子来辅助测试
image
刚好我还有一块5340的板子, 但是当我把代码烧录进去后,复位板子,在net core的日志上会打印出
Bluetooth init failed (err -5)
*** Booting nRF Connect SDK v3.0.1-9eb5615da66b ***
*** Using Zephyr OS v4.0.99-77f865b8f8d0 ***
[00:00:00.276,031] bt_hci_core: opcode 0x0c33 status 0x11
Bluetooth init failed (err -5)
于是我通过询问AI,最后在pri.conf和自己在根目录新建的sysbuild/hci_rpmsg.conf里面都加上了这几句
CONFIG_BT_BUF_ACL_TX_SIZE=251
CONFIG_BT_BUF_ACL_RX_SIZE=251
CONFIG_BT_L2CAP_TX_MTU=247
然后可以正常运行了

posted @ 2025-07-13 17:45  lizhaoming634  阅读(24)  评论(0)    收藏  举报