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
  • Hi,

    The example only work with the LE Audio Controller Subsystem for nRF53 (see nRF5340 Audio), so you need to do a few things. Firstly, add these two lines to prj.cof within broadcast_audio_source:

    CONFIG_NCS_INCLUDE_RPMSG_CHILD_IMAGE=n # Make sure NCS build system won't build network core for us
    CONFIG_BT_HCI_VS_EXT=n # Since we are not going to use Zephyr controller, so we have to disabled the VS command for Zephyr

    Then program the firmware hex found under nrf\applications\nrf5340_audio\bin\ on the network core.

    Lastly, program the application core firmware you just built.

    Then you should see a log output like this:

    *** Booting Zephyr OS build v3.0.99-ncs1  ***
    Bluetooth initialized
    Creating broadcast source
    Starting broadcast source
    Broadcast source started
    Waiting 30 seconds before stopped
    [00:00:00.452,087] <inf> bt_hci_core: Identity: F3:04:16:52:BB:ED (random)
    [00:00:00.452,148] <inf> bt_hci_core: HCI: version 5.2 (0x0b) revision 0x0cd7, manufacturer 0x07e8
    [00:00:00.452,148] <inf> bt_hci_core: LMP: version 5.2 (0x0b) subver 0x0cd7
    Sent 1000 total ISO packets
    Sent 2000 total ISO packets
    Sent 3000 total ISO packets
    Stopping broadcast source
    Broadcast source stopped
    Deleting broadcast source
    Broadcast source deleted
    Creating broadcast source
    Starting broadcast source
    Broadcast source started
    Waiting 30 seconds before stopped
    Sent 4000 total ISO packets
    Sent 5000 total ISO packets
    Sent 6000 total ISO packets
    Stopping broadcast source
    Broadcast source stopped
    Deleting broadcast source
    Broadcast source deleted
    Creating broadcast source
    Starting broadcast source
    Broadcast source started
    Waiting 30 seconds before stopped
    ...

  • Hi, Einar

    how to program the netcore and application-core separately

    BR

    thanks

Reply Children
Related