Skip to main content
Explorer
February 14, 2024
Solved

Bug in generated MC workbench code

  • February 14, 2024
  • 1 reply
  • 979 views

Hello,

I am using MC Workbench v. 6.2.1.

 

The function "__weak bool MCI_StartWithPolarizationMotor(MCI_Handle_t* pHandle)" is supposed to return true on success. But it is currently returning false. This function is located in "mc_interface.c" at line 422.

 

Function is used in "void MCP_ReceivedPacket(MCP_Handle_t *pHandle)", which is located in "mcp.c" at line 223.

This function calls the "StartWithPolarizationMotor" when MCP sends the command "START_MOTOR" and "START_STOP". In the case of "START_MOTOR" it expects a false return to be successful. But in the case of "START_STOP" it expects a true to be returned if successful.

 

Since this is a weak function, i have replaced it in my own code. Just thought you should know so you can fix it in the next update.

 

Best Regards

Ole

 

Best answer by GMA

Hello,

Thank you for your bug report.
I will enter a ticket on our side, and it will be solved on further version.

1 reply

GMA
GMABest answer
Technical Moderator
February 15, 2024

Hello,

Thank you for your bug report.
I will enter a ticket on our side, and it will be solved on further version.

If you agree with the answer, please accept it by clicking on 'Accept as solution'.Best regards.GMA
ST Employee
May 17, 2024

Hello,

This issue has been fixed in our new MCSDK 6.3.0 release,
so feel free to download it and try if it solved correctly your issue reported in this post.

Kind Regards.

Amina.