Skip to main content
Mikk Leini
Senior
January 16, 2026
Solved

CubeMX does not remember free pins generation context

  • January 16, 2026
  • 1 reply
  • 305 views

STM32CubeMX v6.16.1 has a small bug. Under Project Manager - Code Generator - HAL settings is an option to pick under which context the free pins should be set as a analog. I am using STM32N6 which has 3 contexts (FSBL, App, ExtMemLoader).

MikkLeini_0-1768568318621.png

The problem is that CubeMX doesn't store (or recall) this setting. I want to set them under Appli, but on every program start it sets the context to FSBL. After doing same "fix" for tens of times it gets quite annoying.

Best answer by Souhaib MAZHOUD

Hello @Mikk Leini 

Thanks for bringing this issue to our attention!

This issue has been raised internally to the dedicated team for further investigation. (Ticket 225346 This is an internal tracking number and is not accessible or usable by customers.)

KR, Souhaib

1 reply

Souhaib MAZHOUDBest answer
Technical Moderator
January 16, 2026

Hello @Mikk Leini 

Thanks for bringing this issue to our attention!

This issue has been raised internally to the dedicated team for further investigation. (Ticket 225346 This is an internal tracking number and is not accessible or usable by customers.)

KR, Souhaib

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.