AnsweredAssumed Answered

STM32CubeMX NVIC setting

Question asked by NStuff on Jan 19, 2016
Latest reply on Feb 5, 2016 by STM32Cube-T
I ran my project settings through the CubeMX program to see if there would be any difference in the settings CubeMX makes. I made one observation that seemed worth mentioning. 

The systick IRQ priority is set twice:

in main.c:
void SystemClock_Config(void)
{..........
  /* SysTick_IRQn interrupt configuration */
  HAL_NVIC_SetPriority(SysTick_IRQn, 0, 0);
}

in stm32fxxx_hal_msp.c:
void HAL_MspInit(void)
{
  /* USER CODE BEGIN MspInit 0 */


  /* USER CODE END MspInit 0 */


  __SYSCFG_CLK_ENABLE();


  /* System interrupt init*/
  /* SysTick_IRQn interrupt configuration */
  HAL_NVIC_SetPriority(SysTick_IRQn, 0, 0);


  /* USER CODE BEGIN MspInit 1 */


  /* USER CODE END MspInit 1 */
}

To me, this seems wrong. In my working project, I have it set in the MSP file and not in main. 

Has someone experienced this and have any insight on this?


Outcomes