2025-11-18 4:00 AM
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.
I'm using STEVAL-ESC002V1 solution of STM.
2025-11-18 5:02 AM
I have not used the board STEVAL-ESC002V1 solution of STM, but i feel you can do
#define POTENTIOMETERin the appropriate file based on which c files are accessing it.
2025-11-18 8:15 PM
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.
2025-11-18 8:48 PM
Is it possible to share the cube ide project?
2025-11-18 10:04 PM
If you want at project level, please try below add the POTENTIOMETER in the compiler defines in the compiler settings and try.
2025-11-19 2:43 AM
Hey i'm using IAR Embedded Workbench IDE,for the development of STEVAL-ESC002V1 can you please guide me or share some reference on it.
2025-11-20 9:02 AM
Hello @shashank7,
The provided STEVAL-ESC002V1 firmware only supports the associated hardware configuration.
This board does not include a potentiometer. The POTENTIOMETER feature is mentioned in the firmware because it is a customized version of standard source code and is not intended for feature modification.
If you are using a customized board, you must develop new firmware tailored to your hardware.