AnsweredAssumed Answered

No such parameter!!

Question asked by Md Mubdiul Hasan on Dec 27, 2016
Latest reply on Dec 28, 2016 by Md Mubdiul Hasan



Right at the moment, in AC6+Eclipse  environment, the build error shows,( just showing 1 similar error)


C:/STM32_toolchain/common/Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_adc.h:238:2: error: declaration for parameter 'ADC_HandleTypeDef' but no such parameter

At this time,  stm32f0xx_hal.h and stm32f0xx.h added by # in  stm32f0xx_it.c ........   and indicating red underline.



but when you search  stm32f0xx_hal_adc.h  file its written as 



typedef struct
ADC_TypeDef          *Instance; /*                      !< Register base address */
ADC_InitTypeDef                 Init;                              /*!< ADC required parameters */
DMA_HandleTypeDef         *DMA_Handle;            /*!< Pointer DMA Handler */
HAL_LockTypeDef                Lock;                         /*!< ADC locking object */
__IO uint32_t                          State;                       /*!< ADC communication state (bitmap of ADC states) */
__IO uint32_t                   ErrorCode;                      /*!< ADC Error code */



Is it means, ADC_HandleTypeDef is not  declare in stm32f0xx_hal_adc.h? I dont need ADC_HandleTypeDef in my application.


Similar error occurs in other... Drivers/STM32F0xx_HAL_Driver/Inc/(.......h) files.

Also in c:\ac6\systemworkbench\plugins\fr.ac6.mcu.externaltools.arm-none.win32_1.12.0.201611241417\tools\compiler\arm-none-eabi\include\sys\(....h ) files.




Let me know why this happens ?