I am using the Polyfit block from the DSP Blockset in my Simulink model. Although the model runs fine in the simulation mode, I am unable to generate code using Real-Time Workshop Embedded Coder for my MotoHawk™ ECU (Electronic Control Unit)-based rapid prototyping system. I receive the following error message in the MATLAB Command Window during the build process:
ERROR: "C:\MATLAB6p5\work\combustion_control\nn_6_Build\nn_6_private.h", line 45: catastrophic error #5: could not open source file "dsp_rt.h"
I have checked and dsp_rt.h is installed in the correct directory (MATLABROOT\toolbox\dspblks\include, where MATLABROOT is the MATLAB installation directory) and that this directory is on my MATLAB path.
Best Answer