2024-08-11 01:49 AM
Is there a guide of how to share a STM32CubeIDE project in github for collaboration?
I tried this for a modified version of the STM32 demo program "FatFs_USBDisk" - to extend/enhance it in a team.
When I adopt the base demo program in github, and someone else clones it, then it can't be compiled.
2024-08-11 02:04 AM
After you clone your project repo on other computer, check that all paths exist on that computer. One possible reason is that the "Cube repository" (where some example projects come from) is located by default in user's private directory. So on another machine, with a different user, this path becomes invalid.
2024-08-11 08:02 AM - edited 2024-08-11 08:24 AM
Exactly - "Path Hygiene". And good practice is to have all project paths relative to project root. If that's a problem, you should take a look at how you organize your projects (because this indicates that after a few years, your company's projects will encounter build rotting issues)