Skip to main content
cedric H
Technical Moderator
January 21, 2022
Question

NEW STM32 MC-SDK version 5.Y.4

  • January 21, 2022
  • 5 replies
  • 8046 views

Dear STM32 Motor Control community members

We are very pleased to announce the new release 5.Y.4 of the XCUBE_MCSDK. 

This release fix the compatibility issue you may have faced with cubeMX 6.4.

This release is the last planed of the 5 versions, and as a new year gift, the full source package is now available for everyone.

As usual, you can download XCUBE_MCSDK here: https://www.st.com/en/embedded-software/x-cube-mcsdk.html .

All our efforts are now focused towards the version 6.0 that will bring a new Workbench and put the support of the 6steps algorithm at the level of the FOC.

As it is in the DNA of the 5.Y branch, this release has seen a lot of improvements and bug fixes.

Please check the associated release notes to get all the details.

Best regards

ST Motor control team

This topic has been closed for replies.

5 replies

SCrum.1
Associate II
January 28, 2022

Glad to see the new MC_SDK release, and also glad to see the addition of processor utilization measurement.

When I build this with a position control configuration, I'm getting the following error in the generated code: error: 'SPEED_LOOP_FREQUENCY_HZ' undeclared (first use in this function); did you mean 'POSITION_LOOP_FREQUENCY_HZ

Clearly SPEED_LOOP_FREQUENCY_HZ is not defined in a project configured for position control.

Can you tell me if the processor utilization should work with position control? or is it limited to speed/torque control?

Thanks.

This is with a STM32F401RE board. CubeMX6.4.0. Toolchain STM32CubeIDE, Firmware STM32 FW V1.26.2

cedric H
cedric HAuthor
Technical Moderator
January 28, 2022

Hello @SCrum.1​ ,

We missed the use case "position control"+ "MCU monitoring", so it is currently limited to speed/torque control.

This issue has been reported in this thread and will be fixed in the coming 6.0.

Regards

Cedric

Shane Kent
Associate II
October 13, 2022

Cedric -

We are trying to use the STSPIN32G4 in position control. We are getting the same 'SPEED_LOOP_FREQUENCY_HZ' issue described above. Is there a way to disable the MCU monitoring portion of this to allow for position control?

Also, when will STSPIN32G4 be supported in 6.0?

-Shane

cedric H
cedric HAuthor
Technical Moderator
October 13, 2022

Hello @Shane Kent​ ,

 > Is there a way to disable the MCU monitoring portion of this to allow for position control?

By default, MCU monitoring is not enabled. So if you did not enable it through cubeMX, you can even remove the compilation of mc_perf.c from the project.

>Also, when will STSPIN32G4 be supported in 6.0?

The release 6.1 is planned for end of November and will support the STSPIN32G4.

Best Regards

Cedric

YWang.15
Associate II
July 8, 2022

Hi, I just got my STEVAL_SPIN3204 and I opened MC workbench 5.Y.4, and picked the example project six-step sensorless and voltage mode on a STEVAL-SPIN3204+ShinanoLA052-080. Then a few questions really confused me:

  1. The project shows MCU as STSPIN32F0 and STWVAL-SPIN3201, which does not match the eval-board I am using.
  2. The schematic of STEVAL-SPIN3204 uses on shunt resistor while the project defaults to 3 shunt resistor
  3. I change the configuration to 1 shunt resistor and change to speed sensor algorithm to observer+PLL
  4. I generate the code and compiles and it fails with some error saying that some functions are missing.
  5. I also can not find any place to set up the b-EMF input setup in the tool

I can run any examples on my side now, your help is greatly appreciated.

Thanks

davidpi
Visitor II
May 1, 2023

Hi,

where can i download STM32 MC-SDK version 5.Y.4?

Peter BENSCH
Technical Moderator
May 1, 2023

Version 5.Y.4 was an interim version, which has now been removed like all other previous versions because version 6.x covers it completely. Only the support for the STM32F1 is missing in version 6, which is why version 5.4 can still be found on the MCSDK website.

Hope that helps?

Regards

/Peter

JBrown
Associate II
October 3, 2023

Am I mistaken or does version 6 remove all support for custom boards (aside from using undocumented JSON files), and have no documentation available after 18 months of release (the wiki is entirely v5 based, and included documentation is little more than a primer on how burshless controllers work)? It seems strange to claim v6 covers v5 completely when it seems to be basically useless for anything but a few development boards.

Now that 5.Y has been withdrawn there is no usable support for STSPING4 aside from the dev board.

Arta-Botak
Associate II
April 5, 2024

Hi sir where i can download the mcsdk version 5.y.0?? I dont see on st web, only 5.4.6 until 5.4.8 and version 6 sir. Because i have code with mcsdk version 5.y.0 ( my hdd was broke and the software broke also) or it posible to used mcsdk version 6 or later???