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

Periodic Adv on nRF52833

Hello, 

I'm testing periodic advertising sample (sample/bluetooth/periodic_adv,with no changes to the code) on nRF Connect SDK 1.7.0, on BBC MICORBIT V2 that has a nRF52833 chip. 

The code returns an error at: "err = bt_le_per_adv_set_param(adv, BT_LE_PER_ADV_DEFAULT);", and it indicates that "

BT_FEAT_LE_EXT_PER_ADV(bt_dev.le.features)"

is not supported. Could you advice what is the root cause? Is it on the chip or some code configuration? 

Thanks a lot, 

Parents Reply Children
  • Hey Libo, sorry about the delay!

    Could you advice what is the root cause? Is it on the chip or some code configuration? 
    liulibo said:
    I think this is the same error I got when I pick nrf9160_nrf52840 and test on my nrf9160dk board

    That is weird, the periodic_adv example should work on the BBC Microbit, as well as on the nrf9160_nrf52840. It does for me.

    liulibo said:
    I know that the nrf52840 is not supported for this example though. 

    What is giving you that impression?

    I assume you have built and flashed other samples to these boards successfully? Could you try checking the "Clean Build Directory" checkbox before opening the project?

    Best regards,

    Elfving

  • Thank Elfving, maybe I should have posted some screenshoting that could help you debug the issue.

    To keep steps simple, let focus on the nRF9160DK (PCA10090 V1.0.0, 2021.11) board for this issue, I just created the workspace using the Segger Embedded Studio which comes with nRF Connect SDK 1.7.0 for macOS ( I'm using macOS Big Sur v11.6, I remember I got same result from my Ubuntu as well). 

    0. Launch the Segger Embedded Studio from nRF Connect v3.7.1 Toolchain Manager, choosing nRF Connect SDK V1.7.0 Open IDE. 

    1. Import project with the following configuration, I did a clean build, all good. 

    2. Without any code change, build the project and run on the nRF9160dk, on the nRF52840 MCU, by clicking Debug-> Go. I can see from the terminal shown as below. You can see the second line print "Fail to set periodic advertising ..." 

    3. I reset the session and set a breakpoint to capture "

    err = bt_le_per_adv_set_param(adv, BT_LE_PER_ADV_DEFAULT);"

    shown as below: 

    Hope this can help you replicate the issue. Let me know what I missed in bringup the function. 

    Thanks a lot. 

    Libo 

Related