cancel
Showing results for 
Search instead for 
Did you mean: 

BlueMicrosystem2_V2.2.0 build with SystemWorkbench

Dilbert K
Senior
Posted on May 19, 2017 at 03:32

I just downloaded the BlueMicrosystem2_V2.2.0 and build with AC6 (System Workbench).

The project I trying is :

BlueMicrosystem2_V2.2.0\Projects\Multi\Applications\BlueMicrosystem2\SW4STM32\STM32L476RG-SensorTile\STM32L4xx-SensorTile

What I have noticed is following :

#ifdef STM32_NUCLEO

0x80,

#elif STM32_SENSORTILE

0x02,

#endif /* STM32_NUCLEO */

My understanding in gcc, '#elif' would not be supported.  Since the project is using the Defined Symbol options.

I have to change it to following in order to have the code build.

      #elif defined STM32_SENSORTILE

3 REPLIES 3
Dilbert K
Senior
Posted on May 19, 2017 at 21:01

Found the easier method.  Just update the defined symbol in gcc compiler will fix the problem.

so the #elif would be checking for > 0

STM32_SENSORTILE = 1 

Posted on December 21, 2017 at 01:13

But where is that defined? - when I right-click and hit 'Open Decleration' it complains it is not found. Where is this painful little thing defined ?

Thanks

Posted on January 05, 2018 at 18:03

this is under SystemWorkbench  'Project\Properties\C/C++ Build\Settings\Symbols' not in header file