cancel
Showing results for 
Search instead for 
Did you mean: 

doesn't reach infinite loop and stop in interrupt setting

MYu
Associate II

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);

}

1 REPLY 1
S.Ma
Principal

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