Error while compiling embedded coder for Freescale FDRM-KL25z

3 views (last 30 days)
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
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?

Accepted Answer

Alex Lo
Alex Lo on 2 Jan 2015
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

More Answers (1)

MathWorks Student Competitions Team
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:
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.
  1 Comment
Alex Lo
Alex Lo on 1 Jan 2015
Thanks for the suggestion but the problem still remains. I click "Build Model" to test on my freedom board and the errors occurs, however if i directly open the pre-configured example code "freedomboard_RGB_LED" to compile it does not shows any error but when i take out components from the embedded coder for freescale like in this case an "analog output" into the pre-configured example workspace it will gives error messages.
mex -setup still could not find any SDK in my PC eventhough i follow the installation order properly but my matlab still cannot find any compatible MEX
The error message is always related to .mexw64 could not be locate that is why i suspecting whether my path was set correctly? But how to i configure when during installation of the support package it will auto save it at C:Matlab but not C:Program Files/Matlab/R2014a.

Sign in to comment.

Categories

Find more on Application Deployment 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!