2024-01-25 11:56 AM
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?
2024-01-27 08:44 AM - edited 2024-01-27 08:49 AM
Re. a makefile and STM32Programmer_CLI for programming - both are good ideas. STM32Programmer_CLI has documentation, just in case somebody will wonder how to use it))
> I selected "Copy all used libraries into the project folder" ... just to add some robustness and to be sure that I won't miss anything.
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.
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.
2024-01-27 08:56 AM
> 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.