Skip to main content
jenskapmeyer
Associate
March 15, 2018
Solved

stm32f071 - Port PD2 not configurable as output

  • March 15, 2018
  • 2 replies
  • 1857 views
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.
    Best answer by Tesla DeLorean
    Posted on March 15, 2018 at 18:48

    >>Any hints ?

    Try enabling the clocks for GPIOD

    2 replies

    Tesla DeLorean
    Tesla DeLoreanBest answer
    Guru
    March 15, 2018
    Posted on March 15, 2018 at 18:48

    >>Any hints ?

    Try enabling the clocks for GPIOD

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

    OMG the clocks !

    Thank you so much ...

    Andrew Neil
    Super User
    March 15, 2018
    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.