cancel
Showing results for 
Search instead for 
Did you mean: 

Integrate Motor driver c-code to simulink

tired
Associate II

hi,

i'm currently working on a project where i want to control a stepper motor via the STM32F446RE board and X-NUCLEO-IHM-03A1 expansion board.

To benefit from the X-CUBE-SPN3 software package, i would like to integrate the external c-code to matlab/simulink and use it in my model with the ccaller-block.

At this moment i am able to include the necessary .c and .h files, but cannot build the code.

I uploaded the occuring error.

Thanks for your help.

Best Regards

Tom

12 REPLIES 12
Laurent Ca...
Lead II

Dear @tired​ 

If the C compiler doesn't understand a #define, then something is definitely missing: probably a header (.h) or a bad configuration (linked to a #ifdef directive and so on).

Best regards

Laurent Ca...

Laurent Ca...
Lead II

Dear @tired​ 

any news?

Best regards

Laurent Ca...

Laurent Ca...
Lead II

Dear @tired​ 

As you do not answer, I guess you don't have to solve this problem anymore, therefore I consider this thread closed.

If not, feel free to reopen it by posting a new answer.

Best regards

Laurent Ca...