Skip to main content
Associate III
January 25, 2024
Question

I need on the same project on two different machine: Windows and Mac. What to git track?

  • January 25, 2024
  • 11 replies
  • 3483 views

My idea is to git track the following folders

Core

Drivers

Middleware

and the two *.ld files so that I should be able to work seamlessly on both the Windows and Macos machines.

However, I am not sure if I should track also the .ioc file. Any hints? 

    This topic has been closed for replies.

    11 replies

    ubaldotAuthor
    Associate III
    January 27, 2024

    > Yes this adds robustness, in a sense that all source files are contained in the project tree. But consider that these library files are updated by ST, then you'll have to update these files in your project as well.

    ah good to know! I will do that!

    > Re. these warnings like "warning: _close is not implemented and will always fail": this is a known issue with the runtime library, should be fixed in next version. Meanwhile you can ignore these warnings (because no one uses _close, _exit etc. in embedded  software, nobody cares that they may fail) - or use an older toolchain that does not have this issue.

     

    Good to know.

    At the end, I made some tests this morning and I found the sweet spot with the "classic" formula Makefile + headers + source. In this way I should ensure enough portability and I am free to use any other editor that I wish, not necessarily IDE. 

    Many thanks for your tips! If you have more don't hesitate to add more material to the thread.