Skip to main content
Visitor
July 23, 2026
Question

Ho do I configure STM32CubeMX to use relative path to firmware on code generation?

  • July 23, 2026
  • 1 reply
  • 15 views

Hi, i would like to use relative path to firmware. UI has option to enter “Firmware Relative Path” but only option is to select trough Browse dialog and resulting paths in cmake are absolute. There is no way to enter path manually, as UI applet for that is read-only.

Also i have noticed, that clone of firmware without submodules causes CubeMX to error out with cryptic message on code generation.

1 reply

Ghofrane GSOURI
ST Technical Moderator
July 23, 2026

Hello ​@pr.tsmaz 

To help me better assess your request regarding the Firmware Relative Path field, could you please provide some additional details about your use case?

I would appreciate clarification on the following points:

- What is the intended workflow in which you need to use a relative path for the firmware location?

- Why is a relative path necessary in your environment instead of an absolute path?

- How does this affect your development process?

Regarding the second point :”cloning the firmware without submodules causes CubeMX to fail with a cryptic error during code generation”:

-Are any folders missing compared to a complete firmware package?

- If possible, could you  provide the exact error message shown by CubeMX during code generation?

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.