Question
STM32F7 TypeDef Error
Posted on July 19, 2016 at 21:53
I want to use STM32F767ZI on Nucleo board. I used the ARM GCC in Eclise (Microsoft Windows 10). I wrote following code to test the compiler
&sharpinclude <stm32f7xx.h>
&sharpinclude ''stm32f7xx_hal.h'' // Sample pragmas to cope with warnings. Please note the related line at // the end of this function, used to pop the compiler diagnostics status. &sharppragma GCC diagnostic push &sharppragma GCC diagnostic ignored ''-Wunused-parameter'' &sharppragma GCC diagnostic ignored ''-Wmissing-declarations'' &sharppragma GCC diagnostic ignored ''-Wreturn-type'' int main (int argc, char* argv[]) { // HAL_Init(); // Infinite loop while (1) { } } I see a lot of errors related to TypeDef. For example:unknown type name 'ADC_TypeDef' stm32f7xx_hal_adc.h /c6/include line 210 C/C++ Problem
unknown type name 'CAN_TypeDef' stm32f7xx_hal_can.h /c6/include line 223 C/C++ Problem unknown type name 'CEC_TypeDef' stm32f7xx_hal_cec.h /c6/include line 190 C/C++ Problem ... #stm32f767zi-nucleo-board