BLE - advertising and stack overflow

Hi,

Sometimes, when I'm starting BLE advertising, I have an error of stack overflow of the BLE task.

Is that make sense that advertising may increase task usage?

Thanks!

Parents
  • Hi,

    Anything running on the device will use stack memory in some way, yes. It is possible that starting advertising can lead to a stack overflow error if there is too little space left on the stack. How memory is organized into one or more stacks can be different between different projects and between different SDKs.

    What SDK are you using, and what does the error look like?

    Regards,
    Terje

  • Hi,

    I'm using SDK 17.2.

    Error: OS_ERR_SYS_STACK.

    Thanks!

  • Hi,

    We do not have any SDK releases with version number 17.2. The closest numbers are nRF5 SDK 17.0.2, nRF5 SDK 17.1.0, and nRF Connect SDK 1.7.1.

    There are no references to OS_ERR_SYS_STACK in any of our SDKs. A web search indicates the error code might be used in embOS from Segger. In that case it has nothing to do with our SDKs. It may also be used in other SDKs or OSes from other organisations.

    If you are using functionality from e.g. our SoftDevice together with a third-party SDK or OS, then we might be able to give some pointers to what might be wrong in our end, but for any settings or configurations from that third-party product you need to contact the third-party for support. Most likely what you need is some setting to increase the stack size on that third-party system.

    Regards,
    Terje

Reply
  • Hi,

    We do not have any SDK releases with version number 17.2. The closest numbers are nRF5 SDK 17.0.2, nRF5 SDK 17.1.0, and nRF Connect SDK 1.7.1.

    There are no references to OS_ERR_SYS_STACK in any of our SDKs. A web search indicates the error code might be used in embOS from Segger. In that case it has nothing to do with our SDKs. It may also be used in other SDKs or OSes from other organisations.

    If you are using functionality from e.g. our SoftDevice together with a third-party SDK or OS, then we might be able to give some pointers to what might be wrong in our end, but for any settings or configurations from that third-party product you need to contact the third-party for support. Most likely what you need is some setting to increase the stack size on that third-party system.

    Regards,
    Terje

Children
Related