Question
Debug - Print GPIOA->BSSR register
Posted on September 07, 2013 at 00:56
Hi,
How can I print the GPIOA->BSSR register using gdb? I tried to p using the register address but with no success:-
(
gdb)
n -
67
GPIOC->BSRR =GPIO_Pin_9;
-
(
gdb)
p/x *(
0x40010800
+0x10
)
-
$6 =
0x0
-
(
gdb)
n -
Breakpoint
1
,main
(
)
atmain.c
:68
-
68
GPIOC->BRR =GPIO_Pin_9;
-
(
gdb)
p/x *(
0x40010800
+0x10
)
-
$7 =
0x0
-
(
gdb)
