When I build the MPC564xL's demo,the simulink appear an error

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

When I build the MPC564xL's demo,the simulink appear an error

Jump to solution
1,928 Views
hongjinzeng
Contributor IV

Hi everyone,

  My Matlab version is 2015b and x64.The MC Toolbox is MPC564xL.When I bulid the demo 'CTU_ISR' ,the error appear.

pastedImage_1.png

0 Kudos
1 Solution
1,508 Views
hongjinzeng
Contributor IV

Thanks for you.After I remove PATH variable 'C:\cygwin64\bin',the model build successful.

View solution in original post

10 Replies
1,508 Views
dumitru-daniel_
NXP Employee
NXP Employee

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 ?

pastedImage_1.png

Hope this helps!

Daniel

PS: i tried the model on my setup Win7+Matlab 2015b and it works fine.

0 Kudos
1,508 Views
hongjinzeng
Contributor IV

When I run the ver in the Matlab cmd,the Embedded Coder appeared.

pastedImage_1.png

0 Kudos
1,508 Views
dumitru-daniel_
NXP Employee
NXP Employee

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

0 Kudos
1,509 Views
hongjinzeng
Contributor IV

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>'.

0 Kudos
1,509 Views
dumitru-daniel_
NXP Employee
NXP Employee

That is strange! Have you run the rappid_path.m prior of using the toolbox ?

Daniel

0 Kudos
1,509 Views
hongjinzeng
Contributor IV

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?

0 Kudos
1,509 Views
constantinrazva
NXP Employee
NXP Employee

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.

0 Kudos
1,509 Views
hongjinzeng
Contributor IV

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

0 Kudos
1,509 Views
dumitru-daniel_
NXP Employee
NXP Employee

Hi zenghongjin@chegustech.com‌,

Please check this one: https://community.nxp.com/thread/463093 

I think it is the same issue.

Best regards,

Daniel

0 Kudos
1,509 Views
hongjinzeng
Contributor IV

Thanks for you.After I remove PATH variable 'C:\cygwin64\bin',the model build successful.