AnsweredAssumed Answered

Cube, not correct generated code, can not turn off TDI, etc

Question asked by krasutski.denis on Apr 9, 2015
Cube v4.7.0, target STM32F103RC
I am try use PA15 as TIM2 PWM Output.
But after generating code I got following situation:
__HAL_AFIO_REMAP_SWJ_NOJTAG() macros called before __HAL_RCC_AFIO_CLK_ENABLE() therefore JTAG can not be disable and PA15 pin staying in the PULLUP state

void HAL_MspInit(void)
  /* USER CODE BEGIN MspInit 0 */
  /* USER CODE END MspInit 0 */
  /* System interrupt init*/
  /* SysTick_IRQn interrupt configuration */
  HAL_NVIC_SetPriority(SysTick_IRQn, 0, 0);
 /**NOJTAG: JTAG-DP Disabled and SW-DP Enabled */
  /* USER CODE BEGIN MspInit 1 */
  /* USER CODE END MspInit 1 */

Be careful!

Beast Regards, 
Krasutski Denis.