Skip to main content
jenskapmeyer
Associate
Mar 15, 2018 5:34 PM UTC
Solved

stm32f071 - Port PD2 not configurable as output

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
    This topic has been closed for replies.
    Tesla DeLorean
    Tesla DeLoreanBest answer
    Guru
    Mar 15, 2018 5:48 PM UTC
    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 (See Profile) Up vote any posts that you find helpful, it shows what's working..

    3 replies

    Tesla DeLorean
    Tesla DeLoreanBest answer
    Guru
    Mar 15, 2018 5:48 PM UTC
    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 (See Profile) Up vote any posts that you find helpful, it shows what's working..
    jenskapmeyer
    Associate
    Mar 15, 2018 6:02 PM UTC
    Posted on March 15, 2018 at 19:02

    OMG the clocks !

    Thank you so much ...

    Andrew Neil
    Super User
    Mar 15, 2018 7:19 PM UTC
    Posted on March 15, 2018 at 19:19

    Please mark the question as answered

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

     
    A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.