Skip to main content
MYu
Associate II
April 28, 2019
Question

doesn't reach infinite loop and stop in interrupt setting

  • April 28, 2019
  • 1 reply
  • 642 views

I generated FOC code by 3 shunt from MCSDK5.3.3.

the base project comes from STM32CubeExpansion_SPN7_V1.1.0.

 The MCU is STM32F302R7Tx.

Please review below code and respond the error.

static void MX_NVIC_Init(void)

{

 /* TIM1_BRK_TIM15_IRQn interrupt configuration */

 HAL_NVIC_SetPriority(TIM1_BRK_TIM15_IRQn, 4, 1);

 HAL_NVIC_EnableIRQ(TIM1_BRK_TIM15_IRQn);

 /* USART2_IRQn interrupt configuration */

 HAL_NVIC_SetPriority(USART2_IRQn, 3, 1);

 HAL_NVIC_EnableIRQ(USART2_IRQn);

 /* ADC1_IRQn interrupt configuration */

 HAL_NVIC_SetPriority(ADC1_IRQn, 2, 0);

 HAL_NVIC_EnableIRQ(ADC1_IRQn);

 /* EXTI15_10_IRQn interrupt configuration */

 HAL_NVIC_SetPriority(EXTI15_10_IRQn, 0, 0);

 HAL_NVIC_EnableIRQ(EXTI15_10_IRQn);

}

This topic has been closed for replies.

1 reply

S.Ma
Principal
April 29, 2019

If you breakpoint and look at the calling stack, what do you see?