Skip to main content
mgall.1
Visitor II
December 10, 2022
Question

HAL_UART_Receive_DMA(&huart1,... and HAL_UART_Receive_DMA(&huart2,.... Usually work well but not if I use in the same program TIM2 with the following instruction HAL_TIM_Base_Start_IT(&htim2).... The timer TIM2 keep working.

  • December 10, 2022
  • 3 replies
  • 883 views

..

This topic has been closed for replies.

3 replies

Tesla DeLorean
Guru
December 10, 2022

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.

I​s TIM2 interrupting at some excessively high rate? ie more than few hundred KHz

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
S.Ma
Principal
December 10, 2022

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.

Karl Yamashita
Lead III
December 10, 2022

Paste your code so we can better see what could be the issue.

If a reply has proven helpful, click on Accept as Solution so that it'll show at top of the post.CAN Jammer an open source CAN bus hacking toolCANableV3 Open Source