2018-04-08 10:09 AM
Solved! Go to Solution.
2018-04-08 01:08 PM
Ok, so still points to HAL_ADC_MODULE_ENABLED not being defined. Select that text and 'Find-in-Files' within the project.
\STM32Cube_FW_F7_V1.11.0\Drivers\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_adc.c
&sharpifdef HAL_ADC_MODULE_ENABLED
..
&sharpendif
Should be in stm32f7xx_hal_conf.h
...
/* Define to prevent recursive inclusion -------------------------------------*/
&sharpifndef __STM32F7xx_HAL_CONF_H&sharpdefine __STM32F7xx_HAL_CONF_H&sharpifdef __cplusplus
extern 'C' {&sharpendif/* Exported types ------------------------------------------------------------*/
/* Exported constants --------------------------------------------------------*//* ♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯ Module Selection ♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯ */
/** * @brief This is the list of modules to be used in the HAL driver */&sharpdefine HAL_MODULE_ENABLED&sharpdefine HAL_ADC_MODULE_ENABLED/* &sharpdefine HAL_CAN_MODULE_ENABLED *//* &sharpdefine HAL_CAN_LEGACY_MODULE_ENABLED */...
2018-04-08 10:14 AM
Check defines in stm32f7xx_hal_conf.h pulling in #includes, and that the stm32f7xx_hal_adc.c file is in the project tree.
This is a linker error not a compilation error, so indicates the code behind the functions is missing.
2018-04-08 12:27 PM
Thanks for the answer,
But i did add all the needed files in the project tree this problem keeps happening
2018-04-08 12:31 PM
I have zero visibility into your problem, the linker says they are not there.
If the file is not missing, then you'll need to look to see if there is some ♯ ifdef around them preventing the body code from being compiled.
Enable 'Browse Information', and right click 'Go To Definition Of ...' at the places where you call the functions.
2018-04-08 12:51 PM
i hope this makes it clear for you, i've been trying for hours , it's the LwIP project from the STM32cubemx applications
2018-04-08 01:08 PM
Ok, so still points to HAL_ADC_MODULE_ENABLED not being defined. Select that text and 'Find-in-Files' within the project.
\STM32Cube_FW_F7_V1.11.0\Drivers\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_adc.c
&sharpifdef HAL_ADC_MODULE_ENABLED
..
&sharpendif
Should be in stm32f7xx_hal_conf.h
...
/* Define to prevent recursive inclusion -------------------------------------*/
&sharpifndef __STM32F7xx_HAL_CONF_H&sharpdefine __STM32F7xx_HAL_CONF_H&sharpifdef __cplusplus
extern 'C' {&sharpendif/* Exported types ------------------------------------------------------------*/
/* Exported constants --------------------------------------------------------*//* ♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯ Module Selection ♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯ */
/** * @brief This is the list of modules to be used in the HAL driver */&sharpdefine HAL_MODULE_ENABLED&sharpdefine HAL_ADC_MODULE_ENABLED/* &sharpdefine HAL_CAN_MODULE_ENABLED *//* &sharpdefine HAL_CAN_LEGACY_MODULE_ENABLED */...
2018-04-08 01:44 PM
Thank you ! problem solved
:)