2024-04-03 06:07 AM
https://marketplace.visualstudio.com/items?itemName=stmicroelectronics.stm32-vscode-extension
2024-05-27 06:04 AM
@MM..1 wrote:
And remark to end i try install CubeCLT result is over 2GB space on disk, but i maybe plan only build one type cortex...
Agreed. In fact a lot of tooling that we develop today is kind of "clunky" in terms of download and installation size. And as a customer you may just use 1-2 out of a gazillion of features. We have some prototype solutions that will solve this in a much better way in the future.
2024-06-05 12:19 PM
Yes although i belive that a converter would be the best solution to this issue right now i think the most important thing is for there to be a way such that i can still use .ioc files in the IDE to manage middleware and hardware initilization but still build the project with CMake. the previous version of the STM vscode extension provided a way to do that by creating the project as a regular CubeIDE project with the .ioc file configuration and then the VScode extension would add the Cmake build method and the vscode language settings for C. The main problem is that creating a project with Cmake on the Cube IDE does not generate a .ioc file and now the vscode exension does not take regular CubeIDE projects and forces you to create the cmake project in the CubeIDE.
Currently my company is starting a new project and we at are a bit of a stand still with this. Some engineers really want the ease of the .ioc files for hardware configuration, middleware management (mainly freertos) and code generation while others want to have Cmake so that they can use other editors such as vscode/clion/vim etc. Debugging is not to big of an issue since gdb is very common across all environments but we do understand that it is easiest on CubeIDE.
what would you recomend for a system we can all be happy with such that the build system is with Cmake but without sacrificing .ioc file code generation.
2024-06-08 05:50 AM - edited 2024-06-08 05:50 AM
What you write is true. In the best of world's, CubeIDE would have relied on CMake instead of CDT managed projects already 6 years ago when first introduced. But at that point CMake was not that dominant. Consequently we built a full Cube ecosystem with examples based on .cproject/.project files (CDT managed)... And the MX integration inside IDE relies on producing the .cproject/.project format style...
We are considering ripping out the integration of MX and let users rely purely on MX and IDE as stand-alone tools. The only down-side is that customer would need to download and install 2 separate tools. But suddenly the user can use MX to product Makefile, CMake or old-schoold "CDT managed" projects for CubeIDE. And you can update MX and IDE separately as you want... But it is a big direction change. Feedback would be interesting!
@LaloRiojas wrote:what would you recomend for a system we can all be happy with such that the build system is with Cmake but without sacrificing .ioc file code generation.
To reply to your concrete question: My recommendation is that your team:
This is by no means perfect. But given that the constraints are understood, I would still say that this is going to give you the best flexibility. Yet another issue we could solve, and we would solve if we removed MX integration from IDE...
Sorry for the inconvenience. Let me know your thoughts! :)
2024-06-08 07:24 AM
There is an advantage of the ioc editor in STM32CubeIde, it actually works on Macs.
The standalone STM32CubeMX refuses to start unless you give it full superuser Disc Access, something I guess most people are unwilling to do as there is no way a normal application needs that level of access!
2024-06-08 02:17 PM - edited 2024-06-08 02:29 PM
> what would you recomend for a system we can all be happy with
IMHO, a good consultant or coach is a solid way to productivity and happiness of the team. The customer gets all needed tools installed and configured, build system and version control running, Windows/Linux issues settled. Whoever needs .ioc or cmake or a good debugger gets it. Everyone get what they need (or want).
> We are considering ripping out the integration of MX and let users rely purely on MX and IDE as stand-alone tools.
This will be a painful move after all the efforts invested into the integration, but IMHO the right move, hope you won't regret it. This will enable unification with the Eclipse for MCU project, stuff from ARM, partners, and other cool things, like AI assistants. Time of painful changes for many of us ((
2024-06-12 11:58 PM
Hi,
Is there a way to convert a project created with STM32CubeIDE (based on generated Makefiles) to project that could be built with CMake using VSCode Extension?
Regards,
Piotr
2024-06-15 12:30 AM
So far I tend to like the VS Code Extension a lot :)
However, I can't make the full switch to use it until it supports TouchGFX, or the other way around, until TouchGFX is provided with an option to generate CMake and update the project code in the same way as it does for STM32CubeIDE with Make.
Any such plans?
2024-06-15 12:18 PM
”Time of painful changes for many of us”
Indeed… “impact analysis” started. Large companies are not going to complain, they use MX mainly to copy-paste code into their own projects. But, students, small companies and Makers may complain. And 6 years of documentation and tutorials… :grinning_face_with_sweat:
2024-06-15 12:20 PM
It is planned, but far from delivery. We will read the .project/.project files and convert them. First target is towards CMake! That said, it is probably not realistic this year.
2024-06-15 12:26 PM
Request noted, you are not alone to ask, but too few request at this point to gain high priority.
Maybe you can create a separate post in TouchGFX forum section and ask for CMake, then encourage other developers to like your post to fight for prio. That would be my recommendation!
We are customer request driven, even though it may not always seem that way. :upside_down_face: