While testing blink example I found the following issue:
1) stm32l1xx.h:167:3: error: #error "Please select first the target STM32L1xx device used in your application (in stm32l1xx.h file)"
This seems to relate to a missing definition in compiler preprocessor as when I read through the listed file about it has the comment
I have reviewed the instructions and don't see any information adding this definition anywhere./* Tip: To avoid modifying this file each time you need to switch between these
devices, you can define the device in your toolchain compiler preprocessor.
*/
Adding #define STM32L151xBA to both stm32l1xx.h and stm32_def_build.h gets it to compile but I have hard coded it for this board, anyone know how to set it correctly for a variant?