Question about flash memory capacity

HI,

I’m using fastrack M1306B , in my application I am testing adl_flash API.

#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?

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

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.

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.