| Embedded IDE Link™ CC | ![]() |
load(cc,'filename',timeout)
load(cc,'filename')
load(cc,'gelfilename',timeout)
load(cc,'filename',timeout) loads the file specified by filename into the target processor. filename can include a full path to a file, or just the name of a file that resides in the CCS working directory. Use cd to check or modify the working directory. Only use load with program files that are created by the CCS build process.
timeout defines the upper limit on how long MATLAB® software waits for the load process to be complete. If this period is exceeded, load returns immediately with a time-out error.
load(cc,'filename') loads the file specified by filename into the target processor. filename can include a full path to a file, or just the name of a file that resides in the CCS working directory. Use cd to check or modify the working directory. Only use load with program files that are created by the CCS build process. timeout defaults to the global value you set when you created link cc.
Note load disables all open channels. Open channels revert to disabled. |
load(cc,'gelfilename',timeout) loads and opens the general extension language (GEL) file named gelfilename into CCS, in the active project. gelfilename needs to be the full path to the file, or just the file name if the file already shows up in your CCS workspace or project. load adds the GEL file to the active project only. To make a different project active so you can add your GEL file to it, use activate.
The timeout option is not required, as is true for most methods in the product. Using load to add a GEL file is identical to using the File > Load GEL... option in CCS IDE. Your loaded GEL file appears in the GEL files folder in CCS. To remove GEL files, use remove. You can load any GEL file — you must be sure the GEL file is the correct one. load does not attempt to verify whether the GEL file is appropriate for your hardware or project.
Taken from the CCS link tutorial, this code prepares for and loads an object file filename.out to a target processor.
projfile =... fullfile(matlabroot,'directoryname','directoryname','filename') projpath = fileparts(projfile) open(cc,projfile) % Open project file cd(cc,projpath) % Change Code Composer working directory
Now use CCS IDE to build your file. Select Project > Build from the menu bar in CCS IDE.
With the project build complete, load your .out file by entering
load(cc,'filename.out')
![]() | list | msgcount | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |