Question
How to start a STM32 without active JTAG or SWD Pins....??
Posted on October 17, 2011 at 20:07
Hello,
I use STM32 for several years, but know I dont know how to solve this problem. When I start my STM32int main(void) { RCC_Configuration(); NVIC_Configuration(); GPIO_Configuration(); ADC_Configuration(); GPIO_PinRemapConfig(GPIO_Remap_SWJ_Disable, ENABLE); // Disable JTAG/SWD so pins are availble UART_Configuration(); if (SysTick_Config(SystemFrequency / 1000)) { while (1) {;} } // Pins Off GPIOA->BRR = (GPIO_Pin_8 | GPIO_Pin_14 | GPIO_Pin_11 | GPIO_Pin_12 | GPIO_Pin_13 | GPIO_Pin_15); GPIOB->BRR = (GPIO_Pin_4 | GPIO_Pin_5);
I have to remap JTMS/SWDIO Pins. Later I put all Pins to Off. But it is too late. PA13 has Main-Function ''JTMS/SWDIO'' and PA15 ''JTCK/SWCLK'', PA13 always starts with On, for a secound. This makes problems with additional electronic.... Does anybody know, how to start up a STM32, without active ''JTMS/SWDIO'' and ''JTCK/SWCLK'' Pin? Thank you very mutch. Best Regards Simon