This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Connectivity firmware with sd_api_v6 for PCA10040 does not work

Using https://github.com/NordicSemiconductor/pc-ble-driver (abce7974fe983c23930d362b1769e51c8fa13cbf).

Just followed the instruction and compiled hex/sd_api_v6/connectivity_<ver>_1m_with_s132_6.1.0.hex

Cannot run any example. Error log:

$ ./heart_rate_monitor_v6 /dev/ttyACM0 
Serial port used: /dev/ttyACM0
Baud rate used: 1000000
Info: Successfully opened /dev/ttyACM0. Baud rate: 1000000. Flow control: none. Parity: none.
Status: 6, message: Target Reset performed
Status: 7, message: Connection active
Status: 4, message: Error sending packet to target. Code: 0x802a
Failed to set advertisement data. Error code: 0x8005

BR/Chencheng

Parents
  • Hi,

    Are you using this connectivity firmware? connectivity_4.0.0_1m_with_s132_6.1.0.hex?

    Can you find out where you get this error code? which function is returning this?

  • Hi,

    1) Have you disabled the modem manager: https://github.com/NordicSemiconductor/pc-ble-driver/blob/master/README.md#validating-on-ubuntu-linux

    2) Do you use a Ubuntu distribution?

    Could you run the system tests on your machine?

    They can be compiled by providing -DTEST_ALL=1 to the cmake invocation provided here: https://github.com/NordicSemiconductor/pc-ble-driver/blob/master/README.md#compiling-pc-ble-driver-on-ubuntu-linux-or-macos

    After compilation there will be a test application (build/test/test_main_v6) that may assist us in figuring out what the issue is. 
    The application has a help feature (–help) that describes parameters to provide. If the issue persists, increase the log level (--log-level trace) and provide us with the logs.

  • Thanks for your reply.

    I am running Ubuntu 18.04.

    I have followed your suggestions and here is the test log based on the latest commit

    a365694d68c4c43e1d4f39ccd4e67c687332d4dd

    $ ./test_main_v6 --log-level trace
    
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    test_main_v6 is a Catch v2.5.0 host application.
    Run with -? for options
    
    -------------------------------------------------------------------------------
    advertising_sdv6
    -------------------------------------------------------------------------------
    ../test/softdevice_api/testcase_advertising.cpp:56
    ...............................................................................
    
    ../test/softdevice_api/testcase_advertising.cpp:63: FAILED:
      REQUIRE( env.serialPorts.size() >= 2 )
    with expansion:
      0 >= 2
    with message:
      No serial ports setup.
      retransmission-interval:250
      response-timeout:1500
      ble-mtu:150
      hardware-info:No hardware info provided.
      log-level:TRACE
      iterations(if relevant):10
    
    -------------------------------------------------------------------------------
    driver_open_close_sdv6
    -------------------------------------------------------------------------------
    ../test/softdevice_api/testcase_driver_open_close.cpp:54
    ...............................................................................
    
    ../test/softdevice_api/testcase_driver_open_close.cpp:64: FAILED:
      REQUIRE( !env.serialPorts.empty() )
    with expansion:
      false
    with message:
      No serial ports setup.
      retransmission-interval:250
      response-timeout:1500
      ble-mtu:150
      hardware-info:No hardware info provided.
      log-level:TRACE
      iterations(if relevant):10
    
    -------------------------------------------------------------------------------
    issue_gh_112_sdv6
    -------------------------------------------------------------------------------
    ../test/softdevice_api/testcase_issue_gh_112.cpp:59
    ...............................................................................
    
    ../test/softdevice_api/testcase_issue_gh_112.cpp:63: FAILED:
      REQUIRE( env.serialPorts.size() >= 2 )
    with expansion:
      0 >= 2
    with message:
      No serial ports setup.
      retransmission-interval:250
      response-timeout:1500
      ble-mtu:150
      hardware-info:No hardware info provided.
      log-level:TRACE
      iterations(if relevant):10
    
    -------------------------------------------------------------------------------
    issue_stuck_in_scan_mode_sdv6
    -------------------------------------------------------------------------------
    ../test/softdevice_api/testcase_issue_stuck_in_scan_mode.cpp:54
    ...............................................................................
    
    ../test/softdevice_api/testcase_issue_stuck_in_scan_mode.cpp:66: FAILED:
      REQUIRE( env.serialPorts.size() >= 2 )
    with expansion:
      0 >= 2
    with message:
      No serial ports setup.
      retransmission-interval:250
      response-timeout:1500
      ble-mtu:150
      hardware-info:No hardware info provided.
      log-level:TRACE
      iterations(if relevant):10
    
    -------------------------------------------------------------------------------
    phy_update_sdv6
    -------------------------------------------------------------------------------
    ../test/softdevice_api/testcase_phy_update.cpp:59
    ...............................................................................
    
    ../test/softdevice_api/testcase_phy_update.cpp:71: FAILED:
      REQUIRE( env.serialPorts.size() >= 2 )
    with expansion:
      0 >= 2
    with message:
      No serial ports setup.
      retransmission-interval:250
      response-timeout:1500
      ble-mtu:150
      hardware-info:No hardware info provided.
      log-level:TRACE
      iterations(if relevant):10
    
    -------------------------------------------------------------------------------
    rssi_sdv6
    -------------------------------------------------------------------------------
    ../test/softdevice_api/testcase_rssi.cpp:55
    ...............................................................................
    
    ../test/softdevice_api/testcase_rssi.cpp:69: FAILED:
      REQUIRE( env.serialPorts.size() >= 2 )
    with expansion:
      0 >= 2
    with message:
      No serial ports setup.
      retransmission-interval:250
      response-timeout:1500
      ble-mtu:150
      hardware-info:No hardware info provided.
      log-level:TRACE
      iterations(if relevant):10
    
    -------------------------------------------------------------------------------
    security_sdv6
    -------------------------------------------------------------------------------
    ../test/softdevice_api/testcase_security.cpp:55
    ...............................................................................
    
    ../test/softdevice_api/testcase_security.cpp:59: FAILED:
      REQUIRE( env.serialPorts.size() >= 2 )
    with expansion:
      0 >= 2
    with message:
      No serial ports setup.
      retransmission-interval:250
      response-timeout:1500
      ble-mtu:150
      hardware-info:No hardware info provided.
      log-level:TRACE
      iterations(if relevant):10
    
    ===============================================================================
    test cases:   8 |   1 passed | 7 failed
    assertions: 279 | 272 passed | 7 failed
    

  • Hi, you need to specify the kits to use (The tests require two). Specify the COM ports with - - port-a and - - port-b

  • Hi,

    I ran with:

    ./test_main_v6 --log-level trace --port-a /dev/ttyACM0 --port-b /dev/ttyACM1

    Here is the log:

    test_5.0.1_pca10040_032009.log

Reply Children
Related