Skip to main content
Pedram
Associate III
November 30, 2017
Question

STM32F407 Hang in GPIO A 15 Init

  • November 30, 2017
  • 1 reply
  • 582 views
Posted on November 30, 2017 at 20:36

Hello friends 

The microcontroller will hang after the following command

How can I fix this problem?

GPIO_InitStruct.Pin = GPIO_PIN_15;

GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;

GPIO_InitStruct.Pull = GPIO_NOPULL;

GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;

HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);                     < hang here

Thanks

    This topic has been closed for replies.

    1 reply

    waclawek.jan
    Super User
    November 30, 2017
    Posted on November 30, 2017 at 20:46

    By 'hang', do you mean 'it stops responding to my debugger, which uses JTAG for its connection'?

    If yes, then use SWD rather than JTAG, that would free up PA15.

    If no, check if there's any unexpected short between PA15 and any other surrounding trace.

    JW