How to select target for Embedded Coder / Matlab Coder

조회 수: 3 (최근 30일)
Ali
Ali 2013년 7월 21일
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).
-ali8

채택된 답변

Ryan Livingston
Ryan Livingston 2013년 7월 23일
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:

추가 답변 (0개)

Community Treasure Hunt

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

Start Hunting!

Translated by