Skip to main content
THIHA KYAW
Associate III
September 26, 2017
Question

stm32f769i_discovery.h(315): error: identifier ''uint32_t'' is undefined

  • September 26, 2017
  • 1 reply
  • 598 views
Posted on September 26, 2017 at 04:04

Hi,

When I add stm32f769i_discovery.h, I got the following error.

compiling stm32f7xx_hal_msp.c...

..\Drivers\BSP\STM32F769I-Discovery\stm32f769i_discovery.h(307): error: &sharp20: identifier 'uint32_t' is undefined

uint32_t BSP_GetVersion(void);

..\Drivers\BSP\STM32F769I-Discovery\stm32f769i_discovery.h(315): error: &sharp20: identifier 'uint32_t' is undefined

uint32_t BSP_PB_GetState(Button_TypeDef Button);

Please help me how I can solve it.

I use keil 5.

Regards,

Thiha Kyaw

#stm32f769i_discovery
This topic has been closed for replies.

1 reply

Tesla DeLorean
Guru
September 26, 2017
Posted on September 26, 2017 at 04:56

In main.h

/* Define to prevent recursive inclusion -------------------------------------*/

#ifndef __MAIN_H

#define __MAIN_H

  /* Includes ------------------------------------------------------------------*/

/* USER CODE BEGIN Includes */

#include 'stm32f7xx.h' // rather than #include 'stm32f7xx_hal.h'

#include 'stm32f769i_discovery.h'

/* USER CODE END Includes */
Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..