Update CTE params...failed (err -134) in 'direction_finding_connectionless_tx'

Hi

I'm working with the sample 'ncs1.7.1\nrf\samples\bluetooth\direction_finding_connectionless_tx' on nRF5340,  I followed this page and built with AoA mode, then added content of overlay-aoa.conf file to child_image/hci_rpmsg.conf file, ran this code:

G:\ncs_v1.7.1\ncs1.7.1\nrf\samples\bluetooth\direction_finding_connectionless_tx>west build -b nrf5340dk_nrf5340_cpuapp -- -DCMAKE_BUILD_TYPE=overlay-aoa.conf

Build and flash seems correct,  but output in putty is wrong:

*** Booting Zephyr OS build v2.6.99-ncs1-1  ***
Starting Connectionless Beacon Demo
Bluetooth initialization...success
Advertising set create...success
Update CTE params...failed (err -134)

 I tried as Amanda said, erased the kit before flash, but it doesn't help. How to solve this problem? Thanks in advance.

Best regards,

Majoris

Parents
  • Hello Majoris!

    As the nRF5340 is a multicore SoC, could you try this:

    nrfjprog --recover --coprocessor CP_NETWORK
    nrfjprog --recover

    Best regards,
    Elfving

  • Hi Elfving!

    Thanks for your reply. But sadly it failed, the error occurred again.

    I tried:

    G:\ncs_v1.7.1\ncs1.7.1\nrf\samples\bluetooth\direction_finding_connectionless_tx>nrfjprog --recover --coprocessor CP_NETWORK
    Recovering device. This operation might take 30s.
    Writing image to disable ap protect.
    Erasing user code and UICR flash areas.
    
    G:\ncs_v1.7.1\ncs1.7.1\nrf\samples\bluetooth\direction_finding_connectionless_tx>west build -b nrf5340dk_nrf5340_cpuapp -- -DCMAKE_BUILD_TYPE=overlay-aoa.conf
    -- west build: generating a build system
    Including boilerplate (Zephyr base (cached)): G:/ncs_v1.7.1/ncs1.7.1/zephyr/cmake/app/boilerplate.cmake
    -- Application: G:/ncs_v1.7.1/ncs1.7.1/nrf/samples/bluetooth/direction_finding_connectionless_tx
    -- Using NCS Toolchain 1.7.1 for building. (G:/ncs_v1.7.1/ncs1.7.1/toolchain/cmake)
    -- Zephyr version: 2.6.99 (G:/ncs_v1.7.1/ncs1.7.1/zephyr), build: v2.6.99-ncs1-1
    -- Found west (found suitable version "0.11.1", minimum required is "0.7.1")
    -- Board: nrf5340dk_nrf5340_cpuapp
    -- Cache files will be written to: G:/ncs_v1.7.1/ncs1.7.1/zephyr/.cache
    -- Found dtc: G:/ncs_v1.7.1/ncs1.7.1/toolchain/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6")
    -- Found toolchain: gnuarmemb (G:/ncs_v1.7.1/ncs1.7.1/toolchain/opt)
    -- Found BOARD.dts: G:/ncs_v1.7.1/ncs1.7.1/zephyr/boards/arm/nrf5340dk_nrf5340/nrf5340dk_nrf5340_cpuapp.dts
    -- Generated zephyr.dts: G:/ncs_v1.7.1/ncs1.7.1/nrf/samples/bluetooth/direction_finding_connectionless_tx/build/zephyr/zephyr.dts
    -- Generated devicetree_unfixed.h: G:/ncs_v1.7.1/ncs1.7.1/nrf/samples/bluetooth/direction_finding_connectionless_tx/build/zephyr/include/generated/devicetree_unfixed.h
    -- Generated device_extern.h: G:/ncs_v1.7.1/ncs1.7.1/nrf/samples/bluetooth/direction_finding_connectionless_tx/build/zephyr/include/generated/device_extern.h
    -- Including generated dts.cmake file: G:/ncs_v1.7.1/ncs1.7.1/nrf/samples/bluetooth/direction_finding_connectionless_tx/build/zephyr/dts.cmake
    Parsing G:/ncs_v1.7.1/ncs1.7.1/zephyr/Kconfig
    Loaded configuration 'G:/ncs_v1.7.1/ncs1.7.1/nrf/samples/bluetooth/direction_finding_connectionless_tx/build/zephyr/.config'
    No change to configuration in 'G:/ncs_v1.7.1/ncs1.7.1/nrf/samples/bluetooth/direction_finding_connectionless_tx/build/zephyr/.config'
    No change to Kconfig header in 'G:/ncs_v1.7.1/ncs1.7.1/nrf/samples/bluetooth/direction_finding_connectionless_tx/build/zephyr/include/generated/autoconf.h'
    Adding 'hci_rpmsg' firmware as child image since CONFIG_BT_RPMSG_NRF53 is set to 'y'
    
    === child image hci_rpmsg - CPUNET begin ===
    Including boilerplate (Zephyr base (cached)): G:/ncs_v1.7.1/ncs1.7.1/zephyr/cmake/app/boilerplate.cmake
    -- Application: G:/ncs_v1.7.1/ncs1.7.1/zephyr/samples/bluetooth/hci_rpmsg
    -- Using NCS Toolchain 1.7.1 for building. (G:/ncs_v1.7.1/ncs1.7.1/toolchain/cmake)
    -- Zephyr version: 2.6.99 (G:/ncs_v1.7.1/ncs1.7.1/zephyr), build: v2.6.99-ncs1-1
    -- Found west (found suitable version "0.11.1", minimum required is "0.7.1")
    -- Board: nrf5340dk_nrf5340_cpunet
    -- Cache files will be written to: G:/ncs_v1.7.1/ncs1.7.1/zephyr/.cache
    -- Found dtc: G:/ncs_v1.7.1/ncs1.7.1/toolchain/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6")
    -- Found toolchain: gnuarmemb (G:/ncs_v1.7.1/ncs1.7.1/toolchain/opt)
    -- Found BOARD.dts: G:/ncs_v1.7.1/ncs1.7.1/zephyr/boards/arm/nrf5340dk_nrf5340/nrf5340dk_nrf5340_cpunet.dts
    -- Found devicetree overlay: G:/ncs_v1.7.1/ncs1.7.1/nrf/samples/bluetooth/direction_finding_connectionless_tx/child_image/hci_rpmsg/boards/nrf5340dk_nrf5340_cpunet.overlay
    -- Generated zephyr.dts: G:/ncs_v1.7.1/ncs1.7.1/nrf/samples/bluetooth/direction_finding_connectionless_tx/build/hci_rpmsg/zephyr/zephyr.dts
    -- Generated devicetree_unfixed.h: G:/ncs_v1.7.1/ncs1.7.1/nrf/samples/bluetooth/direction_finding_connectionless_tx/build/hci_rpmsg/zephyr/include/generated/devicetree_unfixed.h
    -- Generated device_extern.h: G:/ncs_v1.7.1/ncs1.7.1/nrf/samples/bluetooth/direction_finding_connectionless_tx/build/hci_rpmsg/zephyr/include/generated/device_extern.h
    -- Including generated dts.cmake file: G:/ncs_v1.7.1/ncs1.7.1/nrf/samples/bluetooth/direction_finding_connectionless_tx/build/hci_rpmsg/zephyr/dts.cmake
    Parsing G:/ncs_v1.7.1/ncs1.7.1/zephyr/Kconfig
    Loaded configuration 'G:/ncs_v1.7.1/ncs1.7.1/nrf/samples/bluetooth/direction_finding_connectionless_tx/build/hci_rpmsg/zephyr/.config'
    No change to configuration in 'G:/ncs_v1.7.1/ncs1.7.1/nrf/samples/bluetooth/direction_finding_connectionless_tx/build/hci_rpmsg/zephyr/.config'
    No change to Kconfig header in 'G:/ncs_v1.7.1/ncs1.7.1/nrf/samples/bluetooth/direction_finding_connectionless_tx/build/hci_rpmsg/zephyr/include/generated/autoconf.h'
    CMake Warning at ../../../subsys/bluetooth/controller/CMakeLists.txt:28 (message):
    
    
      CONFIG_BT_CTLR_ADV_EXT=y, Advertising Extensions Feature in Zephyr
      Bluetooth Controller is EXPERIMENTAL.
    
    
    -- libmetal version: 1.0.0 (G:/ncs_v1.7.1/ncs1.7.1/zephyr/samples/bluetooth/hci_rpmsg)
    -- Build type:  overlay-aoa.conf
    -- Host:    Windows/AMD64
    -- Target:  Generic/arm
    -- Machine: cortexm
    -- open-amp version: 1.0.0 (G:/ncs_v1.7.1/ncs1.7.1/modules/lib/open-amp/open-amp)
    -- Host:    Windows/AMD64
    -- Target:  Generic/arm
    -- Machine: cortexm
    -- C_FLAGS :  -Wall -Wextra
    -- Configuring done
    -- Generating done
    -- Build files have been written to: G:/ncs_v1.7.1/ncs1.7.1/nrf/samples/bluetooth/direction_finding_connectionless_tx/build/hci_rpmsg
    === child image hci_rpmsg - CPUNET end ===
    
    -- libmetal version: 1.0.0 (G:/ncs_v1.7.1/ncs1.7.1/nrf/samples/bluetooth/direction_finding_connectionless_tx)
    -- Build type:  overlay-aoa.conf
    -- Host:    Windows/AMD64
    -- Target:  Generic/arm
    -- Machine: cortexm
    -- open-amp version: 1.0.0 (G:/ncs_v1.7.1/ncs1.7.1/modules/lib/open-amp/open-amp)
    -- Host:    Windows/AMD64
    -- Target:  Generic/arm
    -- Machine: cortexm
    -- C_FLAGS :  -Wall -Wextra
    -- Configuring done
    -- Generating done
    -- Build files have been written to: G:/ncs_v1.7.1/ncs1.7.1/nrf/samples/bluetooth/direction_finding_connectionless_tx/build
    -- west build: building application
    [0/166] Performing build step for 'hci_rpmsg_subimage'
    [189/197] Linking C executable zephyr\zephyr_prebuilt.elf
    
    [195/197] Linking C executable zephyr\zephyr.elf
    Memory region         Used Size  Region Size  %age Used
               FLASH:      138100 B       256 KB     52.68%
                SRAM:       58044 B        64 KB     88.57%
               SRAM1:          0 GB        64 KB      0.00%
            IDT_LIST:          0 GB         2 KB      0.00%
    [197/197] Generating zephyr/merged_CPUNET.hex
    [155/166] Linking C executable zephyr\zephyr_prebuilt.elf
    
    [161/166] Linking C executable zephyr\zephyr.elf
    Memory region         Used Size  Region Size  %age Used
               FLASH:       42552 B         1 MB      4.06%
                SRAM:       20026 B       448 KB      4.37%
            IDT_LIST:          0 GB         2 KB      0.00%
    [164/164] Generating zephyr/merged_domains.hex
    
    G:\ncs_v1.7.1\ncs1.7.1\nrf\samples\bluetooth\direction_finding_connectionless_tx>west flash --recover
    -- west flash: rebuilding
    [0/4] Performing build step for 'hci_rpmsg_subimage'
    ninja: no work to do.
    -- west flash: using runner nrfjprog
    Using board 960171144
    -- runners.nrfjprog: Recovering and erasing flash memory for both the network and application cores.
    Recovering device. This operation might take 30s.
    Writing image to disable ap protect.
    Erasing user code and UICR flash areas.
    Recovering device. This operation might take 30s.
    Writing image to disable ap protect.
    Erasing user code and UICR flash areas.
    -- runners.nrfjprog: Flashing file: G:\ncs_v1.7.1\ncs1.7.1\nrf\samples\bluetooth\direction_finding_connectionless_tx\build\zephyr\merged_domains.hex
    -- runners.nrfjprog: G:\ncs_v1.7.1\ncs1.7.1\nrf\samples\bluetooth\direction_finding_connectionless_tx\build\zephyr\merged_domains.hex targets both nRF53 coprocessors; splitting it into: G:\ncs_v1.7.1\ncs1.7.1\nrf\samples\bluetooth\direction_finding_connectionless_tx\build\zephyr\GENERATED_CP_NETWORK_merged_domains.hex and G:\ncs_v1.7.1\ncs1.7.1\nrf\samples\bluetooth\direction_finding_connectionless_tx\build\zephyr\GENERATED_CP_APPLICATION_merged_domains.hex
    Parsing image file.
    Verified OK.
    Parsing image file.
    Verified OK.
    Applying pin reset.
    -- runners.nrfjprog: Board with serial number 960171144 flashed successfully.
    Best regards,

    Majoris

