Did any one know about this error "stm32 family not defined" and how to resolve it ? I am using stm32f4 discovery and keil uvision4. thanks.
What exactly are you building? What do the lines at/around the error look like? Do you need to specify some command line defines to the compilers? Are you doing that?
Observe the makefile has -DSTM32F4 on the compiler command line
libopencm3 has something along the lines of
#if defined(STM32F1) # include <libopencm3/stm32/f1/rcc.h> #elif defined(STM32F2) # include <libopencm3/stm32/f2/rcc.h> #elif defined(STM32F4) # include <libopencm3/stm32/f4/rcc.h> #else # error "stm32 family not defined." #endif
You fail to define STM32F4 in your C/C++ options pane, and surprise, it fails
Thanks Westonsupermare Pier. Can you please tell me how to get rid of this?
Options -> C/C++ -> Preprocessor Symbols -> Define -> STM32F4