Solved
Adding user ADC on MCSDK 6.2.1
- July 1, 2024
- 1 reply
- 1260 views
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.
