cancel
Showing results for 
Search instead for 
Did you mean: 

Importing SW4STM32 projects

arminBMRT
Associate II

I am trying to import and old sw4stm32 (ac6) project into stm32cubeide 1.18.1 but it does not work.

I have tried Migration guide from System Workbench to STM32CubeIDE, UM2579. I can select the import project -> general -> import ac6 systemworkbench for stm32 project. I select the folder with the code and click finish but nothing happens. I do not get any error of success messages and no project appears.

Most of the tutorials/posts are 3 to 6 years old. Is there a new way to import the projects? Is there a log file so I can troubleshoot this?

6 REPLIES 6
Andrew Neil
Super User

Welcome to the forum.

Please see How to write your question to maximize your chances to find a solution for best results.

 


@arminBMRT wrote:

Most of the tutorials/posts are 3 to 6 years old. Is there a new way to import the projects?


That's around when SW4STM32 was abandoned in favour of CubeIDE.

I guess the assumption is that anyone who had projects to migrate will have done it by now - hence they haven't been maintained/updated.

Do you still have a working SW4STM32 installation?

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

Can you post the example you're trying to import?

I remember opening the .project file seemed to work.

Creating a new project and copying over code is an alternative.

If you feel a post has answered your question, please click "Accept as Solution".
Pavel A.
Super User

I select the folder with the code and click finish but nothing happens. 

Does this folder contain .project and .cproject files? sometimes these files are in a subfolder of the project files.

 

arminBMRT
Associate II

@Andrew Neil Thanks, yes I have an old laptop with the working installation. Is there any way to export it from there?

@TDK Ok this seems to work somewhat. I do get the files loaded but the build says: "Nothing to build for project" I can unfortunately not share the project.

@Pavel A. Yes those files are in the folder but the import does nothing with those I think.

I will try today to update the references in the in the (partially?) imported project 


@arminBMRT wrote:

I have an old laptop with the working installation. Is there any way to export it from there? 


I don't know.

But at least that gives you a working reference as a last resort if you have to re-create the project from scratch in CubeIDE...

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.
arminBMRT
Associate II

Thanks. 

I did not get the importing to work correctly. So I decided to recreate the project from the source manually.

I have tried switching the project to visual studio code with the plugins (going for a modern IDE). I have got it to compile but unfortunately the ethernet PHY was changed in CubeMX. It now only has 2 drivers loaded, which are not on my board. The option to create a custom PHY was removed, so I would need to implement my own driver. This is possible but out of scope for the current project.