Filter löschen
Filter löschen

How to select target for Embedded Coder / Matlab Coder

6 Ansichten (letzte 30 Tage)
Ali am 21 Jul. 2013
I am using Matlab Coder to generate C code for an algorithm I have.
I also have Embedded Coder on this computer. The documentation on matworks shows how to choose a target in case of using Simulink, but what about Matlab? The buil options does not contain anything related to selecting targets.
If it matters, my target will be TI's sitara am335x (ARM Cortex A8-based).

Akzeptierte Antwort

Ryan Livingston
Ryan Livingston am 23 Jul. 2013
You can achieve this simply by using the project interface. Create a new project:
coder -new myProj.prj
In the UI which opens click on the tab which says "Build" and set the output type to Static Library, Shared Library or Executable.
Then, click on the settings button in the top right corner (the gray gear) and navigate to the hardware pane. In this pane you can choose the Code Replacement Library for your target.
In the pane below this you can choose the device vendor and device type.
After that, add files and define inputs as shown in the doc:

Weitere Antworten (0)

Community Treasure Hunt

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

Start Hunting!

Translated by