Skip to main content
Associate
September 22, 2025
Solved

STM Project creation from existing ioc. files

  • September 22, 2025
  • 5 replies
  • 507 views

Hello everyone,

I tried to create an STM project using existing .ioc files from my friend. They suggested choosing the Migrate option, but unfortunately, it didn’t work for me. 

For context:

  • I’m using Windows.

  • The same migration process works perfectly on Mac.

  • When I open the main code, I only see the basic template code that appears when starting a new project—all the code from my friend has disappeared.

  • I’ve already tried reinstalling the STM software, but that didn’t help either.

Has anyone encountered this issue or can suggest a workaround?

Thanks in advance for your help!

 

Best answer by Andrew Neil

@jason21 wrote:
  • I only see the basic template code that appears when starting a new project—all the code from my friend has disappeared.


As @mƎALLEm said, the ioc file contains only the peripheral configurations - so, if you only have the ioc file, the only thing that can be generated is the peripheral initialisation stuff.

If you want the User code written by your friend, you will have to import that separately.

5 replies

mƎALLEm
Technical Moderator
September 22, 2025

Hello @jason21 and welcome to the community,


@jason21 wrote:
  • When I open the main code, I only see the basic template code that appears when starting a new project—all the code from my friend has disappeared.


If you mean by the basic code: the peripheral initialization, That's normal if you didn't bring the complete project from your friend. The code contains generated code but a customized code written by your friend as well.

So the question is: did you retrieve the ioc only or the complete project from your friend?

"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."
Andrew Neil
Andrew NeilBest answer
Super User
September 22, 2025

@jason21 wrote:
  • I only see the basic template code that appears when starting a new project—all the code from my friend has disappeared.


As @mƎALLEm said, the ioc file contains only the peripheral configurations - so, if you only have the ioc file, the only thing that can be generated is the peripheral initialisation stuff.

If you want the User code written by your friend, you will have to import that separately.

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
jason21Author
Associate
September 22, 2025

Hi everyone,

Thanks for the feedback. I got one set of folder from my friends and we also did together. He did first importing and also migrating. Didnt work at all but. Weird is my other friend also did same like me but in mac and worked perfectly.

mƎALLEm
Technical Moderator
September 22, 2025

Is that possible to share that folder (the complete project) here?

"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."
jason21Author
Associate
September 22, 2025

No, its a confidential file from our company where we do the bachelor thesis:(. I will try again, maybe will work

mƎALLEm
Technical Moderator
September 22, 2025

You can send it to me in private if you want.

"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."
jason21Author
Associate
September 22, 2025

Yes, i just import the whole file and worked. Thank you for helping me:)

mƎALLEm
Technical Moderator
September 22, 2025

@jason21 wrote:

Yes, i just import the whole file and worked. Thank you for helping me:)


So now accept the solution (the comment that answered your question).

"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."