2017-09-09 08:06 PM
Hello! Code generated by CubeMX v4.22 using STM32F3 library v1.9 have the following bug:
When enable comparator interrupt, C code generated in stm32f3xx_it.c use interrupt subroutine titled 'COMP_IRQHandler', while in startup code of the file startup_stm32F373xc.s this subroutine titled as 'COMP1_2_IRQHandler'. Moreover, file stm32f373xc.h consist of '#define
COMP1_2_IRQHandler COMP_IRQHandler'. Therefore, if you change your stm32f3xx_it.c code from
'COMP_IRQHandler' to 'COMP1_2_IRQHandler - it does not matter.So, the comparator interrupt jump does not directed to the proper location and still point to DefaultHandler anyway.To fix, one should go to edit startup_stm32F373xc.s assembly file, and replace all 'COMP1_2_IRQHandler' occurrences with 'COMP_IRQHandler'2018-02-01 02:51 AM
Hi
Khomenko.Sergii
,On top of CubeMX4.24 and with the same FW library (STM32Cube\Repository\STM32Cube_FW_F3_V1.9.0), I can't reproduce your issue.
In stm32f3xx_it.c, I don't have the interrupt subroutine titled
COMP_IRQHandler.
For F3 library and in
startup_stm32F373xc.s, I have same as you.
Do you sill have your issue on the latest CubeMX4.24?
BR. Jeanne
2018-06-18 05:46 AM
I have the same issue with STM32CubeMX 4.25.1. and Atollic 9.0.1
The 'startup_stm32f373xc.s' doesn't sees the 'COMP_IRQHandler' defined alias in '
stm32f373xc.h
'.