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~
已解决! 转到解答。
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
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
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:
Step 3: Select the License Keys Tab:
Step 4: Select the available license and click on generate
Step 5: Open a CMD and type "vol c"
Step 6: Add the information about your setup and generate the license
Step 7: Generate and save the license on your PC into the ...\mbdtbx_MPC574xP\lic folder
Step 8: Restart MATLAB and have fun!!!
A longer version of the NXP's licensing can be found here.
Hope this helps!
Daniel
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~~
Hi zhangjing711@126.com,
Have you placed the file into the mbdtbx_MPC574xP\lic folder ?
Also, please make sure the license extension is license.lic
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
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.
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.
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
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