2012-03-18 5:50 PM
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;2012-03-18 6:50 PM
Get the BOOT0 pin HIGH, restart into the System Loader, upload with fixed code, or erase, reset with BOOT0 pin unattached.
2012-03-19 6:17 AM
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