Datasheet

(gdb) monitor halt
(gdb) set print pretty on
(gdb) print ble_phy_stats
$5 = {
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
}
Formatting Display Values
You can also format the printed values with the following formatters:
x Regard as integer and display as hexadecimal
d Regard as integer and display as signed decimal
u Regard as integer and display as unsigned decimal
c Regard as integer and print as a char constant
f Regard as float and print in floating point syntax
t Print integer as binary
a Print as an address (hex plus offset). Useful to discover where an address is located (ex. p/a 0x12345 yields
$3 = 0x12345 <_initialize_vx+396> )
To print the BLE link layer stack ( g_ble_ll_stack ) in hex enter:
(gdb) p/x g_ble_ll_stack
$17 = {0xdeadbeef <repeats 22="" times="">, 0x20002568, 0x304, 0xe000e100, 0x100, 0x20001be4, 0x0, 0xffffffff, 0x0,
0xffffffff, 0x20002204, 0x19f14, 0x20002218, 0x0, 0x20001e90, 0x10000000, 0x20002180, 0x354, 0xa0a3, 0x92b2,
0x61000000, 0x20001e8c, 0x200021d8, 0x0, 0x9657, 0x4, 0xffffffff, 0xffffffff, 0x1fff8000, 0x0, 0xa897, 0x0, 0xa85d,
0x1fff8000, 0xffffffff, 0xffffffff, 0x1fff8000, 0x0, 0x0, 0x8, 0xde, 0x93c9, 0x0}
Displaying an Array of Values
You can display the contents of an array as follows:
© Adafruit Industries https://learn.adafruit.com/adafruit-nrf52-pro-feather Page 71 of 87