cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F4-Discovery Problem with JTAG

maerki
Associate
Posted on March 19, 2012 at 01:50

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;

2 REPLIES 2
Posted on March 19, 2012 at 02:50

Get the BOOT0 pin HIGH, restart into the System Loader, upload with fixed code, or erase, reset with BOOT0 pin unattached.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
maerki
Associate
Posted on March 19, 2012 at 14:17

Great! It worked!

Thank you very much for your help!

Why are there no Pin fuses? Or can I lock those Pins, that this can't happen again?

Are there any other Pins I should not configure?

Marcel