-
Notifications
You must be signed in to change notification settings - Fork 3k
[STM32XX] Fix timer interrupt handler #2093
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@@ -77,7 +82,7 @@ HAL_StatusTypeDef HAL_InitTick(uint32_t TickPriority) { | |||
// Configure time base | |||
TimMasterHandle.Instance = TIM_MST; | |||
TimMasterHandle.Init.Period = 0xFFFFFFFF; | |||
TimMasterHandle.Init.Prescaler = (uint32_t)(SystemCoreClock / 1000000) - 1; // 1 �s tick | |||
TimMasterHandle.Init.Prescaler = (uint32_t)(SystemCoreClock / 1000000) - 1; // 1 �s tick |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you use ascii character? 1 us tick or microsecond might be even better?
Is this ready to be merged? Both PR referenced here were integrated |
Rebase done and ready to merge. |
@mbed-bot: TEST HOST_OSES=windows |
[Build 579] |
I am getting stuck in while(1) loop in RTC_Alarm_IRQHandler while using Ethernet on STM32F746G Discovery board. Could it be related? |
The fix concern only the timer irq. To me, it can't be related. |
manually merged |
Some of the targets use only the flag and some other only the interrupt source to check which channel of the master timer has triggered an interrupt in an interrupt handler.
The flag can be set by hardware even if the interrupt is disable and two interrupt can be enable, for one triggered, in the same handler so we need a double check here.
The major issue is that some
interrupt_x
handler code can be execute even if theinterrupt_x
have been disable.These commits make all of the st targets checking both int source and flag for the master timer.
Please merge this after these ones, I will rebase:
NUCLEO_F429ZI
NUCLEO_F446ZE