2017-09-13 09:05 PM
Hi,
I got the following error when I try to run an example of RTX_Blinky from Tutorial: Cortex-M7 STM32 F7 Discovery Kit.
The example software zip file is from www.keil.com/appnotes/docs/apnt_280.asp.
C:\Keil_v5\ARM\PACK\Keil\STM32F7xx_DFP\2.9.0\Drivers\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_rcc.c(481): error: &sharp20: identifier 'LSE_STARTUP_TIMEOUT' is undefined.
Please advise me how to solve the problem.
https://community.st.com/tags♯/?tags=stm32f746g-disco
‌Thanks.
Regards,
Thiha Kyaw
#stm32f746g-disco2017-09-14 10:17 AM
Hello,
You need to review the defines passed by the compile.
Make sure that your project includes the right files and defines symbols. You can use the pre-processor's facilities.
Kind Regards
Imen
2017-10-15 07:20 AM
,
,
Hi Imen D, actually Keil or STM have to review the defines - THIHA KYAW explicitly says he is using an 'example project'!
Here is what page 74 of , the UM 1905 'Description of STM32F7xx HAL drivers' says ,
'LSE_STARTUP_TIMEOUT Timeout for LSE start up, expressed in ms 5000'
so it looks like ,
a mismatch of the ST HAL versions. It should be in ,
http://www.tjaekel.com/eth/doxygen/stm32f7xx__hal__conf_8h_source.html
:
♯ define LSE_STARTUP_TIMEOUT , , ,((uint32_t)5000U)
.
2017-10-15 03:00 PM
given that you found it where it should be, in the HAL driver, it would seem that the original poster's problem is in their own local installation rather than ST's example.
2017-10-18 11:33 PM
Actually it is due to DFP version. If I use older version, I don't have any issue. But it doesn't work with latest DFP version.
2017-10-19 07:33 AM
Hello,
After check, the LSE_STARTUP_TIMEOUT should be defined in your stm32f7xx_hal_conf.h
This definition is already included in our STM32CubeF7 package, in the
stm32f7xx_hal_conf_template.h
and the Cube examples worked properly without this error.
So, this error comes from Keil and you
can report it to Keil support, they will take care to fix this issue.Kind Regards
Imen