I finally found the solution for this bug, indeed its related to MEX and because >>mex -setup shows error means the SDK must be form to allow the compiler to run ert.tlc file. After reinstalling Visual Studio 2010 and Visual Studio 2013 Update 4 and windows SDK, relatively everything the error still remains. But by running windows SDK patch it solves the problem http://www.microsoft.com/en-us/download/details.aspx?displaylang=en&id=4422 the best is to follow this link, read everything thoroughly and identify the problem yourself if anybody come across this error regards~ http://www.mathworks.com/matlabcentral/answers/101105-how-do-i-install-microsoft-windows-sdk-7-1
Error while compiling embedded coder for Freescale FDRM-KL25z
1 view (last 30 days)
Show older comments
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/146649/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/146650/image.png)
I did follow the instruction from the example code to set up the configuration panel but this error message still exist and I;m suspecting this problem is related to MEX file because when i type >>mex -setup it pop out Error using mex No supported compiler or SDK was found. For options, visit http://www.mathworks.com/support/compilers/R2014a/win64. However i already follow the Matlab support to reinstall windows SDK 7.1 and the following from this link http://www.mathworks.com/matlabcentral/answers/101105-how-do-i-install-microsoft-windows-sdk-7-1
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/146651/image.png)
So is it the solution is to uninstall every damn thing and start installing the order from windows sdk 7.1 then lastly to Freescale support package?
0 Comments
Accepted Answer
More Answers (1)
MathWorks Student Competitions Team
on 31 Dec 2014
Edited: MathWorks Student Competitions Team
on 31 Dec 2014
Hi Alex,
There are a few things you can do before resorting to a complete reinstall.
- It looks like you are trying to simulate this model (i.e. you clicked on the green "PLAY" button). If you want to load this onto the FRDM-KL25Z connected to the computer, you should build the model and load it onto the hardware by clicking on the "Build Model" button. This will use the compiler that came with the support package and will resolve the immediate issue you are seeing. See the Getting Started Example for more details.
- If you recently installed the Microsoft Windows SDK (7.1) then you may need to restart you computer before MATLAB will detect the compiler using the command:
mex -setup
- Try creating a model using the Freescale Cup Companion App that came with the Support Package. You can open it by clicking on the App's Icon on the Apps Tab in the MATLAB Toolstrip:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/172721/image.png)
App Icon
Once the App opens you can click on the "Create New Model" button to create a model that is already setup for the Freescale FRDM-KL25Z.
If none of these things help, then please contact <mailto:support@mathworks.com <mailto:support@mathworks.com support@mathworks.com>>, as they will be able to help you figure out why MATLAB is unable to detect the compiler.
If you have any other questions about using MATLAB or Simulink for the Freescale Cup, you can email <mailto:freescalecup@mathworks.com <mailto:freescalecup@mathworks.com freescalecup@mathworks.com>>, and for more information about how to use MATLAB and Simulink for the Freescale Cup, you can visit the MathWorks' Freescale Cup Student Competition Page.
See Also
Categories
Find more on Standalone Applications in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!