cancel
Showing results for 
Search instead for 
Did you mean: 

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

THIHA KYAW
Associate III
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
1 REPLY 1
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 Venmo
Up vote any posts that you find helpful, it shows what's working..