AnsweredAssumed Answered

cannot connect to stm32f4

Question asked by asdf.asdf.001 on Nov 11, 2012
Latest reply on Nov 12, 2012 by Clive One
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 program 
int main(void)
  RCC_AHB1PeriphClockCmd(RCC_AHB1Periph_GPIOB, ENABLE);
  GPIOB->MODER = (1 << 30);
  GPIOB->ODR = (1 << 15);