Skip to main content
Visitor II
May 14, 2025
Solved

Vector address & interrupt handler

  • May 14, 2025
  • 4 replies
  • 619 views

Hello at everyone,
I setup on CUBE Ide on STM32C011 mcu without the configurator TIMER1 and I would to manage it on update interrupt, but I have not the stm32c0xx_it.c file that would contain the irqHandler routines.
In this case, how the compiler identifys interrupt handler routine? The name and the associate vector address?
Thanks a million.
Valter

    This topic has been closed for replies.
    Best answer by KnarfB

    If you want to do it bare-metal on purpose, check the startup .s file for the raw irq handler name in your case:

    void TIM1_BRK_UP_TRG_COM_IRQHandler(void) {} will do.

     

    4 replies

    Super User
    May 14, 2025

    The stm32c0xx_it.c should have been generated. If you think you found a bug, please describe all details to reproduce.

    If you want to do it bare-metal on purpose, check the startup .s file for the raw irq handler name (TIM1_BRK_UP_TRG_COM_IRQHandler)

    hth

    KnarfB    

    Super User
    May 14, 2025

    If you are having issues with CubeMX code generation, please include the IOC file so the issue can be duplicated and corrected.

    ST Employee
    May 14, 2025

    Hello @VSimo.18 , 

    Please use the latest version of CubeMX (version 6.14.1), as it should work. And provide us with the version you are currently using so we can examine the behavior in detail.

    With best regards,

    Chaima.

    VSimo.18Author
    Visitor II
    May 15, 2025

    No guys, sorry I explain wrong,
    no problems, no issues on CUBE. I creating my peripherals code without the code generator (the IOC file is woid, only clock setup), writing to the registers. If I use the peripherals on polling mode, no problem, I have to manage the flags into register, but if I have to use on interrupt mode I haven't the interrupt procedures into the "stm32c0xx_it.c" (I'm using STM32C011 mcu). Only the NMI_Handler, HardFault_Handler, SVC_Handler, PendSV_Handler and SysTick_Handler procedurers are in.
    My question is: what interrupt procedure is serviced when I enable an pheripheral interrupt? There is a list of named of these? I mean of first level, no callback.
    Thanks
    Valter

    KnarfBAnswer
    Super User
    May 15, 2025

    If you want to do it bare-metal on purpose, check the startup .s file for the raw irq handler name in your case:

    void TIM1_BRK_UP_TRG_COM_IRQHandler(void) {} will do.

     

    VSimo.18Author
    Visitor II
    May 15, 2025

    Oh, isr_vector wonderfull,
    thank you a million KnarfB and sorry for this elementary questions.
    Valter