cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F407 Hang in GPIO A 15 Init

Pedram
Associate III
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

1 REPLY 1
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