2025-05-14 1:59 AM
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
Solved! Go to Solution.
2025-05-15 1:13 AM
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.
2025-05-14 2:23 AM
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
2025-05-14 4:17 AM
If you are having issues with CubeMX code generation, please include the IOC file so the issue can be duplicated and corrected.
2025-05-14 4:40 AM
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.
2025-05-15 12:22 AM
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
2025-05-15 1:13 AM
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.
2025-05-15 1:30 AM
Oh, isr_vector wonderfull,
thank you a million KnarfB and sorry for this elementary questions.
Valter