2020-06-16 02:59 AM
Fatal Error[Pe035]: #error directive: "Please select first the target STM32F4xx device used in your application (in stm32f4xx.h file)" C:\Program Files (x86)\IAR Systems\Embedded Workbench 8.4\arm\src\flashloader\ST\FlashSTM32F4xx\inc\stm32f4xx.h 80
i already choose the my kit STM32F469NI in the options and used in the preprocessor the path of the stm32f4xx.h file.
2020-06-16 06:15 AM
Go look at stm32f4xx.h and see why this error is triggered.
You need to #define STM32F469xx in your preprocessor macros somewhere. Typically this is done by a -DSTM32F469xx argument to the compiler in the options somewhere.
2020-06-16 09:07 AM
the error is this lines:
#if !defined (STM32F40XX) && !defined (STM32F427X) && !defined (STM32F429X)
#error "Please select first the target STM32F4xx device used in your application (in stm32f4xx.h file)"
#endif
as one can see, there is no STM32F469, so that why it got triggered, but why there is no 69 ? and how do i fix it ?
2020-06-16 09:36 AM
2020-06-16 09:49 AM
the code ask for:
#include "stm32f4xx.h"
#include "stm32f4xx_rcc.h"
#include "stm32f4xx_gpio.h"
i fought this ,"stm32f4xx.h" , include my kit.