AnsweredAssumed Answered

Debug - Print GPIOA->BSSR register

Question asked by xavier.jose on Sep 7, 2013
Latest reply on Sep 7, 2013 by Clive One
Hi,
How can I print the GPIOA->BSSR register using gdb? I tried to p using the register address but with no success:

       
  1.    
    (gdb) n
       
  2.    
  3.    
    67              GPIOC->BSRR = GPIO_Pin_9;
       
  4.    
  5.    
    (gdb) p/x *(0x40010800 + 0x10)
       
  6.    
  7.    
    $6 = 0x0
       
  8.    
  9.    
    (gdb) n
       
  10.    
  11.    
     
       
  12.    
  13.    
    Breakpoint 1main () at main.c:68
       
  14.    
  15.    
    68              GPIOC->BRR = GPIO_Pin_9;
       
  16.    
  17.    
    (gdb) p/x *(0x40010800 + 0x10)
       
  18.    
  19.    
    $7 = 0x0
       
  20.    
  21.    
    (gdb)
       

The pin is configured as the led in the board change the state.

Thanks :)

Outcomes