julbouln / stm32f4discovery_soundcard

STM32F4-Discovery sound card
9 stars 1 forks source link

LSE_STARTUP_TIMEOUT is not defined #1

Open AButenko opened 8 years ago

AButenko commented 8 years ago

When compiling code it cause to error:

ant@ant-PC:~/Downloads/stm32f4discovery_soundcard-master$ make arm-none-eabi-gcc -Wall -g -std=c99 -Os -mlittle-endian -mcpu=cortex-m4 -march=armv7e-m -mthumb -mfpu=fpv4-sp-d16 -mfloat-abi=hard -ffunction-sections -fdata-sections -Isrc -Isrc/bsp -Icube/Drivers/CMSIS/Include -Icube/Drivers/CMSIS/Device/ST/STM32F4xx/Include -Icube/Drivers/STM32F4xx_HAL_Driver/Inc -Isrc/audio -Isrc/usb -DSTM32F407xx -DUSE_HAL_DRIVER -DUSE_DBPRINTF -c -o obj/main.o ./src/main.c -MMD -MF dep/main.d ./src/main.c:108:13: warning: 'Error_Handler' defined but not used [-Wunused-function] static void Error_Handler(void) ^ arm-none-eabi-gcc -Wall -g -std=c99 -Os -mlittle-endian -mcpu=cortex-m4 -march=armv7e-m -mthumb -mfpu=fpv4-sp-d16 -mfloat-abi=hard -ffunction-sections -fdata-sections -Isrc -Isrc/bsp -Icube/Drivers/CMSIS/Include -Icube/Drivers/CMSIS/Device/ST/STM32F4xx/Include -Icube/Drivers/STM32F4xx_HAL_Driver/Inc -Isrc/audio -Isrc/usb -DSTM32F407xx -DUSE_HAL_DRIVER -DUSE_DBPRINTF -c -o obj/system_stm32f4xx.o ./src/system_stm32f4xx.c -MMD -MF dep/system_stm32f4xx.d arm-none-eabi-gcc -Wall -g -std=c99 -Os -mlittle-endian -mcpu=cortex-m4 -march=armv7e-m -mthumb -mfpu=fpv4-sp-d16 -mfloat-abi=hard -ffunction-sections -fdata-sections -Isrc -Isrc/bsp -Icube/Drivers/CMSIS/Include -Icube/Drivers/CMSIS/Device/ST/STM32F4xx/Include -Icube/Drivers/STM32F4xx_HAL_Driver/Inc -Isrc/audio -Isrc/usb -DSTM32F407xx -DUSE_HAL_DRIVER -DUSE_DBPRINTF -c -o obj/stm32f4xx_it.o ./src/stm32f4xx_it.c -MMD -MF dep/stm32f4xx_it.d arm-none-eabi-gcc -Wall -g -std=c99 -Os -mlittle-endian -mcpu=cortex-m4 -march=armv7e-m -mthumb -mfpu=fpv4-sp-d16 -mfloat-abi=hard -ffunction-sections -fdata-sections -Isrc -Isrc/bsp -Icube/Drivers/CMSIS/Include -Icube/Drivers/CMSIS/Device/ST/STM32F4xx/Include -Icube/Drivers/STM32F4xx_HAL_Driver/Inc -Isrc/audio -Isrc/usb -DSTM32F407xx -DUSE_HAL_DRIVER -DUSE_DBPRINTF -c -o obj/stm32f4xx_hal_rcc.o cube/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc.c -MMD -MF dep/stm32f4xx_hal_rcc.d In file included from src/stm32f4xx_hal_conf.h:234:0, from cube/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal.h:48, from cube/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc.c:87: cube/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc.c: In function 'HAL_RCC_OscConfig': cube/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_rcc.h:1297:36: error: 'LSE_STARTUP_TIMEOUT' undeclared (first use in this function)

define RCC_LSE_TIMEOUT_VALUE LSE_STARTUP_TIMEOUT

                                ^

cube/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc.c:438:43: note: in expansion of macro 'RCC_LSE_TIMEOUT_VALUE' if((HAL_GetTick() - tickstart ) > RCC_LSE_TIMEOUT_VALUE) ^ cube/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_rcc.h:1297:36: note: each undeclared identifier is reported only once for each function it appears in

define RCC_LSE_TIMEOUT_VALUE LSE_STARTUP_TIMEOUT

                                ^

cube/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc.c:438:43: note: in expansion of macro 'RCC_LSE_TIMEOUT_VALUE' if((HAL_GetTick() - tickstart ) > RCC_LSE_TIMEOUT_VALUE) ^ Makefile:152: recipe for target 'obj/stm32f4xx_hal_rcc.o' failed make: *\ [obj/stm32f4xx_hal_rcc.o] Error 1

adityamanglik commented 8 years ago

To resolve this error, go the Includes directory located at

STM32F7xx_HAL_Driver\Inc

and edit the stm32f7xx_hal_conf_template.h file according to your project. Save it as stm32f7xx_hal_conf.h and then run make clean && make.