2478 views|5 replies

3191

Posts

0

Resources
The OP
 

Timer 8 interrupt problem [Copy link]

Timer 8 interrupt initialization compilation error, prompting that it is not defined.

Timer 5 is fine. I want to see where Timer 5 is defined, but I can't find it, as shown below:

Could you please tell me how to solve this problem? Thank you!

This post is from stm32/stm8

Latest reply

There is a special library function for pin remap. I forgot what it is called. It is now widely used in cube.   Details Published on 2020-6-22 18:30
Personal signature为江山踏坏了乌骓马,为社稷拉断了宝雕弓。
 

3191

Posts

0

Resources
2
 

There is no timer 8.

This is from the data sheet.

I use PC6 and PC7. If there is no TIM8, I use TIM3. How should I write the mapping? Thank you!

This post is from stm32/stm8

Comments

There is a special library function for pin remap. I forgot what it is called. It is now widely used in cube.  Details Published on 2020-6-22 18:30
 
Personal signature为江山踏坏了乌骓马,为社稷拉断了宝雕弓。
 

4005

Posts

0

Resources
3
 

Please refer to stm32fXXX.h, where the name is defined. The reuse of different models is different, so the name is different. Please refer to stm32fXXX.h for details.

OTG_FS_WKUP_IRQn = 42, /*!< USB OTG FS Wakeup through EXTI line interrupt */
TIM8_BRK_TIM12_IRQn = 43, /*!< TIM8 Break Interrupt and TIM12 global interrupt */
TIM8_UP_TIM13_IRQn = 44, /*!< TIM8 Update Interrupt and TIM13 global interrupt */
TIM8_TRG_COM_TIM14_IRQn = 45, /*!< TIM8 Trigger and Commutation Interrupt and TIM14 global interrupt */
TIM8_CC_IRQn = 46, /*!< TIM8 Capture Compare global interrupt */
DMA1_Stream7_IRQn = 47, /*!< DMA1 Stream7 Interrupt

This post is from stm32/stm8

Comments

Thanks!  Details Published on 2020-6-22 18:55
 
 

4005

Posts

0

Resources
4
 

The name of the interrupt service is based on the name in startup_stm32fXXX.s

EXPORT EXTI15_10_IRQHandler [WEAK]
EXPORT RTC_Alarm_IRQHandler [WEAK]
EXPORT OTG_FS_WKUP_IRQHandler [WEAK]
EXPORT TIM8_BRK_TIM12_IRQHandler [WEAK] EXPORT TIM8_TRG_COM_TIM14_IRQHandler [ W
EAK] EXPORT TIM8_CC_IRQHandler [WEAK ] EXPORT DMA1_Stream7_IRQHandler [WEAK] EXPORT FMC_IRQHandler [WEAK] EXPORT SDIO_IRQHandler [WEAK]




This post is from stm32/stm8
 
 
 

4005

Posts

0

Resources
5
 
chenbingjy posted on 2020-6-22 15:18 There is no timer 8 here. This is in the data sheet. I use PC6, PC7. If there is no TIM8, I use TIM3. How to write the mapping...

There is a special library function for pin remap. I forgot what it is called. It is now widely used in cube.

This post is from stm32/stm8
 
 
 

3191

Posts

0

Resources
6
 
huo_hu posted on 2020-6-22 18:25 Please refer to stm32fXXX.h, where the name is defined. The reuse of different models is different, so the name is different. Please refer to stm32fXXX.h...

Thanks!

This post is from stm32/stm8
 
Personal signature为江山踏坏了乌骓马,为社稷拉断了宝雕弓。
 
 

Guess Your Favourite
Find a datasheet?

EEWorld Datasheet Technical Support

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list