Skip to main content
Md Mubdiul Hasan
Associate III
December 27, 2016
Question

No such parameter!!

  • December 27, 2016
  • 4 replies
  • 1732 views
Posted on December 27, 2016 at 03:45

Hello,

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

}ADC_HandleTypeDef; ^

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

0690X00000605ypQAA.png

but when you search

stm32f0xx_hal_adc.h file its written as

t

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 */
}ADC_HandleTypeDef;�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?

Is it means,

ADC_HandleTypeDef is not declare instm32f0xx_hal_adc.h? I dont needADC_HandleTypeDef in my application.

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

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

Let me know why this happens?

#typedef #hal-drivers
This topic has been closed for replies.

4 replies

Khouloud GARSI
ST Employee
December 27, 2016
Posted on December 27, 2016 at 11:12

Hi

Hasan.Md_Mubdiul

,

Could you try to rebuild the project using: 'Right click on the project -> Index -> Rebuild'.

Give me your feedback.

Khouloud.

Md Mubdiul Hasan
Associate III
December 28, 2016
Posted on December 28, 2016 at 01:17

Hello Mr Khouloud,

Thank you to respond here.

Don't you mean the following way?...

0690X00000605muQAA.png

This process does not change anything, CDT build log is empty !

Tesla DeLorean
Guru
December 27, 2016
Posted on December 27, 2016 at 21:37

Are these errors reported by the compiler during a build, or from an analysis by Eclipse itself. The latter is reportedly not that robust.

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
Md Mubdiul Hasan
Associate III
December 28, 2016
Posted on December 28, 2016 at 01:21

Are these errors reported by the compiler during a build, or from an analysis by Eclipse itself.

My stupid mind says, from both.