2020-04-30 09:10 AM
Hi,
I am develloping a system using the motor control sdk. I am usiung the STSPIN32F0 chip and the following software versions:
This module only has one ADC peripheral and I need to use it in my application. Looking around, I have found that the Regular Conversion Manager (RCM) might be exactly what I need for this situation. I can see in the release notes that this feature was added in the 5.2.0 version:
They say to "Refer to the Reference documentation for more information.". So I looked at the documentation for my version which I found in the motor control worbench under "Documentation->STM32 motor control SDK5.x - Firmware". In this document, I found the following information:
and also:
This is all good and well, but when I search for these functions in my STM32cubeIDE workspace were I have the project it doesn't find anything:
I have also manually looked in mc_tasks and mc_api where these functions should be located.
I have serach on the web everywhere for if this feature was removed, or if I need to do something in the workbench in order for these functions to be generated but I can't find anything.
I really need this feature for this project...
Best regards,
Solved! Go to Solution.
2020-05-04 08:56 AM
In the end I found the answer myself. It seems like the functions changed name and location and are not updated in the documentation. The functions can be found in regular_conversion_manager.c /.h and they are named:
MC_ProgramRegularConversion() -> RCM_RequestUserConv()
MC_GetRegularConversionState() -> RCM_GetUserConvState()
MC_GetRegularConversionValue() -> RCM_GetUserConv()
2020-05-04 08:56 AM
In the end I found the answer myself. It seems like the functions changed name and location and are not updated in the documentation. The functions can be found in regular_conversion_manager.c /.h and they are named:
MC_ProgramRegularConversion() -> RCM_RequestUserConv()
MC_GetRegularConversionState() -> RCM_GetUserConvState()
MC_GetRegularConversionValue() -> RCM_GetUserConv()
2020-06-23 04:50 AM
Hello,
By using below three functions, how i can read the ADC Channel (PA3) in stspin32f0 MCU
RCM_RequestUserConv()
RCM_GetUserConvState()
RCM_GetUserConv()
Kindly let me know the solution.
Thank you.
2020-10-14 01:01 PM
Dear @MR.3
If you have still this second problem, please open a new post.
Best regards
Laurent Ca...
2021-06-15 12:45 AM
The question has been set only to the "STM32 Motor Control" topic (the question is only about the STM32 MC SDK).
Best regards