Failed to enable BLE stack. Error code: 32773

I try to run https://github.com/NordicSemiconductor/pc-ble-driver/tree/master/examples/nordic_uart_client But the following error occurred.

D:\pc-ble-driver\build\examples>nordic_uart_client_sd_api_v6.exe
Serial port used: COM5
Baud rate used: 1000000
Info: Successfully opened COM5. Baud rate: 1000000. Flow control: none. Parity: none.
Status: 6, message: Target Reset performed
Status: 7, message: Connection active
Warning: Failed to receive response for command
Status: 4, message: Error sending packet to target. Code: 0x8016
sd_ble_cfg_set() failed when attempting to set BLE_GAP_CFG_ROLE_COUNT. Error code: 0x8003
Error: serial port write operation on port COM5 failed. Error: 裝置無法辨識命令。[22]
Status: 4, message: Error sending packet to target. Code: 0x802a
Failed to enable BLE stack. Error code: 32773

Parents
  • Hi,

    Can you tell a bit more about your setup?

    What OS and version, what device do you use for connectivity device, how did you install pc-ble-driver, how did you program the connectivity device (and with what connectivity firmware), what version of pc-ble-driver-py, and what SoftDevice API version?

    Regards,
    Terje

  • OS: Windows 10

    connectivity device: nRF52840 dongle (It works well with nRF connect)

    How can I check connectivity firmware and SoftDevice API version?

    I test https://github.com/NordicSemiconductor/pc-ble-driver/releases/download/v4.1.4/nrf-ble-driver-4.1.4-win_x86_64.zip. But it still can't enumerate serial port.

    D:\nrf-ble-driver-4.1.4-win_x86_64\bin>test_serial_port_enum_sd_api_v2.exe

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    test_serial_port_enum_sd_api_v2.exe is a Catch v2.11.3 host application.
    Run with -? for options

    -------------------------------------------------------------------------------
    SerialPortEnumeration
      Array not large enough for devices found
    -------------------------------------------------------------------------------
    ..\test\transport\test_serial_port_enum.cpp(58)
    ...............................................................................

    ..\test\transport\test_serial_port_enum.cpp(62): FAILED:
      REQUIRE( sd_rpc_serial_port_enum(devices.data(), &size) == ((0x0) + 12) )
    with expansion:
      0 == 12

    -------------------------------------------------------------------------------
    SerialPortEnumeration
      Array large enough for devices found
    -------------------------------------------------------------------------------
    ..\test\transport\test_serial_port_enum.cpp(65)
    ...............................................................................

    ..\test\transport\test_serial_port_enum.cpp(70): FAILED:
      REQUIRE( size > 0 )
    with expansion:
      0 > 0

    ===============================================================================
    test cases: 1 | 1 failed
    assertions: 3 | 1 passed | 2 failed

Reply
  • OS: Windows 10

    connectivity device: nRF52840 dongle (It works well with nRF connect)

    How can I check connectivity firmware and SoftDevice API version?

    I test https://github.com/NordicSemiconductor/pc-ble-driver/releases/download/v4.1.4/nrf-ble-driver-4.1.4-win_x86_64.zip. But it still can't enumerate serial port.

    D:\nrf-ble-driver-4.1.4-win_x86_64\bin>test_serial_port_enum_sd_api_v2.exe

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    test_serial_port_enum_sd_api_v2.exe is a Catch v2.11.3 host application.
    Run with -? for options

    -------------------------------------------------------------------------------
    SerialPortEnumeration
      Array not large enough for devices found
    -------------------------------------------------------------------------------
    ..\test\transport\test_serial_port_enum.cpp(58)
    ...............................................................................

    ..\test\transport\test_serial_port_enum.cpp(62): FAILED:
      REQUIRE( sd_rpc_serial_port_enum(devices.data(), &size) == ((0x0) + 12) )
    with expansion:
      0 == 12

    -------------------------------------------------------------------------------
    SerialPortEnumeration
      Array large enough for devices found
    -------------------------------------------------------------------------------
    ..\test\transport\test_serial_port_enum.cpp(65)
    ...............................................................................

    ..\test\transport\test_serial_port_enum.cpp(70): FAILED:
      REQUIRE( size > 0 )
    with expansion:
      0 > 0

    ===============================================================================
    test cases: 1 | 1 failed
    assertions: 3 | 1 passed | 2 failed

Children
No Data
Related