Associate
February 5, 2019
Question
Debug pins have different behaviour after reset than the other pins. Is there a way to change this?
- February 5, 2019
- 1 reply
- 980 views
Specifically, PortA.15 pin goes "HIGH" after reset for 5ms. It can be seen on picture. (Blue is the VDD supply, yellow is PortA.15) PortA.15 pin has an alternate function “SYS_JTDI�?. This situation cannot be seen on other pins which configured the same way with PortA.15.
Here is the config for ports:
/*Configure GPIO pins : WG1_BUZZER_Pin/*PortA.4*/ fLASH_CS_Pin MOTOR1_Pin/*porta.15*/ */
GPIO_InitStruct.Pin = WG1_BUZZER_Pin|fLASH_CS_Pin|MOTOR1_Pin;
GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;
GPIO_InitStruct.Pull = GPIO_NOPULL;
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
