cancel
Showing results for 
Search instead for 
Did you mean: 

unknown type name 'size_t motion_fx.h

tizdipietro
Associate III
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

 

1 ACCEPTED SOLUTION

Accepted Solutions

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.

View solution in original post

3 REPLIES 3
Ghofrane GSOURI
ST Employee

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.

sure.

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

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.