Skip to main content
b239955_stm1_stmicro
Associate
October 19, 2009
Question

Accessing GPIO Register via debugger

  • October 19, 2009
  • 3 replies
  • 761 views
Posted on October 19, 2009 at 14:11

Accessing GPIO Register via debugger

    This topic has been closed for replies.

    3 replies

    janvi
    Associate III
    May 17, 2011
    Posted on May 17, 2011 at 13:27

    In comparision to other micros, the peripherals are connected to diffrent internal peripheral bus systems. If the APB2 peripheral clock enable register is not initialized for spezific GPIO Port, the register return value may always read 0x0000

    b239955_stm1_stmicro
    Associate
    May 17, 2011
    Posted on May 17, 2011 at 13:27

    hey guys,

    I need your help considering debug and bit manipulation. I´m able to read and write bits in the RAM Area and now I want to toggle bits in certain registers eg. in the GPIO Register. It seems to be a write protection when I trie to set a bit in GPIOB_ODR15. I know that this pin is connected with an LED on my DEV Board STM32-SK.

    I haven´t done a lot with ST controllers so I dont know exactly what to do for accessing I/O ports.

    (All I have to do is working with the debugger and writing/reading registers)

    I guess I have to change something within the CPU registers right?

    Would be nice if someone could give me a hint!!

    b239955_stm1_stmicro
    Associate
    May 17, 2011
    Posted on May 17, 2011 at 13:27

    Quote:

    On 19-10-2009 at 15:44, Anonymous wrote:

    In comparision to other micros, the peripherals are connected to diffrent internal peripheral bus systems. If the APB2 peripheral clock enable register is not initialized for spezific GPIO Port, the register return value may always read 0x0000

    that works perfect for me!

    thx dude