AnsweredAssumed Answered

STM32F7 TypeDef Error

Question asked by Mohsen on Jul 19, 2016
Latest reply on Jul 20, 2016 by dembek.radoslaw.001
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

#include <stm32f7xx.h>
#include "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.
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wunused-parameter"
#pragma GCC diagnostic ignored "-Wmissing-declarations"
#pragma 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 ...


Outcomes