http://www.wavecom.com/forum Open AT ® Release version: 3.13 |
This sample depends on the following libraries :
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)
Command | Answers |
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. |
Parameter | Values range | Description | Default value |
mode | 0-5 | 0 : 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 |
offset | 8 | RAM offset where to write for mode 1 | 0 |
value | 0-255 | Value to write in RAM offset for mode 1 | 0 |
AT+GETBKTRC (Backtraces retrieve command)
Command | Answers |
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 |
Parameter | Values range | Description | Default value |
id | 0-X | Backtrace ID to retrieve (0 for all) | 0 |
AT+ERRBKTRC (Backtraces erase command)
Command | Answers |
AT+ERRBKTRC? | +ERRBKTRC:
<nb>
OK |
AT+ERRBKTRC=? | OK |
AT+ERRBKTRC | OK (Erase all the stored backtraces) |
Parameter | Values range | Description | Default value |
nb | 0-X | Stored backtraces number | - |
Updated: Wed Apr 4 13:10:12 CEST 2007;