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.
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"
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
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
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.
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
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
@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:
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!
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
Hello @as2025,
I just had the same problem with the 1.5.0 version.
In NXP_Support_Package_S32K3xx.m, replace these lines :
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