2025-05-14 2:14 AM
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.
2025-05-15 4:48 AM
Hello @DenzilDexter ,
First let me thank you for posting and welcome to the ST Community.
For more investigation, I suggest that you provide your Ioc.File.
Thanks.
Mahmoud
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2025-05-15 5:14 AM
Hi @DenzilDexter,
I reproduced the same example that you did and I didn't have any problems after enabling RNG.
Here is a screenshot before enabling RNG:
and her is a screenshot after enabling RNG:
I think you should update the version of CubeMx that you are using (the latest version is 6.14.1).
Thank you.
ELABI.1
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.