Question
cannot connect to stm32f4
Posted on November 11, 2012 at 14:36
The first problem I got, was when using debugger in IAR: Fatal error: ST-Link Connection error.
Then I tried to erase flash with stm32 st-link utility, but I get an error: No STLink detected. Any idea how to fix this? The board is new and it was the first program I tried to download to it. it crashed on this programint
main(
void
)
{
RCC_AHB1PeriphClockCmd(RCC_AHB1Periph_GPIOB, ENABLE);
GPIOB->MODER = (1 << 30);
GPIOB->ODR = (1 << 15);
}
#st-link-connection-error