cancel
Showing results for 
Search instead for 
Did you mean: 

Defined symbol no take value

sifour
Associate

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?

1 ACCEPTED SOLUTION

Accepted Solutions
Muhammed Güler
Senior III

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.

View solution in original post

2 REPLIES 2
Muhammed Güler
Senior III

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.

sifour
Associate

My bad he juste load bad application