Problem with S-Function Block

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Problem with S-Function Block

35 Views
simon98
Contributor III

Hi NXP Team,

I'm trying to develop a program which implements an S-Function block with my code.

I've created a basic S-Function with the S-Function Builder block that when the input is a pair number the output is 1 and 0 instead. I've also added the Path where it's been created to MATLAB.

When i drop the S-Function block into my project, properly linke with the S-Function cereated, when i start the building phase an error occurs:

.../s32k3xx_can_transmit_ebt.c:183: undefined reference to `pair_dispair_sfn_Outputs_wrapper' collect2.exe: error: ld returned 1 exit status

I also tried to create a simulink blanck model with only the S-Function black that display the output and i've found out that it works correctly, even if it's not in the same directory of the S-Function's files.

I've searched this problem and i've found this in the community:

https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Question-about-s-function-builder/m-p/8...

But is quite old and the directory indicated there is not present on my pc...

How could i solve this error?

I'm using MBDT with the S32K358EVB-Q289

 

Thanks

Simon

0 Kudos
Reply
0 Replies