cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F103VCT TIM PWM Remapping problem

KLee.0
Associate

Dear guys.

i have a problem.

I used the STM32F103VCT.

I control 3 color RGB LED using TIM1 PWM CH1~3

and i set the pwm parameter by CubeMX.

After set the pwm, the pwm function is good work, but other device - USART1 is not work and debug mode is automatically disconnected.

My hardware connection is below

PE8-CH1-RGB_R

    PE11-CH2-RGB_G

    PE13-CH3-RGB_B

USART1(PA10/PA9)

i think the reason is PWM gpio remapping.

because after downloading the firmware and debugging the source step by step.

and the point of disconnect is PWM GPIO remammping function(

HAL_TIM_MspPostInit --> __HAL_AFIO_REMAP_TIM1_ENABLE() ==> at this point)

Maybe could you tell me the advice of this situiation.

thank you

1 REPLY 1
LACTIC
Associate II

USART1debug mode is automatically disconnected or its go in error handler ??