cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F303VB: ADC HAL.. not implemented?

Prasant J
Associate III
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
1 ACCEPTED SOLUTION

Accepted Solutions
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.

View solution in original post

4 REPLIES 4
Khouloud GARSI
Lead II
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.

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

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.

Posted on June 01, 2017 at 15:12

Hi

garsi.khouloud

‌,

Thanks for pointing that out..

Back to school for me for overlooking this..

Regards, Pj