S-Function fails Simulink Compile Check

Hi Alex,

regarding BLASFEO, if you use the generic target, it is almost completely self contained C code so there should be little to no issues in porting to any architecture.

In particular, you can start by turning off the EXT_DEP flag, that is e.g. here



This flag allows the use of some additional routines for printing and memory allocation, which are not strictly necessary and can be safely removed.
This should already fix most of your issues.

If a few are still there, it should be easy for you to go though the source code and replace e.g. missing headers with the ones provided by your embedded toolchain, or comment out print-and-exit for not-yet-implemented routines (which are most likely not used anyway in HPIPM/acados).
Again, the core of BLASFEO with generic target is essentially self contained C code.

Cheers,

Gianluca

1 Like