Reply
  • Hi Elfving!

    Thanks for your reply. But sadly it failed, the error occurred again.

    I tried:

    G:\ncs_v1.7.1\ncs1.7.1\nrf\samples\bluetooth\direction_finding_connectionless_tx>nrfjprog --recover --coprocessor CP_NETWORK
    Recovering device. This operation might take 30s.
    Writing image to disable ap protect.
    Erasing user code and UICR flash areas.
    
    G:\ncs_v1.7.1\ncs1.7.1\nrf\samples\bluetooth\direction_finding_connectionless_tx>west build -b nrf5340dk_nrf5340_cpuapp -- -DCMAKE_BUILD_TYPE=overlay-aoa.conf
    -- west build: generating a build system
    Including boilerplate (Zephyr base (cached)): G:/ncs_v1.7.1/ncs1.7.1/zephyr/cmake/app/boilerplate.cmake
    -- Application: G:/ncs_v1.7.1/ncs1.7.1/nrf/samples/bluetooth/direction_finding_connectionless_tx
    -- Using NCS Toolchain 1.7.1 for building. (G:/ncs_v1.7.1/ncs1.7.1/toolchain/cmake)
    -- Zephyr version: 2.6.99 (G:/ncs_v1.7.1/ncs1.7.1/zephyr), build: v2.6.99-ncs1-1
    -- Found west (found suitable version "0.11.1", minimum required is "0.7.1")
    -- Board: nrf5340dk_nrf5340_cpuapp
    -- Cache files will be written to: G:/ncs_v1.7.1/ncs1.7.1/zephyr/.cache
    -- Found dtc: G:/ncs_v1.7.1/ncs1.7.1/toolchain/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6")
    -- Found toolchain: gnuarmemb (G:/ncs_v1.7.1/ncs1.7.1/toolchain/opt)
    -- Found BOARD.dts: G:/ncs_v1.7.1/ncs1.7.1/zephyr/boards/arm/nrf5340dk_nrf5340/nrf5340dk_nrf5340_cpuapp.dts
    -- Generated zephyr.dts: G:/ncs_v1.7.1/ncs1.7.1/nrf/samples/bluetooth/direction_finding_connectionless_tx/build/zephyr/zephyr.dts
    -- Generated devicetree_unfixed.h: G:/ncs_v1.7.1/ncs1.7.1/nrf/samples/bluetooth/direction_finding_connectionless_tx/build/zephyr/include/generated/devicetree_unfixed.h
    -- Generated device_extern.h: G:/ncs_v1.7.1/ncs1.7.1/nrf/samples/bluetooth/direction_finding_connectionless_tx/build/zephyr/include/generated/device_extern.h
    -- Including generated dts.cmake file: G:/ncs_v1.7.1/ncs1.7.1/nrf/samples/bluetooth/direction_finding_connectionless_tx/build/zephyr/dts.cmake
    Parsing G:/ncs_v1.7.1/ncs1.7.1/zephyr/Kconfig
    Loaded configuration 'G:/ncs_v1.7.1/ncs1.7.1/nrf/samples/bluetooth/direction_finding_connectionless_tx/build/zephyr/.config'
    No change to configuration in 'G:/ncs_v1.7.1/ncs1.7.1/nrf/samples/bluetooth/direction_finding_connectionless_tx/build/zephyr/.config'
    No change to Kconfig header in 'G:/ncs_v1.7.1/ncs1.7.1/nrf/samples/bluetooth/direction_finding_connectionless_tx/build/zephyr/include/generated/autoconf.h'
    Adding 'hci_rpmsg' firmware as child image since CONFIG_BT_RPMSG_NRF53 is set to 'y'
    
    === child image hci_rpmsg - CPUNET begin ===
    Including boilerplate (Zephyr base (cached)): G:/ncs_v1.7.1/ncs1.7.1/zephyr/cmake/app/boilerplate.cmake
    -- Application: G:/ncs_v1.7.1/ncs1.7.1/zephyr/samples/bluetooth/hci_rpmsg
    -- Using NCS Toolchain 1.7.1 for building. (G:/ncs_v1.7.1/ncs1.7.1/toolchain/cmake)
    -- Zephyr version: 2.6.99 (G:/ncs_v1.7.1/ncs1.7.1/zephyr), build: v2.6.99-ncs1-1
    -- Found west (found suitable version "0.11.1", minimum required is "0.7.1")
    -- Board: nrf5340dk_nrf5340_cpunet
    -- Cache files will be written to: G:/ncs_v1.7.1/ncs1.7.1/zephyr/.cache
    -- Found dtc: G:/ncs_v1.7.1/ncs1.7.1/toolchain/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6")
    -- Found toolchain: gnuarmemb (G:/ncs_v1.7.1/ncs1.7.1/toolchain/opt)
    -- Found BOARD.dts: G:/ncs_v1.7.1/ncs1.7.1/zephyr/boards/arm/nrf5340dk_nrf5340/nrf5340dk_nrf5340_cpunet.dts
    -- Found devicetree overlay: G:/ncs_v1.7.1/ncs1.7.1/nrf/samples/bluetooth/direction_finding_connectionless_tx/child_image/hci_rpmsg/boards/nrf5340dk_nrf5340_cpunet.overlay
    -- Generated zephyr.dts: G:/ncs_v1.7.1/ncs1.7.1/nrf/samples/bluetooth/direction_finding_connectionless_tx/build/hci_rpmsg/zephyr/zephyr.dts
    -- Generated devicetree_unfixed.h: G:/ncs_v1.7.1/ncs1.7.1/nrf/samples/bluetooth/direction_finding_connectionless_tx/build/hci_rpmsg/zephyr/include/generated/devicetree_unfixed.h
    -- Generated device_extern.h: G:/ncs_v1.7.1/ncs1.7.1/nrf/samples/bluetooth/direction_finding_connectionless_tx/build/hci_rpmsg/zephyr/include/generated/device_extern.h
    -- Including generated dts.cmake file: G:/ncs_v1.7.1/ncs1.7.1/nrf/samples/bluetooth/direction_finding_connectionless_tx/build/hci_rpmsg/zephyr/dts.cmake
    Parsing G:/ncs_v1.7.1/ncs1.7.1/zephyr/Kconfig
    Loaded configuration 'G:/ncs_v1.7.1/ncs1.7.1/nrf/samples/bluetooth/direction_finding_connectionless_tx/build/hci_rpmsg/zephyr/.config'
    No change to configuration in 'G:/ncs_v1.7.1/ncs1.7.1/nrf/samples/bluetooth/direction_finding_connectionless_tx/build/hci_rpmsg/zephyr/.config'
    No change to Kconfig header in 'G:/ncs_v1.7.1/ncs1.7.1/nrf/samples/bluetooth/direction_finding_connectionless_tx/build/hci_rpmsg/zephyr/include/generated/autoconf.h'
    CMake Warning at ../../../subsys/bluetooth/controller/CMakeLists.txt:28 (message):
    
    
      CONFIG_BT_CTLR_ADV_EXT=y, Advertising Extensions Feature in Zephyr
      Bluetooth Controller is EXPERIMENTAL.
    
    
    -- libmetal version: 1.0.0 (G:/ncs_v1.7.1/ncs1.7.1/zephyr/samples/bluetooth/hci_rpmsg)
    -- Build type:  overlay-aoa.conf
    -- Host:    Windows/AMD64
    -- Target:  Generic/arm
    -- Machine: cortexm
    -- open-amp version: 1.0.0 (G:/ncs_v1.7.1/ncs1.7.1/modules/lib/open-amp/open-amp)
    -- Host:    Windows/AMD64
    -- Target:  Generic/arm
    -- Machine: cortexm
    -- C_FLAGS :  -Wall -Wextra
    -- Configuring done
    -- Generating done
    -- Build files have been written to: G:/ncs_v1.7.1/ncs1.7.1/nrf/samples/bluetooth/direction_finding_connectionless_tx/build/hci_rpmsg
    === child image hci_rpmsg - CPUNET end ===
    
    -- libmetal version: 1.0.0 (G:/ncs_v1.7.1/ncs1.7.1/nrf/samples/bluetooth/direction_finding_connectionless_tx)
    -- Build type:  overlay-aoa.conf
    -- Host:    Windows/AMD64
    -- Target:  Generic/arm
    -- Machine: cortexm
    -- open-amp version: 1.0.0 (G:/ncs_v1.7.1/ncs1.7.1/modules/lib/open-amp/open-amp)
    -- Host:    Windows/AMD64
    -- Target:  Generic/arm
    -- Machine: cortexm
    -- C_FLAGS :  -Wall -Wextra
    -- Configuring done
    -- Generating done
    -- Build files have been written to: G:/ncs_v1.7.1/ncs1.7.1/nrf/samples/bluetooth/direction_finding_connectionless_tx/build
    -- west build: building application
    [0/166] Performing build step for 'hci_rpmsg_subimage'
    [189/197] Linking C executable zephyr\zephyr_prebuilt.elf
    
    [195/197] Linking C executable zephyr\zephyr.elf
    Memory region         Used Size  Region Size  %age Used
               FLASH:      138100 B       256 KB     52.68%
                SRAM:       58044 B        64 KB     88.57%
               SRAM1:          0 GB        64 KB      0.00%
            IDT_LIST:          0 GB         2 KB      0.00%
    [197/197] Generating zephyr/merged_CPUNET.hex
    [155/166] Linking C executable zephyr\zephyr_prebuilt.elf
    
    [161/166] Linking C executable zephyr\zephyr.elf
    Memory region         Used Size  Region Size  %age Used
               FLASH:       42552 B         1 MB      4.06%
                SRAM:       20026 B       448 KB      4.37%
            IDT_LIST:          0 GB         2 KB      0.00%
    [164/164] Generating zephyr/merged_domains.hex
    
    G:\ncs_v1.7.1\ncs1.7.1\nrf\samples\bluetooth\direction_finding_connectionless_tx>west flash --recover
    -- west flash: rebuilding
    [0/4] Performing build step for 'hci_rpmsg_subimage'
    ninja: no work to do.
    -- west flash: using runner nrfjprog
    Using board 960171144
    -- runners.nrfjprog: Recovering and erasing flash memory for both the network and application cores.
    Recovering device. This operation might take 30s.
    Writing image to disable ap protect.
    Erasing user code and UICR flash areas.
    Recovering device. This operation might take 30s.
    Writing image to disable ap protect.
    Erasing user code and UICR flash areas.
    -- runners.nrfjprog: Flashing file: G:\ncs_v1.7.1\ncs1.7.1\nrf\samples\bluetooth\direction_finding_connectionless_tx\build\zephyr\merged_domains.hex
    -- runners.nrfjprog: G:\ncs_v1.7.1\ncs1.7.1\nrf\samples\bluetooth\direction_finding_connectionless_tx\build\zephyr\merged_domains.hex targets both nRF53 coprocessors; splitting it into: G:\ncs_v1.7.1\ncs1.7.1\nrf\samples\bluetooth\direction_finding_connectionless_tx\build\zephyr\GENERATED_CP_NETWORK_merged_domains.hex and G:\ncs_v1.7.1\ncs1.7.1\nrf\samples\bluetooth\direction_finding_connectionless_tx\build\zephyr\GENERATED_CP_APPLICATION_merged_domains.hex
    Parsing image file.
    Verified OK.
    Parsing image file.
    Verified OK.
    Applying pin reset.
    -- runners.nrfjprog: Board with serial number 960171144 flashed successfully.
    Best regards,

    Majoris

Children
No Data
Related