cancel
Showing results for 
Search instead for 
Did you mean: 

Interrupt callbacks is not working, v 6.6.0

ksale.1
Senior

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)

3 REPLIES 3
MM..1
Chief III

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
Lead III

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
Senior

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