http://www.wavecom.com/forum

Open AT ®  Release version:
3.13

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-5) , (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-50 : causes a Watch Dog reset (infinite loop)
1 : causes an ARM 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 ADL memory release error (try to call adl_memRelease on a corrupted pointer)
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: Wed Apr 4 13:10:12 CEST 2007;