AnsweredAssumed Answered

STM32F4-Discovery Problem with JTAG

Question asked by marggl0r on Mar 19, 2012
Latest reply on Mar 19, 2012 by marggl0r
Hello,

I'm working with the STM32F4-Discovery Board and the atollic TrueStudio Lite and I'm a absolutely Newbie with that.

When I was excercising with de GPIO's i configured all Port Pins of GPIOA as outputs, and wrote this to the flash.


Since then I can't communicate with the board, maybe because the JTAG/SWD Port ist using the  GPIOA Pins. But in the Reference Manual I found this:


The JTAG pins are in input pull-up/pull-down after reset:
● PA15: JTDI in pull-up
● PA14: JTCK in pull-down
● PA13: JTMS in pull-up
● PB4: NJTRST in pull-up

Can some one tell my what I can do now?
Marcel


PS: My Code:

            GPIO_InitTypeDef  GPIO_InitStructure;


              /* Enable the GPIO_LED Clock */
              RCC_AHB1PeriphClockCmd(RCC_AHB1Periph_GPIOA, ENABLE);


              /* Configure the GPIO_LED pin */
              GPIO_InitStructure.GPIO_Pin = GPIO_Pin_All;
              GPIO_InitStructure.GPIO_Mode = GPIO_Mode_OUT;
              GPIO_InitStructure.GPIO_OType = GPIO_OType_PP;
              GPIO_InitStructure.GPIO_PuPd = GPIO_PuPd_UP;
              GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz;
              GPIO_Init(GPIOA, &GPIO_InitStructure);


GPIOA->BSRRL = GPIO_Pin_All;

Outcomes