Problem with matlab code generator, ode45.c file error with rsim.tlc target

Hello,
I’m trying to generate code from the absbrake demo ( http://www.mathworks.com/products/simulink/examples.html?file=/products/demos/shipping/simulink/sldemo_absbrake.html) and I’m using the rsim.tlc target. But I’m having some problems with the code generation.
At the end of the code generation gives me an error/warning “Catastrophic error #1696: cannot open source file "ode45.c"Compilation terminated.” (error log: https://dl.dropboxusercontent.com/u/13427263/error_log.txt). Despite this, the files were successfully (I think) generated.
Now I’m trying to Build a project using the Matlab generated code, but it gives me and error in “simstruc.h” file: “#error Unrecognized use."
Can anyone help me? How can I solve my problem?
Btw: I’m using the Code Composer Studio IDE, it’s a kind of a plug-in for eclipse to create projects for the Stellaris EK-LM3SB90 Board.

Answers (0)

Categories

Find more on Simulink Coder in Help Center and File Exchange

Products

Asked:

on 27 May 2013

Community Treasure Hunt

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

Start Hunting!