Error in OpenToolbox_Callback When Verifying MBDT Installation

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

Error in OpenToolbox_Callback When Verifying MBDT Installation

1,684 次查看
as2025
Contributor I

I'm encountering an error when using the "Verify MBD Toolbox Installation" button in the NXP Support Package for S32K3 (v1.6.0) on MATLAB R2024b.

as2025_0-1748889689701.png

Here’s the error trace:

>> NXP_Support_Package_S32K3
Error using contains
First argument must be text.

Error in NXP_Support_Package_S32K3/OpenToolbox_Callback (line 250)
                result(i) = contains(toolboxes(i).Name, 'NXP_MBDToolbox_S32K3');
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error in appdesigner.internal.service.AppManagementService/executeCallback (line 165)
                callback(appOrUserComponent, event);
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error in matlab.apps.AppBase>@(source,event)executeCallback(ams,app,callback,requiresEventData,event) (line 60)
            newCallback = @(source, event)executeCallback(ams, ...
                                          ^^^^^^^^^^^^^^^^^^^^^^^^
Error in matlab.ui.internal.controller.uicontrol.UicontrolRedirectStrategy/executeCallback (line 203)
                    feval(callback{1}, src, event, callback{2:end});
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error in matlab.ui.internal.controller.uicontrol.PushButtonRedirectStrategy/handleCallbackFired (line 13)
            executeCallback(obj, src, event);
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error in matlab.ui.internal.controller.uicontrol.PushButtonRedirectStrategy>@(varargin)obj.handleCallbackFired(varargin{:}) (line 19)
            component.ButtonPushedFcn = @obj.handleCallbackFired;
                                         ^^^^^^^^^^^^^^^^^^^^^^^
 
Error using appdesservices.internal.interfaces.model.AbstractModel/executeUserCallback (line 282)
Error while evaluating Button PrivateButtonPushedFcn.

I did confirm manually if the toolbox is installed:

>> disp(matlab.addons.installedAddons)
               Name                Version    Enabled                  Identifier              
    ___________________________    _______    _______    ______________________________________

    "NXP_Support_Package_S32K3"    "1.6.0"     true      "7addb8fc-087e-4490-b128-67745df27cab"
    "MATLAB Coder"                 "24.2"      true      "ME"                                  
    "Simulink"                     "24.2"      true      "SL"                                  
    "Simulink Coder"               "24.2"      true      "RT"                                  
    "NXP_MBDToolbox_S32K3"         "1.6.0"     true      "7ac8b4ba-7b61-44b0-a91d-5925288823f8"
    "AUTOSAR Blockset"             "24.2"      true      "AS"                                  
    "Stateflow"                    "24.2"      true      "SF"                                  
    "Embedded Coder"               "24.2"      true      "EC"                       

 

0 项奖励
回复
8 回复数

407 次查看
dragostoma
NXP Employee
NXP Employee

Hi, @as2025@Akil_Visai@yr1205@AlexCloutierDyname

We have recently released a new version of the toolbox (Model-Based Design Toolbox for S32K3 version 1.7.0). You may upgrade to this version and try reinstalling the toolbox using the Support Package installer. Please note once again that the toolbox can also be installed without using the Support Package utility—simply by dragging and dropping the .mltbx file. This method allows you to use the toolbox without encountering the verification issues experienced previously.

Please let us know about the progress.

 

Best regards,

Dragos

0 项奖励
回复

870 次查看
Paul50000
Contributor I

This error occurs because of longer installation path. Go to settings->Add-ons on MATLAB home page and select a shorter installation path. 

Note: before reinstalling the add-ons. go to the default add-ons folder and delete the nxp s32k3xx or s32k1xx support packages folder, otherwise you might face another error which states delete previous version of nxp package. therefore, you might not be able to verify the installation and activate license

0 项奖励
回复

1,080 次查看
Akil_Visai
Contributor I

Having the same issue,still cant install the toolbox.
i tried changing the callback function and got a error message showing toolbox not found on path but it is actually available in the path it is mentioned.

 

0 项奖励
回复

1,650 次查看
dragostoma
NXP Employee
NXP Employee

Hi, @as2025,

Thank you for your interest into Model-Based Design Toolbox for S32K3.

Besides the error that occurs during the toolbox installation verification, have you tried activating the license and using the toolbox? We will attempt to reproduce the issue you encountered, but please try using the toolbox itself to see if there are any problems there or if the installation validation is simply incorrect.

 

Let us know about the progress,

Dragos

0 项奖励
回复

1,086 次查看
yr1205
Contributor I

Hi,

Is there a work around for this? I tried installing the version 1.6.0 few times and i am not able to navigate the issue

Regards,

yr1205

0 项奖励
回复

1,630 次查看
as2025
Contributor I

@dragostoma I get a similar issue when trying to activate the NXP MBD Toolbox:

Error using contains
First argument must be text.

Error in NXP_Support_Package_S32K3/ActivateLicense_Callback (line 320)
                    result(i) = contains(toolboxes(i).Name, 'NXP_MBDToolbox_S32K3');
                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error in appdesigner.internal.service.AppManagementService/executeCallback (line 165)
                callback(appOrUserComponent, event);
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error in matlab.apps.AppBase>@(source,event)executeCallback(ams,app,callback,requiresEventData,event) (line 60)
            newCallback = @(source, event)executeCallback(ams, ...
                                          ^^^^^^^^^^^^^^^^^^^^^^^^
Error in matlab.ui.internal.controller.uicontrol.UicontrolRedirectStrategy/executeCallback (line 203)
                    feval(callback{1}, src, event, callback{2:end});
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error in matlab.ui.internal.controller.uicontrol.PushButtonRedirectStrategy/handleCallbackFired (line 13)
            executeCallback(obj, src, event);
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error in matlab.ui.internal.controller.uicontrol.PushButtonRedirectStrategy>@(varargin)obj.handleCallbackFired(varargin{:}) (line 19)
            component.ButtonPushedFcn = @obj.handleCallbackFired;
                                         ^^^^^^^^^^^^^^^^^^^^^^^
 
Error using appdesservices.internal.interfaces.model.AbstractModel/executeUserCallback (line 282)
Error while evaluating Button PrivateButtonPushedFcn.

>> 

And so this causes an error in verifying the MBDT License:

as2025_0-1748960235135.png

Since the issue seemed to do with activation of the toolbox, I haven't tried actually using the toolbox. I can try that and update you on it.

 

Thank you!

0 项奖励
回复

875 次查看
Paul50000
Contributor I

Use shorter installation path. Go to settings->Add-ons on MATLAB home page and choose a smaller path for installation. i had the same issue, its now resolves. Currently i am using MATLAB 2025a version

Note: Before doing this uninstall the nxp ad ons and go to the default matlab toolbox folder and delete the nxp support folder of s32k3xx or s32k1xx, then choose new shorter location for installation (these things should be done manually) otherwise while installation you will get the message that uninstall or delete previously installed nxp toolbox

0 项奖励
回复

1,372 次查看
AlexCloutierDyname
Contributor I

Hello @as2025,

I just had the same problem with the 1.5.0 version. 

In NXP_Support_Package_S32K3xx.m, replace these lines : 

result(i) = contains(toolboxes(i).Name, 'NXP_MBDToolbox_S32K3xx');
 
with: 
if isempty(toolboxes(i).Name)
else
result(i) = contains(toolboxes(i).Name, 'NXP_MBDToolbox_S32K3xx');
end
 
In my case, it seems like the toolboxes variable had an empty member, which caused the error. 
AlexCloutierDyname_0-1753212718436.png

Your toolbox list seems to have this too (notice the empty space before the first toolbox in the list).

You need to do this replacement three times in the .m.

Hope this helps,

Alex

 
0 项奖励
回复