# HELP

**URL:** <https://forum.sierrawireless.com/t/help/4082>\
**Category:** Development tools\
**Created:** [January 9, 2010, 7:01am UTC](https://forum.sierrawireless.com/t/help/4082 "2010-01-09T07:01:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![xingzhe](https://avatars.discourse-cdn.com/v4/letter/x/f17d59/32.png) [@xingzhe](https://forum.sierrawireless.com/u/xingzhe)\
**Post date:** [January 9, 2010, 7:01am UTC](https://forum.sierrawireless.com/t/help/4082/1 "2010-01-09T07:01:17Z")

</div>

u32 wm\_apmCustomStack[60000];  
const u16 wm\_apmCustomStackSize = sizeof(wm\_apmCustomStack);

I input this number “60000”,how max is this number ???

but now ,my Q24PLUS001 is not run!!!

who can help me!!!

help!!!

---

<div class="post-metadata">

**Author:** ![davidc](https://avatars.discourse-cdn.com/v4/letter/d/a183cd/32.png) [@davidc](https://forum.sierrawireless.com/u/davidc)\
**Post date:** [January 9, 2010, 11:35am UTC](https://forum.sierrawireless.com/t/help/4082/2 "2010-01-09T11:35:30Z")

</div>

Hiya,

> [@xingzhe](#):
>
> u32 wm\_apmCustomStack[60000];  
> const u16 wm\_apmCustomStackSize = sizeof(wm\_apmCustomStack);

You’ve just done two things:

1. Allocate an array of 60000 u32’s on the stack. Given that a u32 = 4 bytes; you have attempted to allocate an array of 240000 bytes (approx 234k)
2. You’ve also requested the operating system to allocate an internal stack approx 234k long

You have now requested approx 468k or RAM be set aside for your application. Now I’m not sure about the Q24 - but if you tried doing this on the Q26 you would have just allocated almost 50% of the available ram to the application stack - and then used up all that stack space by filling it with a giant array…

> [@xingzhe](#):
>
> but now ,my Q24PLUS001 is not run!!!

I’m not surprised. Don’t forget that your OpenAT application is only 1 of a number of tasks running inside the Wavecom module - and that all the radio/GSM firmware takes priority over you application.

Try winding back your stack size back to 4096 or 8192 bytes, and don’t fill it with giant arrays. Instead, use heap memory (i.e. adl\_memGet() & adl\_memRelease()) to allocate pointers to large data structures.

ciao, Dave
