2018-05-19 12:50 AM
..\stm32f4 library\CMSIS\Device\ST\STM32F4xx\Include\stm32f4xx.h(122): error: #35: #error directive: 'Please select first the target STM32F4xx device used in your application (in stm32f4xx.h file)'
plezse give me the solution of this error
2018-05-19 05:35 AM
It means your device is undefined.You need to add a preprocessor symbol to your project.
If you are using keil.
Project ->options for target 'project name' -> c/c++Then add a symbol STM32F4xx symbol. (Replace the xx with your device type.)
You can look in stm32f4xx.h file for the options.
2018-05-19 12:58 PM
The STM32F429I-DISCO examples have the following defines in the project
USE_STDPERIPH_DRIVER,STM32F429_439xx,USE_DEFAULT_TIMEOUT_CALLBACK
USE_STDPERIPH_DRIVER,STM32F429_439xx,USE_STM32F429I_DISCO