http://www.wavecom.com/forum Open AT ® Release version: 4.10 |
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-9)
,
(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-9 | 0: 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 |
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: Tue Sep 19 17:04:02 CEST 2006;