I use openocd
, arm-none-eabi-gdb
and STLinkV2-1
to debug STM32F411CE
chip. I use also LL and CMSIS libraries. The problem is that to check the value of e.g. a pin I have to look up in the datasheet the register boundary addresses for the specific GPIO port (e.g. 0x4002 0000 - 0x4002 03FF
for GPIOA
) and then check whats the offset for the register I want to read (e.g. 0x10
for GPIOx_IDR
). Then to check a specific bit I have to check once more in datasheet what's the offset for it in the register and calculate from hex value the value of the bit. So for gdb
it will be:
(gdb) x 0x40020010
0x40020010: 0xa8280000
Is there an easier approach to get the value, by typing something like that:
get bit value in register GPIOA IDR
I couldn't find anything in openocd
datasheet or in the Internet which answers my question.