Skip to main content
Associate
May 21, 2024
Solved

Defined symbol no take value

  • May 21, 2024
  • 2 replies
  • 1670 views

Hi i have defined a Defined symbol "COST=3" in setting compiler like this

bug stm32 1.png

stm32cube color fine the code but during execution it is like if COST=0

you can watch the execution cursor are on the #else (and numBB are = 0)bug stm32 2.png

 

How can i fix it?

    This topic has been closed for replies.
    Best answer by Muhammed Güler

    You can check it out here.
    https://gcc.gnu.org/onlinedocs/gcc/Preprocessor-Options.html
    I can recommend you to try making your definition in quotes and using spaces.

    2 replies

    Muhammed Güler
    Muhammed GülerBest answer
    Senior III
    May 21, 2024

    You can check it out here.
    https://gcc.gnu.org/onlinedocs/gcc/Preprocessor-Options.html
    I can recommend you to try making your definition in quotes and using spaces.

    sifourAuthor
    Associate
    May 21, 2024

    My bad he juste load bad application