cancel
Showing results for 
Search instead for 
Did you mean: 

Accessing GPIO Register via debugger

b239955_stm1_stmicro
Associate II
Posted on October 19, 2009 at 14:11

Accessing GPIO Register via debugger

3 REPLIES 3
b239955_stm1_stmicro
Associate II
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!!

janvi
Associate II
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 II
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