This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

direction_finding_connectionless_rx crashes if CONFIG_ASSERT=y

If I enable CONFIG_ASSERT=y this example will crash (or code using the DF APIs)

To reproduce:

- nRF Connect 1.6.1

- In direction_finding_connectionless_rx add CONFIG_ASSERT=y to the prj.conf

- Build direction_finding_connectionless_rx and direction_finding_connectionless_tx

- Flash and run, then you will see the log below on the device running direction_finding_connectionless_rx

Log from the example:

Enable receiving of CTE...
success. CTE receive enabled.
Scan disable...Success.
Waiting for periodic sync lost...
PER_ADV_SYNC[0]: [DEVICE]: 30:A0:F1:E2:87:5D (random), tx_power 127, RSSI -58, CTE AOA, data length 0, data:
ASSERTION FAIL [0] @ WEST_TOPDIR/zephyr/subsys/net/buf.c:800

Parents
  • Hi again

    I don't see an assertion fail in the log you posted in your last reply, are you sure this is the complete log? Can you also confirm that you're setting CONFIG_ASSERT=y in the prj.conf file located in ...\NCS v1.x.x\nrf\samples\bluetooth\direction_finding_connectionless_rx\prj.conf?

    Best regards,

    Simon

Reply
  • Hi again

    I don't see an assertion fail in the log you posted in your last reply, are you sure this is the complete log? Can you also confirm that you're setting CONFIG_ASSERT=y in the prj.conf file located in ...\NCS v1.x.x\nrf\samples\bluetooth\direction_finding_connectionless_rx\prj.conf?

    Best regards,

    Simon

Children
  • I use the sample in \zephyr\samples\bluetooth\direction_finding_connectionless_rx\prj.conf but I tried the one on nrf folder also I think. The last log the output is a bit currupted I think . The ** Booting Zephyr ...." text overwrote the half ASSERT message see below bold text (ASSERTION FAIL [0])

    *** Booting Zephyr OS build v2.6.0-rc1-ncs1 ***len] @ WEST_TOPDIR/zephyr/subsys/net/buf.c:800
    Starting Connectionless Locator Demo

    You can see exactly the git diff in one of my previous comments see here again:

    PATH: DF/v1.6.1/zephyr/samples/bluetooth/direction_finding_connectionless_rx ((v2.6.0-rc1-ncs1))
    $ git diff
    diff --git a/samples/bluetooth/direction_finding_connectionless_rx/prj.conf b/samples/bluetooth/direction_finding_connectionless_rx/prj.conf
    index 6de448fa5a..2761c58a9f 100644
    --- a/samples/bluetooth/direction_finding_connectionless_rx/prj.conf
    +++ b/samples/bluetooth/direction_finding_connectionless_rx/prj.conf
    @@ -10,3 +10,4 @@ CONFIG_BT_OBSERVER=y
    # Enable Direction Finding Feature including AoA and AoD
    CONFIG_BT_DF=y
    CONFIG_BT_DF_CONNECTIONLESS_CTE_RX=y
    +CONFIG_ASSERT=y
    \ No newline at end of file

    I'll try the sample on nrf folder also again to make sure same issue there. I'll also reproduce everything once again with a completely clean install.

  • So I picked a new computer, installed nrfconnect, toolchain manager etc. and ncs version 1.6.1. My only modification is adding CONFIG_ASSERT=y in this folder: NrfConnect\v1.6.1\nrf\samples\bluetooth\direction_finding_connectionless_rx

    Compiling with:

    Transmitter:

    west build -p -b nrf52833dk_nrf52833 -- -DOVERLAY_CONFIG=overlay-aoa.conf -DTC_OVERLAY_FILE=boards/nrf52833dk_nrf52833.overlay

    west flash

    Receiver:

    west build -p -b nrf52833dk_nrf52833 -- -DTC_OVERLAY_FILE=boards/nrf52833dk_nrf52833.overlay

    west flash

    I have uploaded the log from receiver. You can see it crashing over and over again with error: 

    ASSERTION FAIL [net_buf_simple_tailroom(buf) >= len] @ WEST_TOPDIR/zephyr/subsys/net/buf.c:800

    I'm using two nRF52833-DK without any antenna connected (just PCB antenna)

    putty.log

Related