Central PAST scan failed

Hello,

I'm using central_past sample on nrf5340 audio DK board, and select nrf5340dk_nrf5340_cpuapp_ns for Build Target.

I added the following config to enable RTT log in prj.conf, other than that I did not make any changes.

CONFIG_USE_SEGGER_RTT=y
CONFIG_RTT_CONSOLE=y

I have used nRF Connect SDK 2.2.0, 2.4.0, 2.6.0 and 2.7.0, and the results are the same as follows:

SEGGER J-Link V7.94i - Real time terminal output
SEGGER J-Link (unknown) V1.0, SN=1050135643
Process: JLink.exe
*** Booting Zephyr OS build v3.3.99-ncs1 ***
Starting Central Periodic Advertising Synchronization Transfer (PAST) Demo
[00:00:00.405,975] <inf> bt_hci_core: hci_vs_init: HW Platform: Nordic Semiconductor (0x0002)
[00:00:00.406,005] <inf> bt_hci_core: hci_vs_init: HW Variant: nRF53x (0x0003)
[00:00:00.406,036] <inf> bt_hci_core: hci_vs_init: Firmware: Standard Bluetooth controller (0x00) Version 224.11902 Build 2231721665
[00:00:00.407,714] <inf> bt_hci_core: bt_dev_show_info: Identity: EE:59:95:D7:A5:0C (random)
[00:00:00.407,745] <inf> bt_hci_core: bt_dev_show_info: HCI: version 5.4 (0x0d) revision 0x2077, manufacturer 0x0059
[00:00:00.407,775] <inf> bt_hci_core: bt_dev_show_info: LMP: version 5.4 (0x0d) subver 0x2077
Connection callbacks register
Scan callbacks register
Periodic Advertising callbacks register
Start scanning...[00:00:00.410,125] <wrn> bt_hci_core: bt_hci_cmd_send_sync: opcode 0x2041 status 0x01
failed (err -5)

How can I make this sample run normally?

Parents
  • Hi Landy, 

    Håkon is away this week. I will try to help you in the mean time. 
    Could you try to use sysbuild  instead of the system default ? 
    I can find a ticket here with similar error and also on 2.7: 
    RE: nRF5340 audio application ZEPHYR FATAL ERROR in NCS v2.7.0

    If you look at the last reply , using sysbuild solved the problem. 

    Please try to do west flash or click the flash button instead of trying to manually flash merged_domains.hex. 

  • Hello,

    Thank you for your assistance. I tried using sysbuild in v2.7.0, but strangely, I only got merged.hex but not merged_CPUNET.hex.

    I burned this merged.hex into the nrf5340audio DK, and the program does not seem to be running.

    I burned this merged hex file together with merged_CPUNET.hex of audio sample into nrf5340audio DK, and still encountered the scan failed problem.

    In addition, I did another test, adding the central_past code to the nrf5340 audio sample code and found that it would not have the scan fail problem.

    This seems to be a scan fail caused by missing config. I will look into it further.

  • Hi Landy, 
    Seems that the central_past doesn't support sysbuild by default. 
    Please copy the following files from the nrf5340_audio project to the central_past project: 
    Kconfig.sysbuild

    sysbuild\ipc_radio folder. 

    After that you should be able to see the netcore image being built. 

    I attached my project for your reference. A quick test here showed that the audio DK can do scanning. 

    central_past.zip



Reply Children
Related