Use C-caller with Custom Libraries

4 visualizaciones (últimos 30 días)
Andrea Mauri
Andrea Mauri el 9 de Ag. de 2019
Respondida: Venkatesh Chilapur el 22 de Ag. de 2019
Hi to all,
i'm trying to use a c-caller block (https://it.mathworks.com/help/simulink/ug/integrate-ccode-ccaller.html ) in order to use some custom function developed by texas for the cla section of the micro. I develop my model using the following guide : https://it.mathworks.com/help/supportpkg/texasinstrumentsc2000/examples/using-the-contrhttps://it.mathworks.com/help/simulink/ug/integrate-ccode-ccaller.htmlcelerator-cla.html .
But as soon as, i try to use a c-caller block with some optimised functions this errore happens :
Error(s) encountered while building custom code simulation target for model 'PFC_cla'. Fix the errors in your custom code or disable 'Import custom code' if your custom code has incompatibilities.
Caused by:
  • c:\local_module\models\pfccont_br_adb_vienna_01\pfc_cla_\CLAmath.lib: member c:\local_module\models\pfccont_br_adb_vienna_01\pfc_cla_\CLAmath.lib(CLAsqrt.obj) in archive is not an object collect2.exe: error: ld returned 1 exit status
The problem is not the.h because i'm able to see the prototipes of the function.
The problem is that i don't have the .c files but some custom libraries so .lib.
Someone can help me please ?
Thanks,
AM

Respuesta aceptada

Venkatesh Chilapur
Venkatesh Chilapur el 22 de Ag. de 2019
Hi,
Please use the following model as reference.
Regards,
Venkatesh C

Más respuestas (0)

Categorías

Más información sobre Deployment, Integration, and Supported Hardware en Help Center y File Exchange.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by