cancel
Showing results for 
Search instead for 
Did you mean: 

Stm32F407 usb-cdc receive interrupt and timer interrupt do not work at the same time

Aözda.1
Associate

I have a Stm32F407 discovery card. I am trying to control a step motor with the gui I made in C # platform. I communicated using the usb_cdc library and I am using a stepper motor with my stm card. I count the pulse of the pwm signal using timer interrupt while controlling the stepper motor. I am configuring stm using cube mx. My problem is that after enabling USB global interrupt and TIM2 global interrupt in cube mx USB communication is not working or timer interrupt is not working. I configured the interrupt priority, but no solution found. An 8MHz crystal is used as a source. Do you have a suggestion?

0 REPLIES 0