Hi,
Ubuntu 20.3
vscode + nrf connect extension
when i create new application from exsample project broadcast_audio_source for nrf5340, after build, and flash into the chip, i get following error message:
*** Booting Zephyr OS build v3.0.99-ncs1-2479-g78f2648f85e9 ***
[00:00:00.251,403] <dbg> bt_hci_core: bt_hci_driver_register: Registered RPMsg
[00:00:00.257,110] <dbg> bt_hci_core: hci_tx_thread: Started
--- 127 messages dropped ---
[00:00:00.283,599] <dbg> bt_hci_driver: Bluetooth initialized
Creating broadcast source
bt_rpmsUnable to create broadcast source: -5
g_send: Final HCI buffer:
01 1c 20 00 |.. .
--- 288 messages dropped ---
[00:00:00.296,783] <dbg> bt_audio_stream: bt_audio_stream_attach: conn (nil) stream 0x200015c4 ep 0x20001d1c codec 0x20000114
[00:00:00.296,783] <dbg> bt_hci_core: bt_hci_cmd_create: opcode 0x2036 param_len 25
[00:00:00.296,813] <dbg> bt_hci_core: bt_hci_cmd_create: buf 0x20006514
[00:00:00.298,278] <dbg> bt_id: bt_id_set_adv_random_addr: 13:96:F4:04:F2:43
[00:00:00.298,309] <dbg> bt_hci_core: bt_hci_cmd_send_sync: buf 0x20006514 opcode 0x2036 len 28
[00:00:00.298,339] <dbg> bt_hci_core: process_events: count 2
[00:00:00.298,339] <dbg> bt_hci_core: process_events: ev->state 4
[00:00:00.298,370] <dbg> bt_hci_core: send_cmd: calling net_buf_get
[00:00:00.298,370] <dbg> bt_hci_core: send_cmd: calling sem_take_wait
[00:00:00.298,400] <dbg> bt_hci_core: send_cmd: Sending command 0x2036 (buf 0x20006514) to driver
[00:00:00.298,400] <dbg> bt_hci_core: bt_send: buf 0x20006514 len 28 type 0
[00:00:00.298,431] <dbg> bt_hci_driver: bt_rpmsg_send: buf 0x20006514 type 0 len 28
[00:00:00.298,461] <dbg> bt_hci_driver: bt_rpmsg_send: Final HCI buffer:
01 36 20 19 00 00 00 a0 00 00 f0 00 00 07 01 00 |.6 ..... ........
00 00 00 00 00 00 00 7f 01 00 02 00 00 |........ .....
[00:00:00.298,492] <dbg> bt_hci_core: process_events: ev->state 0
[00:00:00.298,522] <dbg> bt_conn: bt_conn_prepare_events:
[00:00:00.298,522] <dbg> bt_hci_core: hci_tx_thread: Calling k_poll with 2 events
[00:00:00.299,224] <dbg> bt_hci_driver: bt_rpmsg_rx: RPMsg data:
04 0f 04 01 01 36 20 |.....6
[00:00:00.299,224] <dbg> bt_hci_driver: bt_rpmsg_evt_recv: len 4
[00:00:00.299,255] <dbg> bt_hci_driver: bt_rpmsg_rx: Calling bt_recv(0x20006514)
[00:00:00.299,255] <dbg> bt_hci_core: bt_recv: buf 0x20006514 len 6
[00:00:00.299,285] <dbg> bt_hci_core: hci_cmd_status: opcode 0x2036
[00:00:00.299,285] <dbg> bt_hci_core: hci_cmd_done: opcode 0x2036 status 0x01 buf 0x20006514
[00:00:00.299,346] <dbg> bt_hci_driver: bt_rpmsg_rx: RX buf payload:
[00:00:00.299,377] <wrn> bt_hci_core: opcode 0x2036 status 0x01
[00:00:00.299,407] <dbg> bt_audio_broadcast_source: bt_audio_broadcast_source_create: Failed to create advertising set (err -5)
after check the source code, i get this in error.h:
#define EIO 5 /**< I/O error */
why get this error?
thanks