cancel
Showing results for 
Search instead for 
Did you mean: 

A problem in Migrating from VScode to CubeIDE

Roshan
Associate III

Hi all,

I made a project using VSCode but I need to transfer it to CubeIDE, but it is not recognized by cubeIDE so I can't open it, is there any method of migrating from VScode to CubeIDE rather than create from the beginning.

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions

See the post by mattias norlander (ST Employee) of March 4, 2021 at 3:30 PM in the previously-mentioned thread - that tells you how to import a makefile project and get debugging to work.

https://community.st.com/s/question/0D53W00000aqNBiSAM/cubeide-imported-eclipse-c-project-incorrectly-defines-cplusplus

View solution in original post

11 REPLIES 11
Andrew Neil
Evangelist

CubeIDE 1.6.0 can import a makefile project; can VSCode export a makefile ?

Radosław
Senior

Even if you can do this, you will lost many functions in CubeIDE, I recommend to create new project,

I tried it actually it imported the files,

but even it couldn't find the main.h, I included all files and sources from the settings (paths and symbols ), but still unable to detect "main.h", and lots of features are missing.

yes i realised that lots of functions are missing,

but the problem is this project was created by someone else and i had to add some features. File system created by the earlier person is custom method. therefore the it will take while to rearrange. and i am new to STM32.

What functions, exactly, do you think you will "lose" in CubeIDE?

"it couldn't find the main.h"

What do you mean by that?

  • The editor couldn't find it for editing?
  • The code browser couldn't find it for browsing?
  • The compiler couldn't find it for building?
  • other??

You can add a folder to the project as shown in this thread:

https://community.st.com/s/question/0D53W00000aqNBiSAM/cubeide-imported-eclipse-c-project-incorrectly-defines-cplusplus

This stupid forum doesn't allow linking to a specific post within a thread, so here's the detail:

Add a 'Folder' - not a 'Source Folder' - and used the 'Advanced' options to point to the source files location:

0693W000008we0OQAQ.png 

Which gives

0693W000008we3SQAQ.png 

"lots of features are missing"

What features, exactly?

Maybe just stick with VSCode, then?

Radosław
Senior

Importing makefile project, will not have STM32 project nature, debuging will be very hard.

See the post by mattias norlander (ST Employee) of March 4, 2021 at 3:30 PM in the previously-mentioned thread - that tells you how to import a makefile project and get debugging to work.

https://community.st.com/s/question/0D53W00000aqNBiSAM/cubeide-imported-eclipse-c-project-incorrectly-defines-cplusplus