Skip to main content
xoserg70
Visitor II
September 10, 2017
Question

cubeMX 4.22 stm32f37xx lib 1.9 comp irq bug

  • September 10, 2017
  • 2 replies
  • 781 views
Posted on September 10, 2017 at 05:06

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'
    This topic has been closed for replies.

    2 replies

    Jeanne Joly
    Associate
    February 1, 2018
    Posted on February 01, 2018 at 11:51

    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

    Michael Jeanneret
    Visitor II
    June 18, 2018
    Posted on June 18, 2018 at 14:46

    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

    '.