cancel
Showing results for 
Search instead for 
Did you mean: 

STM Project creation from existing ioc. files

jason21
Visitor

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!

 

1 ACCEPTED SOLUTION

Accepted Solutions
Andrew Neil
Super User

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

View solution in original post

8 REPLIES 8
mƎALLEm
ST Employee

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
Super User

@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.
jason21
Visitor

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.

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.
jason21
Visitor

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

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.
jason21
Visitor

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


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