2024-06-30 08:54 PM
Dear all, currently, I'm making to control a BLDC motor from throttle using ADC1 channel 0. The MCU part number is STM32G0B1RBT6. I can read the ADC value successfully in SDK 5.4.8. The way how I do is I defined the ADC1-IN0 in Cube Mx and then I added extra code in main.c then I can read the ADC value. Now, I want to switch the SDK to 6.2.1. but in SDK6.2.1 it's showing errors when I add extra codes in main.c. So, my question is how can i solve this issues in order to read the addition ADC in MCSDK 6.2.1.
Below are the screenshots that I put the extra codes in main.c file.
2024-07-01 11:17 AM
Hello @Agga
In the MCSDK 6.2.1, functions related to the regular conversion Manager accept different arguments, in fact you should pass different parameters to them compared to the MCSDK 5.4.8
I highly recommend you to refer to mc_config.h
and also have a look at the new arguments that these functions accept.
It may help you get the idea
Regards