Skip to main content
Associate II
November 26, 2025
Question

CubeMX: How to set generated IAR project name ?

  • November 26, 2025
  • 2 replies
  • 259 views

Hi,
I'm using CubeMX 6.16.0 with the EWARM setting.
When I click "Generate Code," it creates the IAR project with the default name "project.eww."
I open the project with IAR and save it with a new name.
Then I click the "Generate Code" button on CubeMX, and it regenerates the workspace name, again as "project.eww."

Is it possible to set the IAR project name from CubeMX to something other than "project.eww"?

Thanks

2 replies

TDK
Super User
November 26, 2025

Not directly. You could rename it via a post-code generation script.

"If you feel a post has answered your question, please click ""Accept as Solution""."
AndreaTWAuthor
Associate II
November 27, 2025

Good idea but a bit complicated, not easy to manage among work colleagues

Chris21
Associate II
November 26, 2025

It does seem odd that the Project Name is not used for the workspace file.  

You could ignore the project.eww and use your new named workspace file, nothing will change in project.eww.

AndreaTWAuthor
Associate II
November 27, 2025

If I save the IAR project with another name (e.g. prova.eww), when I use CubeMX to "Generate code" it deletes the project "prova.eww" with "project.eww".

Chris21
Associate II
December 1, 2025

-> it deletes the project "prova.eww"

CubeMX generated a new "project.eww" but did not delete the eww file that I renamed.