How to solve License error -1: License missing

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

How to solve License error -1: License missing

跳至解决方案
3,910 次查看
jordiclos
Contributor I

License Error: -1, Motor Control Toolbox License Missing, please go to The Motor Control Development Toolbox Web Site to purchase a license or request a demo.

I have already install, generate and place the license file (license.lic) into the directory C:\...\MATLAB\MCToolbox\mctbx_Kinetis\lic

Captura.JPG

标记 (2)
0 项奖励
回复
1 解答
3,679 次查看
Daniel_Popa
NXP Employee
NXP Employee

Hi jordiclos‌,

The "-1" error indicates that the license file can't be found (according with FlexLM error codes: https://community.nxp.com/message/941909?commentID=941909%23comment-941909#comment-908767 )

If you say that you have successfully generated the license for the HostID shown in the picture, and you have save it under the \mctbx_Kinetis\lic\ folder then the only possible scenario that i could think of that may drive you to this failure message is the location of the toolbox.

I see that you have installed it into MATLAB root which is probably under "Program Files". Can you install the toolbox in something like: c:\MCToolbox\mctbx_Kinetis\

Hope it helps!

Daniel

在原帖中查看解决方案

5 回复数
3,634 次查看
Gibson_24
Contributor I

I have already install,  place the license file but  some issues accrued so please help me regarding this.

0 项奖励
回复
3,627 次查看
mariuslucianand
NXP Employee
NXP Employee

Hello @Gibson_24 ,

What toolbox are you using? Make sure you try both with the license extestion .lic and .dat

Regards,

Marius

 

0 项奖励
回复
3,621 次查看
rsating
Contributor III

Be careful how you name the file. It is not enough that the license file extension be correct, the entire filename has to be as expected ("license.dat" or "license.lic") or the activation process will not find the license file. 

3,680 次查看
Daniel_Popa
NXP Employee
NXP Employee

Hi jordiclos‌,

The "-1" error indicates that the license file can't be found (according with FlexLM error codes: https://community.nxp.com/message/941909?commentID=941909%23comment-941909#comment-908767 )

If you say that you have successfully generated the license for the HostID shown in the picture, and you have save it under the \mctbx_Kinetis\lic\ folder then the only possible scenario that i could think of that may drive you to this failure message is the location of the toolbox.

I see that you have installed it into MATLAB root which is probably under "Program Files". Can you install the toolbox in something like: c:\MCToolbox\mctbx_Kinetis\

Hope it helps!

Daniel

3,667 次查看
rsating
Contributor III

It turns out that, not only does the license file have to be in the "lic" subfolder, but it has to be named "license.dat" for "Verify MBD Toolbox License" to find it.  I had bangled "S32K1xx" into the filename, since I have more than one NXP license. That was well intentioned but caused activation to fail. 

It would be nice if the "Activate NXP MBD Toolbox" function re-named the file appropriately as "license.dat" before copying it to the "lic" subfolder for us, or warn us we need to do that. Only after hours of frustration and answers from this thread did I figure out what was wrong.

Thanks

0 项奖励
回复