2013-03-22 01:32 PM
Hello!
I can't enable the interrupt (NVIC_EnableIRQ (TIM1_UP_IRQn)) from the timer TIM1.
Keil dislike arguments TIM1_BRK_IRQn, TIM1_UP_IRQn, TIM1_TRG_COM_IRQn:
Main \ main.c (124): error: # 20: identifier ''TIM1_UP_IRQn'' is undefined,
but
TIM1_CC_IRQn
Keil
understand and interrupt normal work.
Please, tell me, what am i doing wrong?
Use stm32f107vc (connectivity line)
2013-03-22 02:20 PM
Make sure you have the define STM32F10X_CL set in your project, and not something like STM32F10X_HD_VL, etc
Also make sure to use the right startup_stm32f1???.s file #ifdef STM32F10X_HD_VL ADC1_IRQn = 18, /*!< ADC1 global Interrupt */ EXTI9_5_IRQn = 23, /*!< External Line[9:5] Interrupts */ TIM1_BRK_TIM15_IRQn = 24, /*!< TIM1 Break and TIM15 Interrupts */ TIM1_UP_TIM16_IRQn = 25, /*!< TIM1 Update and TIM16 Interrupts */ TIM1_TRG_COM_TIM17_IRQn = 26, /*!< TIM1 Trigger and Commutation and TIM17 Interrupt */ TIM1_CC_IRQn = 27, /*!< TIM1 Capture Compare Interrupt */2013-03-23 02:45 AM
Thank you!
I will redo my startup.