2021-04-03 03:17 AM
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?