2015-04-29 11:36 AM
Hey,
i encountered a problem using the CubeMX Eclipse plugin. When I made some changes to the startup code using the eclipse plugin and generate the Project code, opening braces are removed. Maybe this is a known problem and fixed in the standalone version. Unfortunatly I'm not able to find out which version of CubeMX is integrated in eclipse plugin. Code like thisif
(...)
{
.....
}
is changed to
if
(...)
...
}
Has anybody a workarround?
Edit:
I'm creating a ''True Studio'' project with CubeMX project settings.
Regards,
Sebastian
#cubemx-braces-problem
2015-04-29 11:46 AM
I haven't encountered that using IAR's EWARM without Eclipse.
2015-05-04 12:58 PM
#define OPENBRACE {
if (...)
OPENBRACE
...
}
I wonder if this has been fixed in the latest release.
2015-05-05 02:33 AM
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2015-05-05 05:24 AM
#define OPENBRACE {
if (...)
OPENBRACE
...
}
I wonder if this has been fixed in the latest release.
I admire your inventiveness and your capability to suffer ...
2015-05-05 08:41 AM
I had 10 opening braces that STM32CubeMX would remove whenever I generated code. This was much less suffering than replacing them each time. ;)
2015-05-05 11:11 AM
I would not consider a tool that can't even generate syntactically correct code.
However, when it comes to MCUs, I'm fortunately not bound to any company restrictions.2015-06-03 08:51 AM
Hey,
sorry that i haven't answered for that long period.Updating the CubeMX Eclipse Plugin solved my problem.Regards,Sebastian2015-06-04 04:27 AM
I much prefer syntactically incorrect than subtly wrong. In other cases (such as wrong DMA channel) I purposely injected syntax errors by spreading variable definitions across the ''BEGIN USER CODE'' marker to remind me to fix the ADC channel assignment whenever I regenerated code.