AutoPTS setup on nrf5340

Hello,

We are trying to test our product for qualification purposes. I found documentation for configuring a Windows environment on the nrf52 series and trying to apply it to nrf5340.

The project sits in zephyr/tests/bluetooth/tester, and seems like it has an overlay and .conf files appropriate for the nrf5340, but the README lacks information on how to actually flash it.

there are some references to hci_ipc (ipc_radio in the newer SDK?) but the network core image does not get built like it does in the various sample projects that use Bluetooth. I am hoping you can give me some pointers on how to set everything up so we can run some of the tests via AutoPTS.

I have seen some relevant discussion in case 334059.

Thanks!

  • Hello,

    I assume you are using sysbuild in either SDK v2.7.0 or SDK v2.8.0? In that case, you can add the Kconfig.sysbuild file attached below to include ipc_radio in your build. If you also need to apply configuration changes to the ipc_radio image, you can create a folder named 'sysbuild' and add a your 'ipc_radio.conf' Kconfig fragment there. 

    tester/
    ├── CMakeLists.txt
    ├── Kconfig
    ├── Kconfig.sysbuild <-- Enable sysbuild config to include ipc_radio
    ├── prj.conf
    ├── src
    └── sysbuild
           └── ipc_radio.conf<-- Kconfig fragment for ipc_radio image if it's neccessary to override the default configuration.

    Best regards,

    Vidar

    https://docs.nordicsemi.com/bundle/ncs-2.9.0-rc1/page/nrf/app_dev/config_and_build/sysbuild/zephyr_samples_sysbuild.html 

  • Hey, thanks for the reply, and sorry for the late response. I managed to build it with the sysbuild config as you said. Next, I set up and environment using AutoPTS, with the PTS server running on a Windows machine, and a PTS client running on a Mac, I tried testing with the "zephyr-master" workspace and I got this fail on the first test:

    Number of test cases to run: 2764
    1/2764 AICS AICS/SR/SGGIT/SER/BV-01-C ERROR: Argument provided has a wrong value. Memory access not aligned, value
    ERROR: outside of range or similar.

    I tried just running a series of test for the BAP proflie and I get the same:

    Number of test cases to run: 20
    1/20 BAP BAP/CL/CGGIT/CHA/BV-03-C ERROR: Argument provided has a wrong value. Memory access not aligned, value
    ERROR: outside of range or similar.

    I guess something is wrong in my configuration. There are 2 files in the tester project that reference the nrf5340: 

    nrf5340_hci_ipc_cpunet.conf (copied to ipc_radio.conf)
    nrf5340_hci_ipc (added to prj.conf)

    Looking forward to your input,

  • Hi Ran,
    Is this the project you are working on?
    The error message seems to indicate that you have a mismatch between the memory maps of the device and SW. Are you running the PTS client on a nRF5340 or are you emulating the client on the mac?
    Best regards
    Asbjørn
  • Hi,

    Yes I am using that repository to run PTS client on my mac connected to the nrf5340 dev kit (initialized with -b nrf53 and -t /dev/tty.usbmodem....), and the PTS server on a Windows machine with a dual PTS dongle. As I understand, the PTS client connects to the Windows server and forwards the HCI tests to the nrf5340 over the serial port, and the Windows server also tests the actual radio. 

    As i mentioned earlier, the nrf5340 is flashed with zephyr/tests/bluetooth/tester.

    I am following this guide referenced in the repository you mentioned: docs.zephyrproject.org/.../autopts-linux.html

  • Hi Ran,
    We haven't tested this suite ourselves, so it's a bit limited what we know. I see that there are a few optional steps in the installation and selection points. 
    • Am I correct in understanding that all the steps in "AutoPTS on Linux"  are done and they all install as intended? 
    • Are you using a virtual Windows setup and are you able to connect the boards to that environment?
      • usb.autoConnect.device0 = "0x0a12:0x0001"
      • just replace 0x0a12 with Vendor number and 0x0001 with ProdID number you found earlier.
    • You managed to compile the FW in zephyr/tests/bluetooth/tester for nRF5340? Does the FW start correctly? Are you seeing printed output or see the program counter change?
    • Did you build the example for nrf5340dk/nrf5340/cpuapp or nrf5340dk/nrf5340/cpuapp/ns
     Best regards
    Asbjørn
Related