JTAG Error at Inconsistant Locations in Code
I have removed the JTAG assignments from the STM32CubeMX project file, and instead assigned them the Reset_State. I then regenerated the code and found this code in fhe function MX_GPIO_Init():
GPIO_InitStruct.Pin = GPIO_PIN_13|GPIO_PIN_14|GPIO_PIN_15;
GPIO_InitStruct.Mode = GPIO_MODE_ANALOG;
GPIO_InitStruct.Pull = GPIO_NOPULL;
HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
I also see similar code for GPIOB pins GPIO_PIN_3 and GPIO_PIN_4
After either of this code is executed I get an ST-Link V2 communication failure. I do not want to have to comment out this code or delete it whenever I regenerate code in STM32CubeMX. Is there a way to prevent STM32CubeMX including pin configuration for these three pins?