Couldn't find the blocks under S32K3

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Couldn't find the blocks under S32K3

Jump to solution
8,775 Views
XH
Contributor I

Hi there, I hope this message finds you well. I have installed the NXP MBDT Toolbox for S32K3xx MCUs, but for some reason I couldn't see anything in the Simulink library under the S32K3xx core, system, peripherals and utilities tab, as shown in the attached photo. Could you advise what the issue is and how to solve it?

 

Many thanks,

 

Xiaomei

0 Kudos
Reply
1 Solution
8,616 Views
dragostoma
NXP Employee
NXP Employee

Hi, @XH,

The problem you are experiencing is because you are trying to open the block mask directly in the library. Each block contains various parameters and channels, specific to the configuration of each model. Because of this, the block mask in the library is grayed out. You can use the block and its parameters by adding the block to a Simulink model.

 

Best regards,

Dragos

View solution in original post

0 Kudos
Reply
12 Replies
8,768 Views
dragostoma
NXP Employee
NXP Employee

Hi, @XH,

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

First of all, what versions of MATLAB and Toolbox are you currently using? This way, we can try to reproduce your problem directly on your setup.

Until then, try reopening MATLAB and Simulink and refreshing the Simulink Library, by pressing F5 or by right-clicking on any section in the dropdown:

dragostoma_0-1736332384323.png

Keep us updated on your progress.

 

Best regards,

Dragos

0 Kudos
Reply
8,755 Views
XH
Contributor I

Hi @dragostoma 

 

Thanks for your reply. The Matlab I use is 2024b, and the S32k3xx MBDT toolbox is Ver 1.5.0

After I refresh the tab "communication blocks", this window jumps out as shown in the attached photo.

 

Please advise what to try next

 

Many thanks,

 

Xiaomei

0 Kudos
Reply
8,715 Views
dragostoma
NXP Employee
NXP Employee

Hi, @XH,

Try the second option - "Generate repositories in memory" when you press the refresh button.

Keep in mind that the toolbox version 1.5.0 does not include support for MATLAB version 2024b. Therefore, you need to make sure that you run the path creation script (mbd_s32k3_path.m) to generate the codertarget folder corresponding to the version you are using (folder found at mbdtbx_s32k3|codertarget|2024b). If the folder exists but is empty, run the command mbd_s32k3.nxp.target.create_codertarget() to generate the folder contents. After that, make sure that this folder is in the MATLAB path. You should be able to use blocks by dragging and dropping them into a Simulink model.

Try this and let me know how it worked.

 

Hope this helps,

Dragos

0 Kudos
Reply
8,711 Views
XH
Contributor I

Hi @dragostoma ,

 

Thanks for your reply. Can I ask does toolbox version 1.5.0 support for MATLAB version 2024a?

Many thanks,

 

Xiaomei

0 Kudos
Reply
8,708 Views
dragostoma
NXP Employee
NXP Employee

Hi, @XH,

Please check the Model_Based_Design_Toolbox_S32K3xx_Series_Release_Notes.pdf document to view all the features available in this version of the toolbox, and the supported MATLAB versions.

Version 1.5.0 is developed and tested to support the following versions of MATLAB:

- R2021a;
- R2021b;
- R2022a;
- R2022b;
- R2023a;
- R2023b;
- R2024a;

 

Best regards,

Dragos

0 Kudos
Reply
8,672 Views
XH
Contributor I

Hi @dragostoma ,

Thanks for your reply. I have uninstalled Matlab 2024b and re-installed 2024a. Then I followed the steps in " Model-Based Design Toolbox S32K3xx Series Quick Start Guide" to set up the toolbox. Now I can see the names of the blocks in the Simulink Library but not the whole block, as shown in the attached photo. Could you please advise what to do next?

Many thanks,

 

Xiaomei

0 Kudos
Reply
8,629 Views
dragostoma
NXP Employee
NXP Employee

Hi, @XH,

This is a known issue in MATLAB 2024a and will be fixed in the next release. But it is only a visual issue, you can still use the blocks by dragging and dropping them into a Simulink model.

Thank you for reporting this issue to us.

 

Best regards,

Dragos

0 Kudos
Reply
8,619 Views
XH
Contributor I

Hi, @dragostoma 

Thanks very much for your reply. Once I click on this blocks, to open its mask configuration box, some areas are greyed. Is this normal, like also a part of the visual issues? Please see attached photo for this. Many thanks, Xiaomei

0 Kudos
Reply
8,617 Views
dragostoma
NXP Employee
NXP Employee

Hi, @XH,

The problem you are experiencing is because you are trying to open the block mask directly in the library. Each block contains various parameters and channels, specific to the configuration of each model. Because of this, the block mask in the library is grayed out. You can use the block and its parameters by adding the block to a Simulink model.

 

Best regards,

Dragos

0 Kudos
Reply
8,612 Views
XH
Contributor I

Hi @dragostoma ,

Thanks Dragos, it works. Many thanks! from Xiaomei

0 Kudos
Reply
8,624 Views
XH
Contributor I

Hi @dragostoma ,

 

Thanks very much for your reply. Once I click on this blocks, to open its mask configuration box, some areas are greyed. Is this normal, like also a part of the visual issues? Please see attached photo for this.

0 Kudos
Reply
8,764 Views
XH
Contributor I

Hi Dragos, The Matlab version that I use is 2024b, and the Toolbox is version 1.5.0. Please advise what to try next.

 

Many thanks,

 

Xiaomei

0 Kudos
Reply