Skip to main content
Senior III
May 6, 2026
Solved

CubeMX GPIO Init doesn't respect pin context

  • May 6, 2026
  • 2 replies
  • 194 views

So I have a series of PIN configured as Application and/or Boot only but, for some reason, the CubeMX generates the code on both main.h in Appli and Boot

i.e.

nico23_0-1778062692783.png

I have PC0 set as Application only context but I found it in the Boot as well

nico23_1-1778062748292.png

 

Best answer by Mahmoud Ben Romdhane

Hello @nico23 

Let me thank you for bringing this issue to our attention.

The issue has been escalated to the development team under this internal ticket: CDM0062424

I will let you know as soon as the problem is solved.

Thanks.

Mahmoud

 

2 replies

Technical Moderator
May 6, 2026

Hello @nico23 

Let me thank you for posting.

For more investigation, could you please 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.
nico23Author
Senior III
May 6, 2026
Technical Moderator
May 6, 2026

Hello @nico23 

Let me thank you for bringing this issue to our attention.

The issue has been escalated to the development team under this internal ticket: CDM0062424

I will let you know as soon as the problem is solved.

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.
nico23Author
Senior III
May 11, 2026

I'm seeing the issue has been marked as resolved.

Has a fix been implemented in the next CubeMX version?