cancel
Showing results for 
Search instead for 
Did you mean: 

''no target connected'' in ST Link V2 stm32f4 discovery board and can not reset

sahar
Associate
Posted on July 10, 2014 at 09:11

Hi

I have stm32f4 discovery board, first I could program the board but now It does not work. all jumpers are fine and I'm trying to run a sample program such as LED toggle. I checked the GPIO configuration and I just configure PA.4 for toggling. and this is my simple code:

GPIO_InitTypeDef  GPIO_InitStructure;

int main(void)

{

 RCC_AHB1PeriphClockCmd(RCC_AHB1Periph_GPIOA, ENABLE);

  GPIO_InitStructure.GPIO_Pin = GPIO_Pin_4;

  GPIO_InitStructure.GPIO_Mode = GPIO_Mode_OUT;

  GPIO_InitStructure.GPIO_OType = GPIO_OType_PP;

  GPIO_InitStructure.GPIO_Speed = GPIO_Speed_100MHz;

  GPIO_InitStructure.GPIO_PuPd = GPIO_PuPd_NOPULL;

  GPIO_Init(GPIOA, &GPIO_InitStructure);

 

  while (1)

  {

GPIOA->BSRRL =GPIO_Pin_4;

              GPIOA->BSRRH =GPIO_Pin_4;

  }

}

 then I tried to reset the board with pulling  BOOT0 high. for this purpose,I connected BOOT0 pin to 3v pin. but It does not work yet. I'm working with Keil uvision 4 and It seems that keil can not recognize the ST Link,there is an error in options for target->Debug->ST Link Debugger ->setting : no ST Link detected.

what should I do? please help me

thanks

     

1 REPLY 1
Amel NASRI
ST Employee
Posted on August 06, 2014 at 14:13

Hi Sahar,

Check with ST-Link Utility if your device is detected or not.

-Mayla-

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.