Open jaygitdev opened 4 years ago
These scripts were meant to be used with default CubeMX outputs and file locations. This means that Makefile is expected to be located at the root of the directory, as normally generated by CubeMX. Although it would be possible to ask user whre Makefile is located, I assume this would cause a lot of problems (as you mentioned).
But hey, you can simply try it out! Set BP at ideScripts\utilities.py:192 and override makefilePath
variable with your custom location using debug panel.
Anyway, at the time this project was my main IDE, CubeMX had virtually no settings for Makefile. In fact, I had a lot of troubles when I was modifying source list in VS Code, while regenerating project in CubeMX. Seems like Cube MX internally cache makefile data and must be re-opened to acknowledge Makefile file changes by VS Code. That was one of the main reasons for me to move to their IDE, although I love VS Code.
Try:
.ioc
file with notepad. I assume this values are relevant. Do not forget to reopen CubeMX.
ProjectManager.PreviousToolchain=
and
ProjectManager.ToolChainLocation=
I'am not maintaning this project anymore, but, don't be afraid to take a deeper look into it - it is simple python after all. :) Good luck.
Hello! I ran into an issue when following your guide. Full disclosure, I used an existing project that had a file that is kept in the debug folder rather than the root folder (as your update file expected). My solution was to move the makefile to the root directory (which could cause issues with the links if it's looking for paths relative to another folder).
What's the best way to handle this? Do I need to adjust the makefile to make all the paths relative to the root folder? Is there a way to have STM32CubeIde output a makefile in the root directory from an existing project? Is there a way to change an ideScript file to change where it's looking for the makefile? And if so, would it be possible to have the script file ask the location of the makefile?
Below is the output I received:
Thanks!