2026-01-13 4:58 AM
I have a Discovery board B-L072Z-LRWAN1 and I am trying to set up a project using CubeIDE but get the following,
So I check to see if the L0 & LRWAN packages are in the repository,
Yes, they're there. I click OK & Cube carries on setting itself up & up pops the ioc window. I press configure & generate & get some C code but the build option is greyed out.
What am I missing here?
Solved! Go to Solution.
2026-01-14 5:04 AM
OK so no idea why that was happening as a solution though I've upgraded to CubeIDE 2.0 & initialized all the boiler plate code with CubeMX separately. All imported & built with with no issues.
(note: I'm liking the separation of IDE & MX, IDE opens sooooooo much quicker now)
2026-01-13 5:06 AM
What versions of CubeIDE and CubeMX are you using?
Note that CubeIDE v2.0.0 no longer integrates CubeMX - they are now separate, standalone tools:
STM32CubeIDE 2.0.0 new workflow tutorial
IDE Version 2.0.0 - why remove MX ?
2026-01-13 5:15 AM
version 1.17.0
2026-01-13 5:49 AM
Interestingly the examples for both the L0_FW & the LRWAN for the board open up & build with no issues.
2026-01-13 6:13 AM
I guess the examples are already complete - don't rely on stuff installed in the IDE ?
2026-01-13 6:25 AM
No idea, why would Cube not allow a new project to build given that it knows where all the support drivers for the board are?
2026-01-13 6:43 AM
The problem with the new project is code generation - not building ?
2026-01-13 6:57 AM
Well I'm not sure to be honest. I got the warning above when creating a new project but code is generated after a few clicks (as outlined in the OP) but I cant build that generated code as the build options are all greyed out.
2026-01-14 5:04 AM
OK so no idea why that was happening as a solution though I've upgraded to CubeIDE 2.0 & initialized all the boiler plate code with CubeMX separately. All imported & built with with no issues.
(note: I'm liking the separation of IDE & MX, IDE opens sooooooo much quicker now)
2026-01-14 5:33 AM
Hi @NicRoberts ,
I am fairly convincned that the issue is MX/FW related rather that IDE related... Let me explain the process:
If the first step fails, then for new projects you will not even have IDE project files.
The file tree in CubeIDE may show you source code, but without .cproject/.project files there is no description on how to build the projects, consequently the build toolbar buttons would be greyed out.
Since MX failed to detect or download the selected FW version the first step failed, as a consequence you ended up with some source code but broken .cproject file and the consequence is that the IDE has no clue how to build the source tree. It cannot even understand that this file tree is an Eclipse/CDT (CubeIDE) project.
I leave this explanation for other users who may one day this issue so that they can understand the reason why.
I understood that you resolved the issue by upgrading to latest version. Happy to hear things work for you. In theory your old IDE/MX version should also work assuming that the MX "CubeFW download/install" feature plays nicely...
Kind regards, Mattias