2019-01-02 01:41 PM
I updated CubeMX to 5.0.1 today, then created a new project for the Nucleo-64-STM32L053 board. I'm using Atolic TrueStudio for STM32 v9.2.0 as the IDE and toolchain.
I set up the project for the board, selecting and configuring peripherals, along with FreeRTOS and USB device (virtual com port), then generated the code; I selected the "Advanced" option under "Application Structure" in the project settings. For this project, the firmware STM32Cube_FW_L0_V1.11.0 is being used.
My usual practice is to build the generated project before I start changing things. This revealed a number of problems right off:
My impression is that this is a bug in the tool:
Updates:
2019-01-07 05:42 AM
Hello Daniel,
I tried to follow your steps as well as I could but I don't experience the same issues as you. I don't get any at all, in fact.
However, I didn't get all of these unnecessary files generated with my project which explains why I don't get the related errors. Could you send the .ioc file for the project? Perhaps I can get a better understanding of what's happening from that.
2019-01-07 06:58 PM
Hello, Markus:
Here is an IOC file from another project that I just created at home for an STM32F401RET6 Nucleo-64; it has similar problems.
In this case, I selected the basic directory structure.
It still included the templates, didn't define "ARM_MATH_CM4", and a raft of other failures.
In order to have this one build, I had to:
I'm not 100% sure it's correct, as I've not yet made it do anything except build.
2019-01-11 02:08 AM
Thank you for the file.
It seems to be related to the CubeMX project generation. I'll see if I can get it to their team to look over.
2019-01-11 07:16 AM
An new observation: Last night, I created a virtually identical project to the examples above, and the tool generated a working project (no extra files, no need to add anything in the build settings), so my impression is that there is some randomness that has been introduced in the project generation. If CubeMX wasn't written in Java, I'd say it was an uninitialized variable. I'd have the tool team look at where the decisions are made for which files get copied.
2019-04-02 06:41 AM
Same issue confirmed from me. New project with CubeMX 5.1.0 generated project with all files that I lately removed from build.
Even before I get successful build i renamed that .ioc to get new project, that was generated properly.