2017-05-18 06:32 PM
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
2017-05-19 12:01 PM
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
2017-12-20 05:13 PM
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
2018-01-05 10:03 AM
this is under SystemWorkbench 'Project\Properties\C/C++ Build\Settings\Symbols' not in header file