Loading...
 

Zephyr project on STM32

   Zephyr Workbench, a VSCode extension to manage Zephyr on STM32.
It enables users to easily create, develop, and debug Zephyr applications.
Main features:
  • Install host dependencies.
  • Import toolchain and SDK.
  • Create, configure, build and manage apps.
  • Debug STM32.
You can directly download it from the VSCode marketplace
For more details, visit the Zephyr Workbench

System Workbench for STM32


bug report - OSX/Windows compatibility

Hi,

A project created on Mac could not be properly openned on windows and vice verse. Perhaps, Linux is also affected.

Specifically in the “.cproject” file the build configuration sections look differently:

For windows:
<storageModule moduleId="refreshScope" versionNumber="2">
		<configuration artifactName="${ProjName}" configurationName="Debug">
			<resource resourceType="PROJECT" workspacePath="auPilot-SPRacing"/>
		</configuration>
		<configuration configurationName="Release"/>
	</storageModule>

For OSX
<storageModule moduleId="refreshScope" versionNumber="2">
		<configuration configurationName="Debug">
			<resource resourceType="PROJECT" workspacePath="auPilot-SPRacing" />
		</configuration>
		<configuration configurationName="Release" />
	</storageModule>


Adjucting these lines to match the current OS seems to solve the issue.

Cheers
Kirill

Hello Kirill,
May you describe a way to reproduce?
Do you create projects from CubeMX or directly in Eclipse?
How do transfer the project from Mac to Windows and vice verse?
Waht is the SW4STM32 version?
Cheers
Vetch


Hello Vetch,

Its easy to reproduce - just create a project with CubeMX on OSX, import to SystemWorkbench, save it.
Then, try to open the project on Windows and build it - you’d get “no makefile” because it does not have a valid build configuration anymore.

I’ve attached an example of .cproject from Mac.

All versions of SysWorkbench and Cube MX are very recent - I reinstalled them yesterday

Cheers
Kirill


Hello Kirill,

Do you mean you copied/pasted the project from OSX to Windows?
On my side, I did the following steps without any issue :
- Generate a project from CubeMX on OSX;
- Import this project in SW4STM32 on OSX;
- Compile it (without error) in SWSTM32 on OSX;
- Right-click on the project >> Export > General >> Archive File ;
- Copy the archve (zip) in Windows and uncompress it;
- Import the project in SW4STM32 on Windows;
- Compile it (without error) in SWSTM32 on Windows;

So the Import/Export feature to transfer project through OSs is fully functional.
Cheers
Vetch


Hi Vetch,

I’m using GIT to syncronise code. Perhaps, if you do “Export” you won’t see this problem.

In my case, I checkout the code in Windows that has been pushed from Mac. Of course, the paths are screwed, but they are easy to re-generate with the CubeMX.

The only problem with the above is in “.cproject” file. While it theory (let me know if I’m wrong) it must have the same structure in both OSX and Windows, it is not the case.

Here is what I did:
- Generate a project from CubeMX on OSX;
- Import this project in SW4STM32 on OSX;
- Compile it (without error) in SWSTM32 on OSX;
- Push to a GIT server;
- Pull the project from the GIT in Windows, then open .iot file with CubeMX and re-generate the project to refresh paths in Windows style;
- Import the project in SW4STM32 on Windows;
- Compile it (without error) in SWSTM32 on Windows;

Cheers
Kirill


Vetch,

Are you saying the project files are NOT compatible between Windows and Mac? Because having an export/import capability doesn’t make them compatible.

I’m doing the same thing that Kirill is doing with GIT, even though the problem I’m dealing with is slightly different than his. I’m a developer using OpenSTM32 on the Mac (where it seems to run much faster and more smoothly), some of our other developers are using Windows, on the same project. Export/Import does not work for this model of development.

Is the way we are using it not supported? At a distance, it seems much easier to make the project formats compatible than to use an export/import facility. So I’m a little confused.


 

Newest Forum Posts

  1. Можно ли установить камин на балконе или лоджии? by Grand3kpdErorb, 03:38
  2. reservation car service Seattle by Jamesprede, 2025-05-01 10:06
  3. Last day: drone bonus by Danielrug, 2025-04-19 16:55
  4. SPI on Nucleo_STMH533RE by higginsa1, 2025-03-25 07:37
  5. SPI on Nucleo_STMH533RE by royjamil, 2025-03-23 11:31
  6. SPI on Nucleo_STMH533RE by higginsa1, 2025-03-23 09:33
  7. Configuring DMA for ADC in SW? by sam.hodgson, 2025-03-04 12:58
  8. Insightful Perspectives on This Subject by davidsycle, 2025-03-04 05:45
  9. Build a project in "release" mode by info@creosrl.it, 2025-02-20 18:12
  10. Build a project in "release" mode by info@creosrl.it, 2025-02-20 17:05

Last-Modified Blogs