Skip to main content
Associate II
November 18, 2025
Question

STEVAL-ESC002V1: I'm unable to Enable MX_ADC_Init() function.

  • November 18, 2025
  • 1 reply
  • 273 views

Hey Folks,
I'm unable to Enable this MX_ADC_Init() function can someone please help me it to do it.Below down i had attached the image for your reference can you please help me into it.
My aim is to control the speed of the motor by Potentiometer.

shashank7_0-1763467049469.png

 

 I'm using STEVAL-ESC002V1 solution of STM.

1 reply

Senior III
November 18, 2025

I have not used the board STEVAL-ESC002V1 solution of STM, but i feel you can do 

#define POTENTIOMETER

in the appropriate file based on which c files are accessing it. 

 

shashank7Author
Associate II
November 19, 2025

Hey i had tried it, but it is declared in most of the file in my project, i had declared it but after running it show some error as variable are not undefined. So i was looking a standard way to enable that section.
@Andrew Neil @STuser2 @Fabrice LOUBEYRE 
can you please help me.

Senior III
November 19, 2025

Is it possible to share the cube ide project?