Matlab unable to use existing Embedded Coder License

43 次查看(过去 30 天)
I am running the https://www.mathworks.com/help/soc/ug/5GNRCellSearchUsingXilinxRFSoCDevice.html on example for the Xilinx RFSoC ZCU 111 on MATLAB Simulink 2022b, with Xilinx Vivado v2020.2. When I select the Configure, Build & Deploy option on the soc project, Followed by Build, load, and run>Validate Menu>Validate
Error is raised for Required MathWorks products and vedor tool with message "The use of this feature requires a license for the Embedded Coder"
However when testing for the license:
license('test','RTW_Embedded_Coder')
ans =
1
Any help in deducing the issue is appreciated.

回答(1 个)

Himanshu
Himanshu 2023-10-20
Hey,
I understand that you are trying to generate C/C++ code using Embedded Coder, but MATLAB does not read your Embedded Coder License.
C/C++ code generation features for Simulink models are only available if you have the following products installed and licensed for:
  • MATLAB Coder
  • Simulink Coder
  • Embedded Coder
Please try out the following troubleshooting steps:
  1. Check out the licenses by running the following commands in MATLAB:
>> [status,errmsg] = license('checkout','matlab_coder')
>> [status,errmsg] = license('checkout','real-time_workshop')
>> [status,errmsg] = license('checkout','RTW_Embedded_Coder')
Each command should return 'status = 1' and "errmsg = 0×0 empty char array" if the license checkout is successful.
Note that Embedded Coder depends on Simulink Coder. This means that Embedded Coder only works if Simulink Coder is also installed and licensed for. Simulink Coder depends on MATLAB Coder in the same way.
If a license checkout fails, or the products are not listed as in use after checkout, contact your MATLAB License Administrator or MathWorks Installation Technical Support. 
2. Execute the following command to get the full list of installed products and associated licenses per product:
>> ver -support
Check that MATLAB Coder, Simulink Coder and Embedded Coder are listed.
If a product is missing from the above list, then add MATLAB Coder and Simulink Coder and Embedded Coder toolboxes to your existing installation as shown in the following link:
3. After following the steps mentioned above, restart MATLAB on your device. Restarting MATLAB and/or your PC may resolve the issue, especially if a MathWorks-related product was recently installed or updated.
Hope this helps!
  1 个评论
Danna
Danna 2023-10-24
编辑:Danna 2023-10-24
@Himanshu Thanks for the help! I realized that even though I had Embedded Coder installed, Matlab wasn't recognizing it when I ran
ver -support
. I did the following:
  1. Shift matlab from non-root to root, through license manager.
  2. I went to Add Ons>Manage Add Ons>Uninstalled Embedded Coder and just reinstalled it.
  3. Shifted matlab back to non-root user.
Followed by this I opened Matlab again and that did the trick.

请先登录,再进行评论。

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by