2019-10-30 06:37 PM
Update: Complete bad generated project attached, picture of build failure added.
Note this problem is produced with the CubeMX plug-in inside the IDE, not the stand-alone CubeMX.
F439, latest CubeIDE, included RubeMX 5.4.0, and HAL/LL stuff all downloaded in last couple days.
Attached IOC generates code with many bugs:
This is absolutely, absurdly, and completely broken.
Has anybody ever tested any of this software?
STM, Please confirm you have reproduced the above problems and filed at least 150 tickets,
Thanks,
Best Regards, Dave
Build results:
2019-10-31 12:29 AM
Dave,
I'm pleased to say relying on your shared .ioc file all is just working nice. I've got a try relying on latest STM released material (MX 5.4.0 & CubeIDE 1.1.0 pair).
1) I've generated CubeIDE project starting from CubeMX (just doing "File>Load" then "Generate Code")
2) I've imported then such project within CubeIDE
3) I've just build it …. leading to compile process success !!!
Process sounds to me quite obvious & functional.
More details about your usage …. may help to dig into issue you may face … then maybe STM may have some ticket to log
Br.
2019-10-31 05:51 AM
@Cartu38 OpenDev - Thanks for taking the time to try this and delighted it worked for you.
Can you tell me precisely what steps you used from the IOC file?
I have the STMCubeIDE v1.1.0, with the included 5.4.0 CubeMX plug-in.
I do not have a stand-alone version of CubeMX installed; is that what you used???
I do not see how to start a new project inside the IDE starting with an IOC.
Thanks,
Best Regards, Dave
2019-10-31 07:40 AM
@Markus GIRDLAND, @Amel NASRI - Anybody have any idea why this has gone off the rails? Or how to generate a working project from the IOC?
Thanks,
Best Regards, Dave
2019-10-31 08:29 AM
Dave,
Yes I've used CubeMX standalone to get success playing with your .ioc file.
Trick is according your file content no choice … CubeIDE is not able to generate a project from because some specific project mode requirement Inside.
Your project once generated will be fully supported by CubeIDE but CubeIDE not able to generate it by itself.
Magic parameter within your .ioc fiel is : ProjectManager.UnderRoot=false
If you really want to rely only on CubeIDE and if such parameter is not so important to you please have try to hack your .ioc file doing: ProjectManager.UnderRoot=true
Now let's play with CubeIDE ONLY:
1) Create a brand new common Eclipse project/ File > New Project then General Project type
2) Mandatory to set as project name the same you have within your .ioc file (not your .ioc file name … takes care): F439_Nucleo_LCD
3) Let's copy your .ioc file within such project setting same file name as your project name: F439_Nucleo_LCD.ioc
4) Double click on such .ioc file … .ioc editor should open
5) Let's request code generation then ...
6) You're done … let's compile …. on my side leading back to compile success
Enjoy !
PS: I would let STM guys commenting about ProjectManager.UnderRoot=true/false stuff ….
2019-10-31 08:38 AM
@Markus GIRDLAND, @Amel NASRI, @Cartu38 OpenDev - I confirm that if the standalone version of CubeMX 5.4.0 is used to generate the project, it compiles AOK as @Cartu38 OpenDev mentions above. Unfortunately, the CubeMX 5.4.0 plug-in within the STM32CubeIDE generates the non-working project as above. So work-around for now is use the standalone version.
STM, Please confirm you have reproduced and ticketed the issues above,
Thanks,
Best Regards, Dave
PS: When run, generated code crashes immediately inside MX_LWIP_Init(); but that's yet a different problem...
2019-10-31 08:42 AM
@Cartu38 OpenDev - Do you know the exact meaning of the IOC parameter ProjectManager.UnderRoot ???
2019-10-31 08:50 AM
Would say rely on CubeMX documentation for. Such parameter in sync with checkbox MX UI is promoting close to project manager toolchain selection combobox.
Related to some project structure option ...
2019-10-31 09:53 AM
From my understanding is under root set to true or false will look like the same within IDE but file system organization about your project material will not be same.
If non under root (sounds stands for non under "project" root) some files (.ioc, .c / .h files managed by CubeMX) will be set at same level as your IDE project repository.
If under root (sounds stands for under "project" root) all project files are children of your project repository.
Up to you then ...
2020-01-10 12:51 AM
STM32CubeIDE 1.2.0 is now supporting from .ioc project creation feature !