http://www.wavecom.com/forum

Open AT ®  Release version:
4.10

Sample - Bug

Changes

Dependencies

This sample depends on the following libraries :

Application Description

First off all, this application may be used to cause exceptions (product reset due to a software crash, and backtrace storage in the product memory). This may be done with the +BUG command.

Then, it is possible to know how many backtraces are stored in the product, and to retrieve them through the 1K XModem uploader with the +GETBKTRC command. The upload operation is processed by the Download library.

Finaly, it is also possible to erase all backtraces stored on the product, using the +ERRBKTRC command.

 

  AT+BUG (Exception launch command)
CommandAnswers
AT+BUG=?+BUG: (0-9) , (8) , (0-255)
OK
AT+BUG= <mode> ,[ <offset> ],[ <value> ]This command will reset the product, and store the backtrace in memory.
 
ParameterValues rangeDescriptionDefault value
mode0-90: causes a Watch Dog reset (infinite loop)
1: causes a Data Abort exception (try to write <value> in a forbidden RAM area given by <offset>)
2: uses the ADL error service to cause a fatal error
3: causes a stack overflow
4: causes an ARM Exception (try to call a NULL callback pointer)
5: causes an RTK 155 exception (try to call adl_memRelease on a corrupted pointer)
6: causes an Undefined instruction exception (try to call a callback which points on an undefined instruction)
7: causes a Prefetch Abort exception (try to call a callback which points on an undefined address)
8: causes an RTK 162 exception (try to call adl_memRelease on a buffer corrupted by a memory write overflow)
9: causes an exception (try to call adl_memRelease two times)
mandatory
offset8RAM offset where to write for mode 10
value0-255Value to write in RAM offset for mode 10

 

  AT+GETBKTRC (Backtraces retrieve command)
CommandAnswers
AT+GETBKTRC?+GETBKTRC: <id>
OK
AT+GETBKTRC=?+GETBKTRC: (0-X)
OK
AT+GETBKTRC+CME ERROR: 3
or
Starts the dwl_Upload uploader
(behaves as AT+GETBKTRC=0 command)
AT+GETBKTRC= <id> +CME ERROR: 3
or
Starts the dwl_Upload uploader
 
ParameterValues rangeDescriptionDefault value
id0-XBacktrace ID to retrieve (0 for all)0

 

  AT+ERRBKTRC (Backtraces erase command)
CommandAnswers
AT+ERRBKTRC?+ERRBKTRC: <nb>
OK
AT+ERRBKTRC=? OK
AT+ERRBKTRCOK
(Erase all the stored backtraces)
 
ParameterValues rangeDescriptionDefault value
nb0-XStored backtraces number-

Updated: Tue Sep 19 17:04:02 CEST 2006;