Datasheet

(gdb) monitor halt
(gdb) set print pretty on
(gdb) print *array@len
Useful Mynewt/Nimble Structs and Fields
Some useful Mynewt or nimble fields to display can be seen below:
ble_phy_stats - PHY stats for traffic tracking
ble_ll_stats - Link layer stats
ble_ll_conn_stats - Connection stats
g_ble_ll_adv_sm - Advertising state machine
g_ble_ll_stack - Link layer stack
For example:
(gdb) monitor halt
(gdb) set print pretty on
(gdb) p ble_phy_stats
$16 = {
s_hdr = {
s_name = 0x0,
s_size = 0 '\000',
s_cnt = 0 '\000',
s_pad1 = 0,
s_next = {
stqe_next = 0x0
}
},
sphy_isrs = 0,
stx_good = 1,
stx_fail = 0,
stx_late = 0,
stx_bytes = 27,
srx_starts = 0,
srx_aborts = 0,
srx_valid = 0,
srx_crc_err = 0,
srx_late = 0,
sno_bufs = 0,
sradio_state_errs = 0,
srx_hw_err = 0,
stx_hw_err = 0
}
Memory Manipulation
You can display the memory contents of a specific address via the x command.
To see the main stack pointer location on an ARM chip, for example, run:
(gdb) x 0
0x0: 0x20008000
You can also adjust the output size with the optional x/nfu flags:
© Adafruit Industries https://learn.adafruit.com/adafruit-nrf52-pro-feather Page 72 of 87