Skip to main content
jendoubi saif ddine
Associate II
April 8, 2018
Solved

Undefined symbol HAL_ADC_... i added everything and the code show no mistakes yet this happen, any ideas ?

  • April 8, 2018
  • 1 reply
  • 3338 views
Posted on April 08, 2018 at 19:09

0690X0000060AM3QAM.png
    This topic has been closed for replies.
    Best answer by Tesla DeLorean
    Posted on April 08, 2018 at 20:08

    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 */

    ...

    1 reply

    Tesla DeLorean
    Guru
    April 8, 2018
    Posted on April 08, 2018 at 19:14

    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.

    Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
    jendoubi saif ddine
    Associate II
    April 8, 2018
    Posted on April 08, 2018 at 19:27

    Thanks for the answer, 

    But i did add all the needed files in the project tree this problem keeps happening 

    Tesla DeLorean
    Guru
    April 8, 2018
    Posted on April 08, 2018 at 19:31

    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.

    Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..