cancel
Showing results for 
Search instead for 
Did you mean: 

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

Randy1
Associate III

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?

3 REPLIES 3
Randy1
Associate III

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

cedric H
ST Employee

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...
Lead II

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