cancel
Showing results for 
Search instead for 
Did you mean: 

Vector address & interrupt handler

VSimo.18
Associate II

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

1 ACCEPTED SOLUTION

Accepted Solutions

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.

 

View solution in original post

6 REPLIES 6
KnarfB
Super User

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    

TDK
Super User

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

If you feel a post has answered your question, please click "Accept as Solution".
Chaima_M
ST Employee

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.18
Associate II

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

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.

 

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