Skip to main content
Randy1
Associate II
December 26, 2018
Question

Where is "TSK_SafetyTask_PWMOFF(uint8_t bMotor)" ? (undefined reference error)

  • December 26, 2018
  • 3 replies
  • 664 views

Hi,

I made a motor control project thanks to STM32 Motor Control Workbench and STM32 Cube MX. I opened the generated source code without change in Atollic TRUE Studio.

When I build it I obtain this error:

undefined reference to `TSK_SafetyTask_PWMOFF' mc_tasks.c

I tried to find this function but I did not succeed... I think is really missing in the generated code because when I comment the line where this function is used I can build it without any problem.

The question is : Must I write the code of this function myself or something is missing in the generated code?

This topic has been closed for replies.

3 replies

Randy1
Randy1Author
Associate II
December 26, 2018

Ok that problem was fixed in the 5.3.1 version. I haven't any error now

cedric H
Technical Moderator
January 2, 2019

Dear Randy,

Thanks to report that your issue is now fixed.

Please be aware that it is just impossible for us to help you without more details.

Next time, please indicate at least the STM32 you are using and the power board if it comes from ST.

The best for us would be that you attach the stmcx project file to your post.

Regards

Cedric

Laurent Ca...
Senior III
June 22, 2021

The question has been moved from the section "Motor Control Hardware" to the "STM32 Motor Control" section (the question is about the STM32 MC SDK). 

Best regards