cancel
Showing results for 
Search instead for 
Did you mean: 

stm32f071 - Port PD2 not configurable as output

jenskapmeyer
Associate
Posted on March 15, 2018 at 18:34

Dear everybody,

in my code, i am not able to set my Port PD2 as output.

As can be seen, I stopped debug at line 294.

In lines 287 and 289 GPIOD->MODER and memory adress 0x4800 0C00 should be set to some value unequal zero,

but it keeps on zero.

Tried with different hardware, and tried with IAR and Keil.

I am stuck !

Any hints ?

Thx a lot, Jens

0690X0000060A0zQAE.png
1 ACCEPTED SOLUTION

Accepted Solutions
Posted on March 15, 2018 at 18:48

>>Any hints ?

Try enabling the clocks for GPIOD

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..

View solution in original post

3 REPLIES 3
Posted on March 15, 2018 at 18:48

>>Any hints ?

Try enabling the clocks for GPIOD

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
jenskapmeyer
Associate
Posted on March 15, 2018 at 19:02

OMG the clocks !

Thank you so much ...

Posted on March 15, 2018 at 19:19

Please mark the question as answered

https://community.st.com/0D50X00009XkXxjSAF