Skip to main content
andre239955_stm1_stmicro
Associate III
April 17, 2020
Question

I'm using new STM32 IDE and apparently he doesn't care of active build configuration

  • April 17, 2020
  • 3 replies
  • 1757 views

I have two configuration, one for debug and one for release,

Debug is the first one, when I change to release IDE doesn't care about that and continue to use Debug compilation parameters.

It's really boring and dangerous

Can you check on your side?

Thank-you

This topic has been closed for replies.

3 replies

Pavel A.
Super User
April 17, 2020

Cannot reproduce in v 1.3.1. Switching configurations works.

-- pa

andre239955_stm1_stmicro
Associate III
April 18, 2020

Hi,

I redo some tests this morning and as I see the issue seems to be located in the editor it self, for instance a 'DEBUG' symbol that is not defined in release is still considered. Compiled code seems to be ok. Have look in the attached in the screen capture.

Pavel A.
Super User
April 18, 2020

Aha. This actually looks like indexer issue: it does not follow the active configuration, so the #ifdef'ed section remains shadowed.

Try to re-index and check the indexer settings in Eclipse.

-- pa

andre239955_stm1_stmicro
Associate III
April 19, 2020

:grinning_face: 0693W000000W3NMQA0.png

changing to 'Use active build configuration' fix my problem.

When I look in the project indexer I cannot find explanation of the previous behaviour or maybe I'm not looking at the right place ;)

0693W000000W3NWQA0.png

I have the impress that the project settings was referring to general settings and general settings was referring to the project settings...

Thanks