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

Reply
  • 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

Children
Related