Borrar filtros
Borrar filtros

Simulink edit makefile to create a library instead of executable

4 visualizaciones (últimos 30 días)
Mikel85
Mikel85 el 23 de Ag. de 2023
Editada: Ayush el 29 de Ag. de 2023
When I generate the C code from SIMULINK eta *.mk is configured to create an executable file instead of a library.
How Can I edit the makefile to create an independent library ?
###########################################################################
## Makefile generated for component 'SoC_00'.
##
## Makefile : SoC_00.mk
## Generated on : Wed Aug 23 11:08:54 2023
## Final product: $(RELATIVE_PATH_TO_ANCHOR)/SoC_00.elf
## Product type : executable
##
###########################################################################

Respuestas (1)

Ayush
Ayush el 29 de Ag. de 2023
Editada: Ayush el 29 de Ag. de 2023
I understand that you want to create an independent library using makefile. If you have Embedded Coder license, you can generate the Makefile such that it is capable of generating library instead of executable. Here are the general steps to follow:
  1. Open your model
  2. Press Ctrl+E to open ‘Configuration Parameters’.
  3. Go to Code Generation section on left pane
  4. Change the System Target File to ert_shrlib.tlc
  5. Generate the code now
Thanks,
Ayush Jaiswal

Categorías

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

Productos


Versión

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by