cancel
Showing results for 
Search instead for 
Did you mean: 

How can I transfer a project from STM32CubeIDE to IAR Embedded Workbench?

SMt.1
Associate
 
1 ACCEPTED SOLUTION

Accepted Solutions
S.Ma
Principal

I've done the opposite...

Maybe first make a skeleton project with CubeMX which generates the IAR EWARM project file, possibly with the right target STM32 and package, and cloctree etc... depending on how much you need.

Then generate the code . Open IAR and check the project compile.

Add your source files in the skeleton project folders, then on IAR, add them.

Remember to select the target, the compile options, the compiler search directories and the compiler default passing named arguments. These are the things not to forget.

Also make sure there are no #pragma compiler specific. Think also memory mapping, stack size, etc...

If things are not too complex, you'll get a build with few errors and warnings to cleanup.

Mileage varies, depending on the project complexities...

View solution in original post

1 REPLY 1
S.Ma
Principal

I've done the opposite...

Maybe first make a skeleton project with CubeMX which generates the IAR EWARM project file, possibly with the right target STM32 and package, and cloctree etc... depending on how much you need.

Then generate the code . Open IAR and check the project compile.

Add your source files in the skeleton project folders, then on IAR, add them.

Remember to select the target, the compile options, the compiler search directories and the compiler default passing named arguments. These are the things not to forget.

Also make sure there are no #pragma compiler specific. Think also memory mapping, stack size, etc...

If things are not too complex, you'll get a build with few errors and warnings to cleanup.

Mileage varies, depending on the project complexities...