# Question about flash memory capacity

**URL:** <https://forum.sierrawireless.com/t/question-about-flash-memory-capacity/1198>\
**Category:** Open AT\
**Created:** [March 21, 2007, 12:41pm UTC](https://forum.sierrawireless.com/t/question-about-flash-memory-capacity/1198 "2007-03-21T12:41:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![gioiese](https://avatars.discourse-cdn.com/v4/letter/g/46a35a/32.png) [@gioiese](https://forum.sierrawireless.com/u/gioiese)\
**Post date:** [March 21, 2007, 12:41pm UTC](https://forum.sierrawireless.com/t/question-about-flash-memory-capacity/1198/1 "2007-03-21T12:41:59Z")

</div>

HI,

I’m using fastrack M1306B , in my application I am testing adl\_flash API.

```auto
#include "adl_global.h"
u32 wm_apmCustomStack [256];
const u16 wm_apmCustomStackSize = sizeof ( wm_apmCustomStack );

u32 sizeMEM;

void adl_main ( adl_InitType_e InitType )
{
   adl_flhSubscribe("Data",1);
   sizeMEM = adl_flhGetFreeMem();
   
}
```

With 6.55 firmware in sizeMEM I find 128KByte in according whit ADL user guide for open AT v3.10

After I have installed Open AT v3.12 and in my Fastrack I have updated the firmware (I have installed dwl.dwl file and 657\_\_full\_q2406b.dwl file trough HyperTerminal).  
I have created a new project trough project wizard ( in paricular in the wireless CPU option box I have chosen compiler GCC and the Memory Type selection is disabled).  
Later I have tested my application, and in debug mode in sizeMEM i find 5KByte.  
This is not in according with the ADL User Guide for Open AT v3.12  
why does this happen?

---

<div class="post-metadata">

**Author:** ![tobias](https://avatars.discourse-cdn.com/v4/letter/t/c67d28/32.png) [@tobias](https://forum.sierrawireless.com/u/tobias)\
**Post date:** [March 22, 2007, 7:30am UTC](https://forum.sierrawireless.com/t/question-about-flash-memory-capacity/1198/2 "2007-03-22T07:30:24Z")

</div>

Try doing a AT+WOPEN=3 to clear the flash memory before running the application.

---

<div class="post-metadata">

**Author:** ![OpenAT\_Fan](https://avatars.discourse-cdn.com/v4/letter/o/f07891/32.png) [@OpenAT\_Fan](https://forum.sierrawireless.com/u/OpenAT_Fan)\
**Post date:** [March 23, 2007, 4:48am UTC](https://forum.sierrawireless.com/t/question-about-flash-memory-capacity/1198/3 "2007-03-23T04:48:07Z")

</div>

Hi gioiese,

I debug mode of execution, the flash objects and memory is simulated on the PC where your Open AT application is running. These are simulated in “Project\_name\rte\objects” folder. Hence, the value reported when the application is executed in debug mode might not be correct.

To find out the exact value, execute the application in target mode of execution. You will get the correct value here.

Hope this helps.

Best Regards,  
Open AT Fan.

---

<div class="post-metadata">

**Author:** ![gioiese](https://avatars.discourse-cdn.com/v4/letter/g/46a35a/32.png) [@gioiese](https://forum.sierrawireless.com/u/gioiese)\
**Post date:** [March 23, 2007, 12:49pm UTC](https://forum.sierrawireless.com/t/question-about-flash-memory-capacity/1198/4 "2007-03-23T12:49:50Z")

</div>

Hi Open\_AT\_Fan,

Thanks for your observation it has solved my problem.

I did not know of this difference between the v3.10 and v3.12 in debug mode.
