Skip to main content
mohsen
Associate
July 19, 2016
Question

STM32F7 TypeDef Error

  • July 19, 2016
  • 2 replies
  • 678 views
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
This topic has been closed for replies.

2 replies

Amel NASRI
ST Technical Moderator
July 20, 2016
Posted on July 20, 2016 at 13:30

Hi Mohsen,

The problem here seems to be related to the configuration of your project.

If you need to use a GCC compiler, I suggest you start with

http://www.st.com/content/st_com/en/products/development-tools/software-development-tools/stm32-software-development-tools/stm32-ides/sw4stm32.html

as IDE.

In the

http://www.st.com/content/st_com/en/products/embedded-software/mcus-embedded-software/stm32-embedded-software/stm32cube-embedded-software/stm32cubef7.html

package, you may find pre-configured projects for this IDE as well as a template project.

You may use them as a start point.

-Mayla-

To give better visibility on the answered topics, please click on "Best Answer" on the reply which solved your issue or answered your question.
Radosław
Associate II
July 20, 2016
Posted on July 20, 2016 at 15:38

Next Good idea from ST.  OMG.

Check if you have defined MCU version.... Look to stm32f7xx.h