Skip to main content
Prasant J
Associate III
June 1, 2017
Solved

STM32F303VB: ADC HAL.. not implemented?

  • June 1, 2017
  • 1 reply
  • 830 views
Posted on June 01, 2017 at 13:47

Hi,

I'm using STM32CubeMX (STM32Cube_FW_F3_V1.8.0) to generate ADC HAL code for my custom board based on STM32F303VB.

I see that ADC HAL is not implemented. Only API is given

Is it available in new releases (if any) ?

Is there any ETA on when the complete HAL will be available for ADC?.

Any inputs will be of help.

Regards, Pj

#hal #adc #stm32cubemx
This topic has been closed for replies.
Best answer by Khouloud GARSI
Posted on June 01, 2017 at 14:48

Hi

J.Prasant

‌,

  • Please refer to file ''stm32f3xx_hal_adc_ex''. There, you find the function contents.0690X00000607CcQAI.png
  • Can I useLL for ADC while use HAL for other peripherals (CAN, GPIO, Timers) in the same project? Will they coexist happily in one project?

-> Yes, you can use LL and HAL drivers in the same project.

There is an ADC example using

HAL & LL API under the path below:

STM32Cube_FW_F3_V1.8.0\Projects\STM32F334R8-Nucleo\Examples_MIX\ADC

You may take it as a reference if you will use the two APIs.

Khouloud.

1 reply

Khouloud GARSI
Technical Moderator
June 1, 2017
Posted on June 01, 2017 at 14:09

Hi

J.Prasant

‌,

I'm not sure if I have correctly understood your question;but the 'stm32f3xx_hal_adc.c' file is found under the path below:

STM32Cube_FW_F3_V1.8.0\Drivers\STM32F3xx_HAL_Driver\Src

Khouloud.

Prasant J
Prasant JAuthor
Associate III
June 1, 2017
Posted on June 01, 2017 at 14:33

Hi

garsi.khouloud

‌,

Yes the adc.c file as you mentioned is there..what I wanted to say that it is blank...

All the functions are marked as __weak and the functions are empty.

Can I useLL for ADC while use HAL for other peripherals (CAN, GPIO, Timers) in the same project? Will they coexist happily in one project?

Regards, Pj

Khouloud GARSI
Technical Moderator
June 1, 2017
Posted on June 01, 2017 at 14:48

Hi

J.Prasant

‌,

  • Please refer to file ''stm32f3xx_hal_adc_ex''. There, you find the function contents.0690X00000607CcQAI.png
  • Can I useLL for ADC while use HAL for other peripherals (CAN, GPIO, Timers) in the same project? Will they coexist happily in one project?

-> Yes, you can use LL and HAL drivers in the same project.

There is an ADC example using

HAL & LL API under the path below:

STM32Cube_FW_F3_V1.8.0\Projects\STM32F334R8-Nucleo\Examples_MIX\ADC

You may take it as a reference if you will use the two APIs.

Khouloud.