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
解決済! 解決策の投稿を見る。
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
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:
Keep us updated on your progress.
Best regards,
Dragos
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
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
Hi @dragostoma ,
Thanks for your reply. Can I ask does toolbox version 1.5.0 support for MATLAB version 2024a?
Many thanks,
Xiaomei
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
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
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
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
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
Hi @dragostoma ,
Thanks Dragos, it works. Many thanks! from Xiaomei
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.
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