Skip to main content
Jansunil
Associate III
February 16, 2023
Question

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

  • February 16, 2023
  • 1 reply
  • 868 views

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

This topic has been closed for replies.

1 reply

Semer CHERNI
ST Employee
February 20, 2023

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.