In most cases, the algorithm developed in MATLAB is part of a larger application and the generated C code is in the format of a static library. Once the C code is generated, we will take the generated code and integrate it with the rest of the application.
In this section, we will integrate the generated code into an Eclipse project and make use of Eclipse IDE and CodeBench Lite to create the executable for BeagleBoard.
We now create a new blank C/C++ project for the BeagleBoard in Eclipse and include the generated C code into the project by following the steps:
Create a new Eclipse C project targeting the BeagleBoard with the project name
mycalcavgC
. We need an ARM Cross Target Application C/C++ project. Navigate to File | New | C project to open the C Project dialog. Select ARM Cross Target Application as the project type and ARM Windows GCC (Sourcery G++ Lite) for toolchains. Then click on...