MATLAB: Embedded coder generating code for MPC55xx using gcc compiler

Embedded Coderembedded matlab

I am using Matlab Simulink 2011b. and would like to to use the mingw gcc, make etc. to compile code generated with embedded coder for the mpc555 target. So far i have only found documentation explaining how to set up the diab or windriver toolchain. This should work with the gcc compiler as well but is there any documentation on the setup?

Best Answer

I don't believe Embedded Coder officially supports GCC as a compiler for MPC55xx specific targets. Do you have access to MPC55xx libraries for GCC (if yes, is that a mainstream package?).
However, note that code generated from Simulink is ANSI-compliant, so you can configure a model to work with pretty much any C compiler. If you are generating code for MPC55xx blocks/drivers, you will need to figure out the GCC rules to link against these driver libraries. See Custom Target Development for documentation on how you can customize the code generation and build process.