How to generate a license for NPX's Model-Based Design Toolbox

cancel
Showing results for 
Search instead for 
Did you mean: 

How to generate a license for NPX's Model-Based Design Toolbox

Jump to solution
474 Views
zhangjing711
Contributor I

Hello, dear colleges,

 

when I set up the Codewarrior S32 and also set up the MBD Toolbox to the matlab, I try to generate the C code automatically, but the the error happens like the picture, so could you please tell me, what's the reason and how to fix it, thank you~error.png

0 Kudos
1 Solution
134 Views
dumitru-daniel_
NXP Employee
NXP Employee

Hi zhangjing711@126.com‌,

I would not go to extreme: windows reinstall. We have not understood the root cause of the failure yet.

According with this: https://community.nxp.com/message/941909?commentID=941909%23comment-941909#comment-908767 your error message means:

-1
Cannot find license file.

For your screenshot it seems you have used a custom install path. The default one is: C:\MBDToolbox\mbdtbx_MPC574xP

pastedImage_2.png

Perhaps that extra " space " might be causing something bad.

Can you please install the toolbox again in the default path suggested by the installer ?

Thank you!

Daniel

View solution in original post

0 Kudos
6 Replies
134 Views
dumitru-daniel_
NXP Employee
NXP Employee

Hi zhangjing711@126.com‌,

The NXP Model-Based Design Toolbox is free of charge but it still require you to own a license to work.

The license can be downloaded for free your NXP account.

How to get and install the license procedure is shown in this video:  Video Link : 7692 starting with 3'15" (same video is also available on YOUKU)

Short tutorial below:

Step 1: Log in into your NXP's account;

Step 2: Select the MBDT link you wish to generate the license for:

pastedImage_2.png

Step 3: Select the License Keys Tab:

pastedImage_3.png

Step 4: Select the available license and click on generate

pastedImage_4.png

Step 5: Open a CMD and type "vol c" 

pastedImage_5.png

Step 6: Add the information about your setup and generate the license

pastedImage_6.png

Step 7: Generate and save the license on your PC into the ...\mbdtbx_MPC574xP\lic folder

pastedImage_7.png

Step 8: Restart MATLAB and have fun!!!

A longer version of the NXP's licensing can be found here.

Hope this helps!

Daniel

0 Kudos
134 Views
zhangjing711
Contributor I

Hello dear Mr.dumitru-daniel.popa,

I just install the MBD toolbox in the right way, but the problem still exists, so I'm also confused, could you please have a look at all the pics. Thank you~~

error1.pngerror2.pngerror3.pngerror4.png

0 Kudos
134 Views
dumitru-daniel_
NXP Employee
NXP Employee

Hi zhangjing711@126.com‌,

Have you placed the file into the mbdtbx_MPC574xP\lic folder ?

pastedImage_1.png

Also, please make sure the license extension is license.lic

pastedImage_5.png

Then, you could try to re-run the mbd_pnt_path.m script and restart MATLAB

Apart of these, once you pass the license you should try to update the build tools to use one of the latest S32 Design Studio and then apply this patch: https://community.nxp.com/thread/451804#comment-916493 

Let me know if this works!

Best regards,
Daniel

0 Kudos
134 Views
zhangjing711
Contributor I

Hello dear Mr.dumitru-daniel.popa,

thank you for your patience~I notice the points you have mentioned, but still the same problem.

If still failed I want to reinstall the windows system and try it again.error5.pngerror6.png

0 Kudos
134 Views
jfrey
Contributor IV

Do you have an A: or B: drive installed?


Do not just navigate to the C: drive.

Navigate to mbdtbx_MPC574xP\tools\mlt


Run  !lmhostid.exe vsn

That is the number you should use to generate your license with. 

Additionally it is trivially easy to disable the licensing all together. Dig through the scripts and all of the licensing ones are aptly named.

0 Kudos
135 Views
dumitru-daniel_
NXP Employee
NXP Employee

Hi zhangjing711@126.com‌,

I would not go to extreme: windows reinstall. We have not understood the root cause of the failure yet.

According with this: https://community.nxp.com/message/941909?commentID=941909%23comment-941909#comment-908767 your error message means:

-1
Cannot find license file.

For your screenshot it seems you have used a custom install path. The default one is: C:\MBDToolbox\mbdtbx_MPC574xP

pastedImage_2.png

Perhaps that extra " space " might be causing something bad.

Can you please install the toolbox again in the default path suggested by the installer ?

Thank you!

Daniel

View solution in original post

0 Kudos