Debug problem

I have some trouble with the following code:

#include “adl_global.h”
#include “adl_sms.h”
#include <time.h>
u32 wm_apmCustomStack [ 256 ];
const u16 wm_apmCustomStackSize = sizeof ( wm_apmCustomStack );
bool gps_handler (adl_gpsEvent_e Event, adl_gpsData_t * GPSData)
switch ( Event )
ascii RspStr [ 250 ];
wm_sprintf ( RspStr, “\r\n+Poz: %s,%s,%s,%s,%s \r\n”, GPSData->Position.UTC_time, GPSData->Speed.speed_km_p_hour, GPSData->Position.latitude, GPSData->Position.longitude, GPSData->;
adl_atSendResponse ( ADL_AT_UNS, RspStr );
void adl_main ( adl_InitType_e InitType )
u32 timp;
s8 gps_subscribe_handler;

timp = 2 ;
gps_subscribe_handler = adl_gpsSubscribe (gps_handler, timp);

In debug mode, it run for a small period of time and after that it crash.
Loaded in the q2501b, it run perfectly.
Also, the speed is not there. The module q2501b is not computing the speed?
Debuging enviroment is MS VStudio 6.0 with gcc (standard enviroment).
Where is the problem?


It could be related to the serial speed and/or the amount of data transmitted when you are in debug mode.

In the document “Open AT tools manual” there is written:

…and I think that when sending a lot of data in debug mode, it could be too much for the RTK to handle and the debug environment will crash or not show everything thats transmitted.

My experience is the same as yours, somtimes its working in target but not in debug mode. And in most of the cases its been caused by too much traffic or debug information in debug mode.

Try to filter, slow down or shrink the data transmitted in debug mode and see if it makes any difference.