We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hello, I am new to using uVision and am trying to learn to program my stm32f746. However, when trying to build example projects to familiarize myself with uVision development I am confronted with these #define errors. I have already fixed previous errors bringing the number of errors from 7 to 3. Any suggestions? Any help would be greatly appreciated!
C:/Keil_v5/Pack/Keil/STM32F7xx_DFP/2.16.0/Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_rcc_ex.c(227): error: use of undeclared identifier 'LSE_STARTUP_TIMEOUT' 227 | if((HAL_GetTick() - tickstart ) > RCC_LSE_TIMEOUT_VALUE) | ^C:/Keil_v5/Pack/Keil/STM32F7xx_DFP/2.16.0/Drivers/STM32F7xx_HAL_Driver/Inc\stm32f7xx_hal_rcc.h(1194): note: expanded from macro 'RCC_LSE_TIMEOUT_VALUE' 1194 | #define RCC_LSE_TIMEOUT_VALUE LSE_STARTUP_TIMEOUT | ^1 error generated.compiling stm32f7xx_hal_rcc_ex.c...C:/Keil_v5/Pack/Keil/STM32F7xx_DFP/2.16.0/Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_rcc.c(557): error: use of undeclared identifier 'LSE_STARTUP_TIMEOUT' 557 | if ((HAL_GetTick() - tickstart) > RCC_LSE_TIMEOUT_VALUE) | ^C:/Keil_v5/Pack/Keil/STM32F7xx_DFP/2.16.0/Drivers/STM32F7xx_HAL_Driver/Inc\stm32f7xx_hal_rcc.h(1194): note: expanded from macro 'RCC_LSE_TIMEOUT_VALUE' 1194 | #define RCC_LSE_TIMEOUT_VALUE LSE_STARTUP_TIMEOUT | ^C:/Keil_v5/Pack/Keil/STM32F7xx_DFP/2.16.0/Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_rcc.c(571): error: use of undeclared identifier 'LSE_STARTUP_TIMEOUT' 571 | if ((HAL_GetTick() - tickstart) > RCC_LSE_TIMEOUT_VALUE) | ^C:/Keil_v5/Pack/Keil/STM32F7xx_DFP/2.16.0/Drivers/STM32F7xx_HAL_Driver/Inc\stm32f7xx_hal_rcc.h(1194): note: expanded from macro 'RCC_LSE_TIMEOUT_VALUE' 1194 | #define RCC_LSE_TIMEOUT_VALUE LSE_STARTUP_TIMEOUT | ^2 errors generated.compiling stm32f7xx_hal_rcc.c...compiling stm32f7xx_hal_gpio.c...compiling stm32f7xx_hal.c...compiling stm32f7xx_hal_pwr_ex.c...assembling startup_stm32f746xx.s...compiling system_stm32f7xx.c...".\Flash\Blinky.axf" - 3 Error(s), 0 Warning(s).Target not created.Build Time Elapsed: 00:00:01Load "C:\\MDK\\Boards\\ST\\STM32F746G_Discovery\\Blinky_BM\\Flash\\Blinky.axf" _____^*** error 56: cannot open fileError: Flash Download failed - Could not load file 'C:\MDK\Boards\ST\STM32F746G_Discovery\Blinky_BM\Flash\Blinky.axf'Flash Load finished at 20:05:00
Di you modify the example in some way? I just tried it and it build fine out of the box for me without errors. "LSE_STARTUP_TIMEOUT" is defined in stm32f7xx_hal_conf.h.