2022-12-10 05:04 AM
2022-12-10 05:40 AM
Please don't put the entire question in the title/summary.
Identify the model of STM32 and make/model of board you are working with.
Is TIM2 interrupting at some excessively high rate? ie more than few hundred KHz
2022-12-10 07:57 AM
Inctease the stack size a bit, put all non systick interrupts at same level and check if tim and usart are sharing the same intweeupt vector, or that your code is stuck in interrupt. Debug witg stlink to nail down what is wrong.
2022-12-10 08:32 AM
Paste your code so we can better see what could be the issue.