Undocumented: How to decide stack sizes

#1

The documentation give no guidance on how to pick suitable values for the stack sizes:

ie, wm_apmCustomStackSize - or its Task Table equivalent

also adl_InitIRQLowLevelStackSize and adl_InitIRQHighLevelStackSize

#2

Hi
May be its left for the user to decide according to his application.

Regards
Paruthiv

#3

But there needs to be some guidance on how how to make that decision!

At the moment, it’s purely a matter of guesswork, trial and error.

#4

See also: https://forum.sierrawireless.com/t/location-plugin-stack-task-size-definition/4978/2

There also needs to be guidance on the additional stack required by WIP…

#5

It appears that even the examples provided by SiWi get it wrong:

https://forum.sierrawireless.com/t/modem-crashes-in-wipssl-crypto-example/5002/2

#6

You are right awneil, all my current codes uses stack sizes determined by trial and error.

This lack of documentation it’s counterproductive practice by sierra, some actions are needed to solve poor quality of documentation.

#7

Hi everybody
A documentation tracker has been created for the same. I will update you guys soon regarding how forum users can follow the progress of the tracker.

Regards
Moderator

#8

Any update on this?

Note that the documentation needs to include guidance for the various plugins; eg, see:
https://forum.sierrawireless.com/t/module-reset-when-both-tcp-and-cgps/5082/2

#9

Hi Awneil
For the time being i ll only update you regarding the progress in the tracker.

Regards
Moderator

#10

any update on this?

#11

I echo this question. Any update on this? I think we have run out of stack, but have no way of checking that isn’t trial and error. I would like to know how I should go about finding some numbers related to my code.