Skip to main content
peterdonchev
Senior
January 13, 2025
Question

STM32CubeMX 6.13.0 wrong code generated for handling EXTI on STM32H747 M4 Core

  • January 13, 2025
  • 4 replies
  • 766 views

STM32CubeMX 6.13.0.
MCU - STM32H747.
LL library selected.

Generating the EXTI2_IRQHandler for the M4 core:

void EXTI2_IRQHandler(void)
{
 /* USER CODE BEGIN EXTI2_IRQn 0 */

 /* USER CODE END EXTI2_IRQn 0 */
 if (LL_EXTI_IsActiveFlag_0_31(LL_EXTI_LINE_2) != RESET)
 {
 LL_EXTI_ClearFlag_0_31(LL_EXTI_LINE_2);
 /* USER CODE BEGIN LL_EXTI_LINE_2 */

 /* USER CODE END LL_EXTI_LINE_2 */
 }
 /* USER CODE BEGIN EXTI2_IRQn 1 */
 
 /* USER CODE END EXTI2_IRQn 1 */
}

The generated code uses LL_EXTI_IsActiveFlag_0_31 and LL_C_EXTI_ClearFlag_0_31 instead of LL_C2_EXTI_IsActiveFlag_0_31 and LL_C2_EXTI_ClearFlag_0_31 for CORE2.

 

4 replies

Ghofrane GSOURI
Technical Moderator
January 14, 2025

Hello @peterdonchev 

First let me thank you for posting.

I'm currently checking this internally and will get back to you as soon as possible.

THX

Ghofrane

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.
mƎALLEm
Technical Moderator
January 14, 2025

Hello @peterdonchev ,

Kindly use </> button to paste a code. See Tips here. I'm editing your post.

Thanks

"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."
Ghofrane GSOURI
Technical Moderator
January 14, 2025

Hello @peterdonchev 

Actually I tried to reproduce the issue mentioned above but I found that CubeMX 6.13.0 works just fine and this is my generated code :

GhofraneGSOURI_0-1736847916394.png

I am sharing my IOC with you to double check my configuration.

I would appreciate it if you could provide your IOC to continue the investigation.

I will be waiting for your feedback.

THX

Ghofrane

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.
peterdonchev
Senior
January 14, 2025

Hello @Ghofrane GSOURI ,
Can I share it with you privately?
Regards,
Peter

Ghofrane GSOURI
Technical Moderator
January 14, 2025

Hello @peterdonchev 

Yes of course .

BR,

Ghofrane

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.
Semer CHERNI
ST Employee
May 20, 2025

Hello @peterdonchev 

The issue is fixed in the latest release of the STM32CubeMX (6.14.0).

KR,
Semer.