How to select target for Embedded Coder / Matlab Coder
2 次查看(过去 30 天)
显示 更早的评论
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
0 个评论
采纳的回答
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 个评论
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!