cancel
Showing results for 
Search instead for 
Did you mean: 

Nucleo-U5A5ZJ-Q and RNG code generation

DenzilDexter
Associate II

Hello Community,

I have a Nucleo-U5A5ZJ-Q development board and have generated code for it using CubeMX (version 6.12.0).  The generated code contains this for the user button:

void EXTI13_IRQHandler(void)
{
  /* USER CODE BEGIN EXTI13_IRQn 0 */

  /* USER CODE END EXTI13_IRQn 0 */
  BSP_PB_IRQHandler(BUTTON_USER);
  /* USER CODE BEGIN EXTI13_IRQn 1 */

  /* USER CODE END EXTI13_IRQn 1 */
}

 If I enable the RNG in CubeMX and enable its global interrupt and then re-generate the code the above changes to:

void EXTI13_IRQHandler(void)
{
  /* USER CODE BEGIN EXTI13_IRQn 0 */

  /* USER CODE END EXTI13_IRQn 0 */
  HAL_EXTI_IRQHandler(&H_EXTI_13);
  /* USER CODE BEGIN EXTI13_IRQn 1 */

  /* USER CODE END EXTI13_IRQn 1 */
}

Which doesn't compile as H_EXTI_13 is not defined anywhere that I can see in any file.  am I missing something or is this a glitch in CubeMX. If I restore line 6 to its original value then the code compiles.

Any help much appreciated.

0 REPLIES 0