Skip to main content
ksale.1
Senior II
July 7, 2022
Question

Interrupt callbacks is not working, v 6.6.0

  • July 7, 2022
  • 3 replies
  • 1307 views

I've followed st video lab: https://www.youtube.com/watch?v=urHGtvLYctk

Debugging the code, the calback (e.g. HAL_UART_RxCpltCallback) is not called (breakpoint is set). I tried with the "Register Callback" Enabled and Disabled, but none is working. It used to work seamlessly before the version update. What is different in current HAL version interrupts.

N.B.(I've similar open question in different context when using touchgfx (https://community.st.com/s/question/0D53W00001eZLdvSAG/legacy-interrupt-handlers-in-cubemx-660)

This topic has been closed for replies.

3 replies

MM..1
Super User
July 7, 2022

I see this issue and still exist , MX in first generating code with new version skip generate callbacks.

Second generating correct this, i dont know if any change click in NVIC required or not.

gbm
Super User
July 7, 2022

Make sure to enable UART interrupt in CubeMX NVIC config when using ***_IT() functions and both UART and DMA interrupt when using ***_DMA().

My STM32 stuff on github - compact USB device stack and more: https://github.com/gbm-ii/gbmUSBdevice
ksale.1
ksale.1Author
Senior II
July 7, 2022

Thank you, all is enabled, as shown in the screen shot. Would you please advice the most recent version where callbacks are not legacy.

0693W00000QKfrLQAT.png