get error message when running exsample project on nrf5340DK

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

Parents
  • I had the same issue myself just now (but for another sample application), for me what solved it was adding: 

    CONFIG_BT_EXT_ADV=y
    to:
    samples/bluetooth/hci_rpmsg/prj.conf
    Im not able to see from your log if it will solve it for you though. but you can give it a try.
  • and after adding:

    CONFIG_BT_EXT_ADV=y

    CONFIG_BT_PER_ADV=y

    to:

    samples/bluetooth/hci_rpmsg/prj.conf

    i got following message:

    [21:48:02:137] *** Booting Zephyr OS build v3.0.99-ncs1-2479-g78f2648f85e9 ***
    [21:48:02:158] [00:00:00.450,073] <0x1b>[0m<dbg> bt_hci_core: bt_hci_driver_register: Registered RPMsg<0x1b>[0m
    [21:48:02:158] [00:00:00.455,749] <0x1b>[0m<dbg> bt_hci_core: hci_tx_thread: Started<0x1b>[0m
    [21:48:02:159] <0x1b>[1;31m--- 106 messages dropped ---
    [21:48:02:164] <0x1b>[0m[00:00:00.478,942] <0x1b>[0m<dbg> bt_hci_driver: bt_rpmsg_send: buf 0xBluetooth initialized
    [21:48:02:183] Creating broadcast source
    [21:48:02:183] 20006514 type 0 len 3<0x1b>[0m
    [21:48:02:189] <0x1b>[1;31m--- 367 messages dropped ---
    [21:48:02:196] <0x1b>[Starting broadcast source
    [21:48:02:199] 0m[00:00Unable to start broadcast source: -5
    [21:48:02:441] :00.510,589] <0x1b>[0m<dbg> bt_conn: bt_conn_prepare_events: <0x1b>[0m
    [21:48:02:441] <0x1b>[1;31m--- 123 messages dropped ---
    [21:48:02:441] <0x1b>[0m[00:00:00.513,885] <0x1b>[0m<dbg> bt_iso: bt_iso_chan_add: iso 0x20001180 chan 0x20001dfc<0x1b>[0m
    [21:48:02:441] [00:00:00.513,885] <0x1b>[0m<dbg> bt_hci_core: bt_hci_cmd_create: opcode 0x2068 param_len 31<0x1b>[0m
    [21:48:02:441] [00:00:00.513,916] <0x1b>[0m<dbg> bt_hci_core: bt_hci_cmd_create: buf 0x20006514<0x1b>[0m
    [21:48:02:441] [00:00:00.513,946] <0x1b>[0m<dbg> bt_hci_core: bt_hci_cmd_send_sync: buf 0x20006514 opcode 0x2068 len 34<0x1b>[0m
    [21:48:02:441] [00:00:00.513,977] <0x1b>[0m<dbg> bt_hci_core: process_events: count 2<0x1b>[0m
    [21:48:02:441] [00:00:00.513,977] <0x1b>[0m<dbg> bt_hci_core: process_events: ev->state 4<0x1b>[0m
    [21:48:02:441] [00:00:00.514,007] <0x1b>[0m<dbg> bt_hci_core: send_cmd: calling net_buf_get<0x1b>[0m
    [21:48:02:441] [00:00:00.514,007] <0x1b>[0m<dbg> bt_hci_core: send_cmd: calling sem_take_wait<0x1b>[0m
    [21:48:02:441] [00:00:00.514,038] <0x1b>[0m<dbg> bt_hci_core: send_cmd: Sending command 0x2068 (buf 0x20006514) to driver<0x1b>[0m
    [21:48:02:441] [00:00:00.514,038] <0x1b>[0m<dbg> bt_hci_core: bt_send: buf 0x20006514 len 34 type 0<0x1b>[0m
    [21:48:02:441] [00:00:00.514,068] <0x1b>[0m<dbg> bt_hci_driver: bt_rpmsg_send: buf 0x20006514 type 0 len 34<0x1b>[0m
    [21:48:02:441] [00:00:00.514,068] <0x1b>[0m<dbg> bt_hci_driver: bt_rpmsg_send: Final HCI buffer:
    [21:48:02:441] 01 68 20 1f 00 00 01 10 27 00 28 00 0a 00 02 02 |.h ..... '.(.....
    [21:48:02:441] 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |........ ........
    [21:48:02:441] 00 00 00 |... <0x1b>[0m
    [21:48:02:441] [00:00:00.514,129] <0x1b>[0m<dbg> bt_hci_core: process_events: ev->state 0<0x1b>[0m
    [21:48:02:441] [00:00:00.514,129] <0x1b>[0m<dbg> bt_conn: bt_conn_prepare_events: <0x1b>[0m
    [21:48:02:441] [00:00:00.514,160] <0x1b>[0m<dbg> bt_hci_core: hci_tx_thread: Calling k_poll with 2 events<0x1b>[0m
    [21:48:02:441] [00:00:00.514,953] <0x1b>[0m<dbg> bt_hci_driver: bt_rpmsg_rx: RPMsg data:
    [21:48:02:441] 04 0f 04 01 01 68 20 |.....h <0x1b>[0m
    [21:48:02:441] [00:00:00.514,984] <0x1b>[0m<dbg> bt_hci_driver: bt_rpmsg_evt_recv: len 4<0x1b>[0m
    [21:48:02:441] [00:00:00.514,984] <0x1b>[0m<dbg> bt_hci_driver: bt_rpmsg_rx: Calling bt_recv(0x20006514)<0x1b>[0m
    [21:48:02:441] [00:00:00.515,014] <0x1b>[0m<dbg> bt_hci_core: bt_recv: buf 0x20006514 len 6<0x1b>[0m
    [21:48:02:441] [00:00:00.515,014] <0x1b>[0m<dbg> bt_hci_core: hci_cmd_status: opcode 0x2068<0x1b>[0m
    [21:48:02:441] [00:00:00.515,045] <0x1b>[0m<dbg> bt_hci_core: hci_cmd_done: opcode 0x2068 status 0x01 buf 0x20006514<0x1b>[0m
    [21:48:02:441] [00:00:00.515,075] <0x1b>[0m<dbg> bt_hci_driver: bt_rpmsg_rx: RX buf payload:<0x1b>[0m
    [21:48:02:441] [00:00:00.515,106] <0x1b>[1;33m<wrn> bt_hci_core: opcode 0x2068 status 0x01<0x1b>[0m
    [21:48:02:441] [00:00:00.515,136] <0x1b>[0m<dbg> bt_iso: bt_iso_big_create: Could not create BIG -5<0x1b>[0m
    [21:48:02:441] [00:00:00.515,136] <0x1b>[0m<dbg> bt_conn: bt_conn_unref: handle 0 ref 1 -> 0<0x1b>[0m
    [21:48:02:441] [00:00:00.515,167] <0x1b>[0m<dbg> bt_audio_broadcast_source: bt_audio_broadcast_source_start: Failed to create BIG: -5<0x1b>[0m

    thanks

Reply
  • and after adding:

    CONFIG_BT_EXT_ADV=y

    CONFIG_BT_PER_ADV=y

    to:

    samples/bluetooth/hci_rpmsg/prj.conf

    i got following message:

    [21:48:02:137] *** Booting Zephyr OS build v3.0.99-ncs1-2479-g78f2648f85e9 ***
    [21:48:02:158] [00:00:00.450,073] <0x1b>[0m<dbg> bt_hci_core: bt_hci_driver_register: Registered RPMsg<0x1b>[0m
    [21:48:02:158] [00:00:00.455,749] <0x1b>[0m<dbg> bt_hci_core: hci_tx_thread: Started<0x1b>[0m
    [21:48:02:159] <0x1b>[1;31m--- 106 messages dropped ---
    [21:48:02:164] <0x1b>[0m[00:00:00.478,942] <0x1b>[0m<dbg> bt_hci_driver: bt_rpmsg_send: buf 0xBluetooth initialized
    [21:48:02:183] Creating broadcast source
    [21:48:02:183] 20006514 type 0 len 3<0x1b>[0m
    [21:48:02:189] <0x1b>[1;31m--- 367 messages dropped ---
    [21:48:02:196] <0x1b>[Starting broadcast source
    [21:48:02:199] 0m[00:00Unable to start broadcast source: -5
    [21:48:02:441] :00.510,589] <0x1b>[0m<dbg> bt_conn: bt_conn_prepare_events: <0x1b>[0m
    [21:48:02:441] <0x1b>[1;31m--- 123 messages dropped ---
    [21:48:02:441] <0x1b>[0m[00:00:00.513,885] <0x1b>[0m<dbg> bt_iso: bt_iso_chan_add: iso 0x20001180 chan 0x20001dfc<0x1b>[0m
    [21:48:02:441] [00:00:00.513,885] <0x1b>[0m<dbg> bt_hci_core: bt_hci_cmd_create: opcode 0x2068 param_len 31<0x1b>[0m
    [21:48:02:441] [00:00:00.513,916] <0x1b>[0m<dbg> bt_hci_core: bt_hci_cmd_create: buf 0x20006514<0x1b>[0m
    [21:48:02:441] [00:00:00.513,946] <0x1b>[0m<dbg> bt_hci_core: bt_hci_cmd_send_sync: buf 0x20006514 opcode 0x2068 len 34<0x1b>[0m
    [21:48:02:441] [00:00:00.513,977] <0x1b>[0m<dbg> bt_hci_core: process_events: count 2<0x1b>[0m
    [21:48:02:441] [00:00:00.513,977] <0x1b>[0m<dbg> bt_hci_core: process_events: ev->state 4<0x1b>[0m
    [21:48:02:441] [00:00:00.514,007] <0x1b>[0m<dbg> bt_hci_core: send_cmd: calling net_buf_get<0x1b>[0m
    [21:48:02:441] [00:00:00.514,007] <0x1b>[0m<dbg> bt_hci_core: send_cmd: calling sem_take_wait<0x1b>[0m
    [21:48:02:441] [00:00:00.514,038] <0x1b>[0m<dbg> bt_hci_core: send_cmd: Sending command 0x2068 (buf 0x20006514) to driver<0x1b>[0m
    [21:48:02:441] [00:00:00.514,038] <0x1b>[0m<dbg> bt_hci_core: bt_send: buf 0x20006514 len 34 type 0<0x1b>[0m
    [21:48:02:441] [00:00:00.514,068] <0x1b>[0m<dbg> bt_hci_driver: bt_rpmsg_send: buf 0x20006514 type 0 len 34<0x1b>[0m
    [21:48:02:441] [00:00:00.514,068] <0x1b>[0m<dbg> bt_hci_driver: bt_rpmsg_send: Final HCI buffer:
    [21:48:02:441] 01 68 20 1f 00 00 01 10 27 00 28 00 0a 00 02 02 |.h ..... '.(.....
    [21:48:02:441] 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |........ ........
    [21:48:02:441] 00 00 00 |... <0x1b>[0m
    [21:48:02:441] [00:00:00.514,129] <0x1b>[0m<dbg> bt_hci_core: process_events: ev->state 0<0x1b>[0m
    [21:48:02:441] [00:00:00.514,129] <0x1b>[0m<dbg> bt_conn: bt_conn_prepare_events: <0x1b>[0m
    [21:48:02:441] [00:00:00.514,160] <0x1b>[0m<dbg> bt_hci_core: hci_tx_thread: Calling k_poll with 2 events<0x1b>[0m
    [21:48:02:441] [00:00:00.514,953] <0x1b>[0m<dbg> bt_hci_driver: bt_rpmsg_rx: RPMsg data:
    [21:48:02:441] 04 0f 04 01 01 68 20 |.....h <0x1b>[0m
    [21:48:02:441] [00:00:00.514,984] <0x1b>[0m<dbg> bt_hci_driver: bt_rpmsg_evt_recv: len 4<0x1b>[0m
    [21:48:02:441] [00:00:00.514,984] <0x1b>[0m<dbg> bt_hci_driver: bt_rpmsg_rx: Calling bt_recv(0x20006514)<0x1b>[0m
    [21:48:02:441] [00:00:00.515,014] <0x1b>[0m<dbg> bt_hci_core: bt_recv: buf 0x20006514 len 6<0x1b>[0m
    [21:48:02:441] [00:00:00.515,014] <0x1b>[0m<dbg> bt_hci_core: hci_cmd_status: opcode 0x2068<0x1b>[0m
    [21:48:02:441] [00:00:00.515,045] <0x1b>[0m<dbg> bt_hci_core: hci_cmd_done: opcode 0x2068 status 0x01 buf 0x20006514<0x1b>[0m
    [21:48:02:441] [00:00:00.515,075] <0x1b>[0m<dbg> bt_hci_driver: bt_rpmsg_rx: RX buf payload:<0x1b>[0m
    [21:48:02:441] [00:00:00.515,106] <0x1b>[1;33m<wrn> bt_hci_core: opcode 0x2068 status 0x01<0x1b>[0m
    [21:48:02:441] [00:00:00.515,136] <0x1b>[0m<dbg> bt_iso: bt_iso_big_create: Could not create BIG -5<0x1b>[0m
    [21:48:02:441] [00:00:00.515,136] <0x1b>[0m<dbg> bt_conn: bt_conn_unref: handle 0 ref 1 -> 0<0x1b>[0m
    [21:48:02:441] [00:00:00.515,167] <0x1b>[0m<dbg> bt_audio_broadcast_source: bt_audio_broadcast_source_start: Failed to create BIG: -5<0x1b>[0m

    thanks

Children
No Data
Related