Hi everyone,
My Matlab version is 2015b and x64.The MC Toolbox is MPC564xL.When I bulid the demo 'CTU_ISR' ,the error appear.
Solved! Go to Solution.
Thanks for you.After I remove PATH variable 'C:\cygwin64\bin',the model build successful.
Hi zenghongjin@chegustech.com,
In general such error appears when the MATLAB can't find a valid license for the Embedded Coder - which is used to generate the C-code for the Simulink model.
Please type "ver" in the MATLAB command line to display all the toolboxes installed and licensed on your machine. Do you have the embedded coder ?
Hope this helps!
Daniel
PS: i tried the model on my setup Win7+Matlab 2015b and it works fine.
When I run the ver in the Matlab cmd,the Embedded Coder appeared.
Hi zenghongjin@chegustech.com,
Do you get any build_exception.mat into the *_rtw directory ?
Please have a look here: https://community.nxp.com/message/941909?commentID=941909%23comment-941909#comment-902087
That might help to investigate the issue.
Hope this help!
Daniel
When I load the .mat file, the message is 'Error evaluating <a href="matlab:Simulink.internal.OpenCallbackParamsDialog(['CTU_ISR/RAppID_564xL_Config'],'InitFcn');">'InitFcn'</a> callback of RAppID_EC_564xL block (mask) '<a href="matlab:open_and_hilite_hyperlink ('CTU_ISR/RAppID_564xL_Config','error')">CTU_ISR/RAppID_564xL_Config</a>'.
That is strange! Have you run the rappid_path.m prior of using the toolbox ?
Daniel
First,I run the rappid_path.m.Then I open the model and Ctrl+B.In other machine the hostid is xxxxxxxx.In my machine the hostid is xxxxx.Does this cause the error?
hi zenghongjin@chegustech.com,
We had this issue in the past where if your HDD had a serial number with less than 8 characters, the license checking and validation would fail even if the license is correctly generated.
For fixing this problem please update the file attached in the following folder:
{Toolbox install dir}\rappid564xl\rappid564xl\mscripts\ folder rappid_hostid.p file
*note: please make a copy of the original rappid_hostid.p file and rename it as rappid_hostid.p.old in case you ever want to revert to it.
Please let us know if you have further issues with it.
Hope this was helpful !
Razvan.
Thanks for you.The error disappears.But the new error appears.After I set the matlab path to default and reinstall the Toolbox,the error still exist.Blow is the error message:
### Generating code into build folder: D:\modelspace\test\CTU_ISR_rappid_rtw
### Invoking Target Language Compiler on CTU_ISR.rtw
### Using System Target File: C:\MCToolbox\rappid564xl\rappid564xl\rappid564xl.tlc
### Loading TLC function libraries
### Initial pass through model to cache user defined code
### Caching model source code
### Writing source file CTU_ISR.c
### Writing header file CTU_ISR_private.h
### Writing header file CTU_ISR.h .
### Writing header file CTU_ISR_types.h
### Writing header file rtwtypes.h
### Writing source file rappid_main.c
### Writing source file intc_sw_vectable.c
### Writing source file intc_init.c .
### Writing header file sysclk.h
### Writing header file target.h
### TLC code generation complete.
### Evaluating PostCodeGenCommand specified in the model .
### Processing Template Makefile: C:\MCToolbox\rappid564xl\rappid564xl\rappid_564xl_cw_2013.tmf
### CTU_ISR.mk which is generated from C:\MCToolbox\rappid564xl\rappid564xl\rappid_564xl_cw_2013.tmf is up to date
### Building CTU_ISR: .\CTU_ISR.bat
D:\modelspace\test\CTU_ISR_rappid_rtw>set MATLAB=C:\Program Files\MATLAB\R2015b D:\modelspace\test\CTU_ISR_rappid_rtw>"C:\Program Files\MATLAB\R2015b\bin\win64\gmake" -f CTU_ISR.mk GENERATE_ERT_S_FUNCTION=0 INCLUDE_MDL_TERMINATE_FCN=1 COMBINE_OUTPUT_UPDATE_FCNS=1 MULTI_INSTANCE_CODE=0 INTEGER_CODE=0 ISPROTECTINGMODEL=NOTPROTECTING
clean
RELATIVE_PATH_TO_ANCHOR is ..
==== Removing object files from build directory ====
/usr/bin/sh: -c: line 1: syntax error: unexpected end of file
gmake: *** [clean] Error 1
Hi zenghongjin@chegustech.com,
Please check this one: https://community.nxp.com/thread/463093
I think it is the same issue.
Best regards,
Daniel
Thanks for you.After I remove PATH variable 'C:\cygwin64\bin',the model build successful.