2016-07-19 12:53 PM
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-board2016-07-20 04:30 AM
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 as IDE.In the 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 Accept as Solution on the reply which solved your issue or answered your question.
2016-07-20 06:38 AM
Next Good idea from ST. OMG.
Check if you have defined MCU version.... Look to stm32f7xx.h