The following debug commands are available on Bluefruit LE modules:
AT+DBGMEMRD
Displays the raw memory contents at the specified address.
Codebase Revision: 0.3.0
Parameters: The following comma-separated parameters can be used with this command:
- The starting address to read memory from (in hexadecimal form, with or without the leading '0x')
- The word size (can be 1, 2, 4 or 8)
- The number of words to read
Output: The raw memory contents in hexadecimal format using the specified length and word size (see examples below for details)
# Read 12 1-byte values starting at 0x10000009 AT+DBGMEMRD=0x10000009,1,12 FF FF FF FF FF FF FF 00 04 00 00 00 OK # Try to read 2 4-byte values starting at 0x10000000 AT+DBGMEMRD=0x10000000,4,2 55AA55AA 55AA55AA OK # Try to read 2 4-byte values starting at 0x10000009 # This will fail because the Cortex M0 can't perform misaligned # reads, and any non 8-bit values must start on an even address AT+DBGMEMRD=0x10000009,4,2 MISALIGNED ACCESS ERROR
AT+DBGNVMRD
Displays the raw contents of the config data section of non-volatile memory
Codebase Revision: 0.3.0
Properties: None
Output: The raw config data from non-volatile memory
AT+DBGNVMRD FE CA 38 05 00 03 00 00 01 12 01 00 55 41 52 54 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 14 00 64 00 64 00 1E 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 BA FF 00 00 OK
AT+DBGSTACKSIZE
Returns the current stack size, to help detect stack overflow or detect stack memory usage when optimising memory usage on the system.
Codebase Revision: 0.4.7
Parameters: None
Output: The current size of stack memory in bytes
AT+DBGSTACKSIZE 1032 OK
AT+DBGSTACKDUMP
Dumps the current stack contents. Unused sections of stack memory are filled with '0xCAFEFOOD' to help determine where stack usage stops.
This command is purely for debug and development purposes.
Codebase Revision: 0.4.7
Parameters: None
Output: The memory contents of the entire stack region
AT+DBGSTACKDUMP 0x20003800: CAFEF00D CAFEF00D CAFEF00D CAFEF00D 0x20003810: CAFEF00D CAFEF00D CAFEF00D CAFEF00D 0x20003820: CAFEF00D CAFEF00D CAFEF00D CAFEF00D 0x20003830: CAFEF00D CAFEF00D CAFEF00D CAFEF00D 0x20003840: CAFEF00D CAFEF00D CAFEF00D CAFEF00D 0x20003850: CAFEF00D CAFEF00D CAFEF00D CAFEF00D 0x20003860: CAFEF00D CAFEF00D CAFEF00D CAFEF00D 0x20003870: CAFEF00D CAFEF00D CAFEF00D CAFEF00D 0x20003880: CAFEF00D CAFEF00D CAFEF00D CAFEF00D 0x20003890: CAFEF00D CAFEF00D CAFEF00D CAFEF00D 0x200038A0: CAFEF00D CAFEF00D CAFEF00D CAFEF00D 0x200038B0: CAFEF00D CAFEF00D CAFEF00D CAFEF00D 0x200038C0: CAFEF00D CAFEF00D CAFEF00D CAFEF00D 0x200038D0: CAFEF00D CAFEF00D CAFEF00D CAFEF00D 0x200038E0: CAFEF00D CAFEF00D CAFEF00D CAFEF00D 0x200038F0: CAFEF00D CAFEF00D CAFEF00D CAFEF00D 0x20003900: CAFEF00D CAFEF00D CAFEF00D CAFEF00D 0x20003910: CAFEF00D CAFEF00D CAFEF00D CAFEF00D 0x20003920: CAFEF00D CAFEF00D CAFEF00D CAFEF00D 0x20003930: CAFEF00D CAFEF00D CAFEF00D CAFEF00D 0x20003940: CAFEF00D CAFEF00D CAFEF00D CAFEF00D 0x20003950: CAFEF00D CAFEF00D CAFEF00D CAFEF00D 0x20003960: CAFEF00D CAFEF00D CAFEF00D CAFEF00D 0x20003970: CAFEF00D CAFEF00D CAFEF00D CAFEF00D 0x20003980: CAFEF00D CAFEF00D CAFEF00D CAFEF00D 0x20003990: CAFEF00D CAFEF00D CAFEF00D CAFEF00D 0x200039A0: CAFEF00D CAFEF00D CAFEF00D CAFEF00D 0x200039B0: CAFEF00D CAFEF00D CAFEF00D CAFEF00D 0x200039C0: CAFEF00D CAFEF00D CAFEF00D CAFEF00D 0x200039D0: CAFEF00D CAFEF00D CAFEF00D CAFEF00D 0x200039E0: CAFEF00D CAFEF00D CAFEF00D CAFEF00D 0x200039F0: CAFEF00D CAFEF00D CAFEF00D CAFEF00D 0x20003A00: CAFEF00D CAFEF00D CAFEF00D CAFEF00D 0x20003A10: CAFEF00D CAFEF00D CAFEF00D CAFEF00D 0x20003A20: CAFEF00D CAFEF00D CAFEF00D CAFEF00D 0x20003A30: CAFEF00D CAFEF00D CAFEF00D CAFEF00D 0x20003A40: CAFEF00D CAFEF00D CAFEF00D CAFEF00D 0x20003A50: CAFEF00D CAFEF00D CAFEF00D CAFEF00D 0x20003A60: CAFEF00D CAFEF00D CAFEF00D CAFEF00D 0x20003A70: CAFEF00D CAFEF00D CAFEF00D CAFEF00D 0x20003A80: CAFEF00D CAFEF00D CAFEF00D CAFEF00D 0x20003A90: CAFEF00D CAFEF00D CAFEF00D CAFEF00D 0x20003AA0: CAFEF00D CAFEF00D CAFEF00D CAFEF00D 0x20003AB0: CAFEF00D CAFEF00D CAFEF00D CAFEF00D 0x20003AC0: CAFEF00D CAFEF00D CAFEF00D CAFEF00D 0x20003AD0: CAFEF00D CAFEF00D CAFEF00D CAFEF00D 0x20003AE0: CAFEF00D CAFEF00D CAFEF00D CAFEF00D 0x20003AF0: CAFEF00D CAFEF00D CAFEF00D CAFEF00D 0x20003B00: CAFEF00D CAFEF00D CAFEF00D CAFEF00D 0x20003B10: CAFEF00D CAFEF00D CAFEF00D CAFEF00D 0x20003B20: CAFEF00D CAFEF00D CAFEF00D CAFEF00D 0x20003B30: CAFEF00D CAFEF00D CAFEF00D CAFEF00D 0x20003B40: CAFEF00D CAFEF00D CAFEF00D CAFEF00D 0x20003B50: CAFEF00D CAFEF00D CAFEF00D CAFEF00D 0x20003B60: CAFEF00D CAFEF00D CAFEF00D CAFEF00D 0x20003B70: CAFEF00D CAFEF00D CAFEF00D CAFEF00D 0x20003B80: CAFEF00D CAFEF00D CAFEF00D CAFEF00D 0x20003B90: CAFEF00D CAFEF00D CAFEF00D CAFEF00D 0x20003BA0: CAFEF00D CAFEF00D CAFEF00D CAFEF00D 0x20003BB0: CAFEF00D CAFEF00D CAFEF00D CAFEF00D 0x20003BC0: CAFEF00D CAFEF00D CAFEF00D CAFEF00D 0x20003BD0: CAFEF00D CAFEF00D CAFEF00D CAFEF00D 0x20003BE0: CAFEF00D CAFEF00D CAFEF00D CAFEF00D 0x20003BF0: CAFEF00D CAFEF00D 00000000 CAFEF00D 0x20003C00: 00000004 20001D04 CAFEF00D FFFFEF68 0x20003C10: CAFEF00D 00001098 CAFEF00D CAFEF00D 0x20003C20: CAFEF00D CAFEF00D 00001006 200018D8 0x20003C30: 00000001 200018D8 20001C50 00000004 0x20003C40: 20001BB0 000134A5 0000100D 20001D28 0x20003C50: 00000006 00000006 20001C38 20001D44 0x20003C60: 20001C6C 20001D44 00000006 00000005 0x20003C70: 20001D38 00000005 20001D38 00000000 0x20003C80: 00000001 00012083 200018C8 000013D3 0x20003C90: 00550000 00000001 80E80000 4FC40000 0x20003CA0: 000080E8 00000009 60900000 000080E8 0x20003CB0: 60140000 20002764 0009608F 000080E8 0x20003CC0: 80000000 000080E8 00000000 00129F5F 0x20003CD0: 00000000 0001E4D9 80E80000 200018C8 0x20003CE0: 200018D4 00000000 80E80000 000000FF 0x20003CF0: 0000011C 0001BCE1 0000203A 0001BC1D 0x20003D00: 00000000 0001BC1D 80E80000 0001BCE1 0x20003D10: 0000011C 0001BDA9 80E80000 0001BDA9 0x20003D20: 0000011C FFFFFFF9 008B8000 0001BC1D 0x20003D30: 00000048 00000010 0000A000 00000009 0x20003D40: 0001E326 00000001 80E80000 51538000 0x20003D50: 000080E8 0001E9CF 00000000 00000009 0x20003D60: 61C78000 000080E8 00000048 00000504 0x20003D70: 0000A1FC 0002125C 00000000 000080E8 0x20003D80: 00000000 0012A236 00000000 0001E4D9 0x20003D90: 000080E8 00000009 00004998 000080E8 0x20003DA0: 622C8000 0012A29B 00000042 0001E479 0x20003DB0: 40011000 000185EF 00006E10 00000000 0x20003DC0: 00000000 00000004 0000000C 00000000 0x20003DD0: 62780000 00018579 2000311B 0001ACDF 0x20003DE0: 00000000 20003054 20002050 00000001 0x20003DF0: 20003DF8 0002085D 00000001 200030D4 0x20003E00: 00000200 0001F663 00000001 200030D4 0x20003E10: 00000001 2000311B 0001F631 00020A6D 0x20003E20: 00000001 00000000 0000000C 200030D4 0x20003E30: 2000311B 00000042 200030D4 00020AD7 0x20003E40: 20002050 200030D4 20002050 00020833 0x20003E50: 20002050 20003F1B 20002050 0001FF89 0x20003E60: 20002050 0001FFA3 00000005 20003ED8 0x20003E70: 20002050 0001FF8B 00000010 00020491 0x20003E80: 00000001 0012A54E 00000020 00022409 0x20003E90: 00000000 20002050 200030D4 0001FF8B 0x20003EA0: 00021263 00000005 0000000C 20003F74 0x20003EB0: 20003ED8 20002050 200030D4 00020187 0x20003EC0: 20003ED4 20003054 00000000 20003F75 0x20003ED0: 00000008 20003F64 00000084 FFFFFFFF 0x20003EE0: FFFFFFFF 00000008 00000001 00000008 0x20003EF0: 20302058 2000311B 0001F631 00020A6D 0x20003F00: 20002050 00000000 0000000C 200030D4 0x20003F10: 32002050 32303032 00323330 000258D7 0x20003F20: 20002050 200030D4 20002050 00020833 0x20003F30: 00000000 20002050 00000020 000001CE 0x20003F40: 20003F40 200030D4 00000004 0001ED83 0x20003F50: 200030D4 20003F60 000001D6 000001D7 0x20003F60: 000001D8 00016559 0000000C 00000000 0x20003F70: 6C383025 00000058 200030D4 FFFFFFFF 0x20003F80: 1FFF4000 00000028 00000028 000217F8 0x20003F90: 200020C7 000166C5 000166AD 00017ED9 0x20003FA0: FFFFFFFF 200020B8 2000306C 200030D4 0x20003FB0: 200020B4 000180AD 1FFF4000 200020B0 0x20003FC0: 200020B0 200020B0 1FFF4000 0001A63D 0x20003FD0: CAFEF00D CAFEF00D 200020B4 00000002 0x20003FE0: FFFFFFFF FFFFFFFF 1FFF4000 00000000 0x20003FF0: 00000000 00000000 00000000 00016113 OK
Text editor powered by tinymce.