2017-02-14 03:17 PM
This was all running before I added my old code RecordStorage.cpp
*** Using Compiler 'V5.06 update 4 (build 422)', folder: 'C:\Keil_v5demo\ARM\ARMCC\Bin'
Build target 'C091_V12CubeConfig2'compiling RecordStorage.cpp...
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_rcc_ex.h(2051): error: #20: identifier 'HAL_StatusTypeDef' is undefinedHAL_StatusTypeDef HAL_RCCEx_PeriphCLKConfig(RCC_PeriphCLKInitTypeDef *PeriphClkInit);
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_rcc.h(1656): error: #20: identifier 'HAL_StatusTypeDef' is undefinedHAL_StatusTypeDef HAL_RCC_OscConfig(RCC_OscInitTypeDef *RCC_OscInitStruct);
2017-02-14 05:46 PM
Not sure its a linker thing, you'd want to double check the modules pulled in via the defines in the stm32f0xx_hal_conf.h and USE_HAL_DRIVER to the command line.
2017-02-14 06:57 PM
Hi,
thanks for that, I found this in the C/C++ preprocessor options;
USE_HAL_DRIVER,STM32F091xC
the file RecordStorage.cpp is from my online MBED code....
I have removed references to mbed, but it wont compile, as shown above.
my code was intact before I brought this file in.
I guess it is an include causing the problem... is that you next thought ?
2017-02-14 09:08 PM
♯ include 'stm32f0xx_hal_def.h'
2017-02-14 09:21 PM
Yes,
that is already included in Main.c and in the new file.. RecordStorage.cpp ,which has caused this problem.
more ideas please...
2017-02-15 01:37 AM
Hello marsh.nick,
Try to update the library version and ma
ke sure you are using the latest version of firmware package and Keil package Keil.STM32F0xx_DFP.1.5.0.pack.
Then, you need to review
the defines passed to the compiler and
make sure that your project includes the right files and defines symbols.Regards
Imen
2017-02-15 01:44 PM
using pack installer 1.3.35,
Yes DFP pack is 1.5.0 (2016-4-4)
I have removed the offending file and recovered, now just moving parts across into a new file...
I will know soon enough which part of the code is the problem.
2017-05-01 03:39 PM
Hi,
I'm having a very similar problem with the include files:
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_rcc_ex.h(6729): error: ♯ 20: identifier 'HAL_StatusTypeDef' is undefined
The same code also fails compiling with GCC, although the error shown is different:
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_rcc_ex.h:6729:19: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'HAL_RCCEx_PeriphCLKConfig'
Did you manage to solve this issue? What was your offending file?
Thanks!
Alex
2017-05-01 03:47 PM
I had a cpp file, which when added to the project, caused this fault.
so I pulled it apart, moved code to a new file, only took the parts I needed.
so I didn't fix it, I avoided it.
:(
2017-05-01 04:27 PM
Thanks!