2023-03-14 12:50 AM
Dear All,
I would like to update old projects from workbench 5.Y.2 to workbench 6.1.1. I am using custom board. With 5.Y.2 I can configure the custom board, but with 6.1.1 I'm not able to configure my board. How can I solve the problem?
Solved! Go to Solution.
2023-03-29 02:01 PM
Hello Paolo,
To complete Zied answer, let me add that the PGA Connected mode is not yet directly accessible from the board description. As there is no ST board making use of it, we have no easy way to validate it.
The Over Current protection must be automatically proposed when you use internal opamp if all the Opamps are connected to a comparator.
Unfortunately, we missed to update a configuration file that prevents the feature to be proposed by the Workbench if you use the ThreeShunt_RawCurrents_SingleEnded_InternalGain for current sensing within an inverter board. (This is the configuration proposed in Zied board description).
To solve this problem, I attach to this message a corrected version of the file ConnectionParameters.json. Please replace the one delivered with the 6.1.1 package you will find in [Install root dir]\MC_SDK_6.1.1\Utilities\PC_Software\STMCWB\assets\ConnectionParameters.json by this one.
Once done you will be able to configure the overcurrent protection if you create a new project with this Custom_Board_5_y_2.
Let me know if it works for you.
Regards
Cedric
2023-03-23 06:34 AM
Hello @prigh.1 ,
With 6.1.1 you can start with an ST board as you did with workbench 5, and clone it with the board manager. Once your board is cloned you can customize it easily with the build in editor. Once done, you can start a new project with your own board and the Workbench will propose you the new possibilities offered by your modifications. Let us know what kind of modifications you want to do and the issue you are facing. It will help us to generate the right documentation.
Regards
Cedric
2023-03-23 05:09 PM
Thank you @cedric H your reply.
I have the same question.
My own board with 1R or 3R is ok.
But I cannot create my board with 2 ICS.Can you tell me how to edit the file in board manager.
2023-03-24 01:50 AM
Hello @CZhao.1 ,
Unfortunately ICS is not yet supported by MCSDK 6.1.
It is planned to put it back in MCSDK 6.2 expected in July. For the time being, MCSDK 5.4.8 is still available and support ICS.
Regards
Cedric
2023-03-24 05:31 AM
Dear Cedric,
Thanks for your answer.
Yes, I have already tested the cloning procedure, as suggested by you. I can achieve some results, like defining the timer/pins generating the PWM signals. I can obtain this result by working on the controller's configuration or redefining the connector's pin/port configuration.
I did not find a solution for controlling the microcontroller's analogue input for reading the phase currents and OVC protection.
I am working with a sensorless motor with three shunt resistors, and the base microcontroller's configuration definied using MCWB 5.Y.2 is shown in the attached image.
MCWB 5.Y.2 allows me to configure the microcontroller in this way:
internal gain of the opamp
external gain and bias offset of the RC circuit for reading the current level (I know how to calculate all the needed gains ad offset)
inverted pin of the internal OPAMP for adding an external capacitor for filtering purposes
threshold limit of OVC
I did not find a solution using MCWB 6.1.1 to configure the analog input section as described above.
Do you have any suggestions or documentation for reaching these results?
Regards
Paolo
2023-03-24 06:50 AM
Hello Paolo,
Could you tell me from which boards did you start with 5.Y.2 and attach your IOC file to this thread?
I will try to come back with a suitable solution.
Cedric
2023-03-24 08:45 AM
2023-03-24 05:29 PM
2023-03-28 08:39 AM
Hello @prigh.1 ,
Here is the description file of your board, you can import it on the workBanch as "Inverter", then generate your project.
On the WorkBench, press "new project" then in "Select Motor Control Algorithm & Hardware" choose "Inverter.
click on the button in the upper right corner and add this file in the tool.
To activate the DAC Debug go to the Application Configuration tab of the WorkBench on the left.
Check that you have the right parameters, then generate your code.
After that, open the generated .Ioc file and set the 2 OPAMPs to "PGA Connected" mode.
Finally generate your code and try it.
can you give me a feedback to know if it works ?
Thank you
2023-03-28 08:41 AM
You can use an older version of CubeMx, According to the release note of the MCSDK version 5.4.8 it seems that we can use at most the STM32CubeMX v6.4.0 version, can you try with this version ?