cancel
Showing results for 
Search instead for 
Did you mean: 

How to set value of a macro via the .extsettings?

Jansunil
Associate II

Hi Team,

I am using the .extsettings to pass values of certain macros to the code.

I am able to achieve the following by using the "Define=" parameter in the [others] section in .extsettings :

#define ABCD

However, I do not see the values of macros getting reflected on CubeIDE:

#define ABCD 1

The macro name gets reflected on the IDE settings, but the value doesn't.

It would be great if there are any inputs on how can macro values be set via the extsettings?. Thanks in advance.

Regards,

Janani

1 REPLY 1
Semer CHERNI
ST Employee

Hello @Jansunil​ 

First let me thank you for posting.

Try to check the STM32CubeMx user manual UM1718 paragraph 6.4 Additional settings for C project generation which contains explanations about the usage of .extsettings.

Best regards,

Semer.

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.