Skip to main content
tizdipietro
Associate III
March 22, 2026
Solved

unknown type name 'size_t motion_fx.h

  • March 22, 2026
  • 1 reply
  • 244 views
I created a motion_fx for stm32h562 from CubeMx. The auto generated motion_fx.h file does call (line 135)
size_t MotionFX_GetStateSize(void);​
But the code does miss the include 
#include <stddef.h>
Which results in the following error:
unknown type name 'size_t' motion_fx.h ./Middlewares/ST/STM32_MotionFX_Library/Inc line 135 C/C++ Problem

 

Best answer by Ghofrane GSOURI

Hello @tizdipietro 

Based on your IOC , you are using MX 6.15.0.

What I recommend you to do is migrating to the lates version 6.17.0 

Build Finished successfully.png

THX

Ghofrane 

1 reply

Ghofrane GSOURI
Technical Moderator
March 23, 2026

Hello @tizdipietro 

Could you please provide your IOC?

THX

Ghofrane

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
tizdipietro
Associate III
March 30, 2026

sure.

Here the .ioc file as well as the motion_fx.h (untouched, as created by cube mx).

Ghofrane GSOURI
Ghofrane GSOURIBest answer
Technical Moderator
April 2, 2026

Hello @tizdipietro 

Based on your IOC , you are using MX 6.15.0.

What I recommend you to do is migrating to the lates version 6.17.0 

Build Finished successfully.png

THX

Ghofrane 

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.