Hi,
I am using NXP MBDT Model-Based Design Toolbox for KVx Series MCUs (1.0.0) and Matlab R2019a in order to develop some projects with MKV58F1M0VLL24 MCU. In the Simulink Configuration Parameter pane, MKV58F1M0VLQ24 is listed as default MCU after selecting hardware board as NXP MKV5x. When i try to change it with MKV58F1M0VLL24 MCU, default MCU (MKV58F1M0VLQ24) is replaced again at the hardware part section. How can i fix this issue? How can i develop a project with any MCUS listed in hardware part section? Is there a way to select only hardware part insted of selecting hardware board (Similar with imx rt series). Note: I downloaded already relevant Config Tool datas for the specified MCUs and i can easily configure the pins from Config Tool.
Thanks in advance
Solved! Go to Solution.
Hello @stefancinipeanu
Yes, I have succesfully download & access the content of the attached zip file, thanks for your reply. I replaced this file and now i can select relevant MCU from Model Settings of a Simulink model. But this time, new selected hardware's info is not updated in the *.mex file. When i tried to configure any block parameter, MKV58F1M0VLQ24 LQFP 144 package is still opened at Config Tool instead of MKV58F1M0VLL24 LQFP 100 package (pls see 1.png). Is there any solution for this issue? Or should i need to change package from File >> Switch Package (pls. see 2.png) in order to use MKV58F1M0VLL24 LQFP 100 package over Config Tool and save and update code for changing *.mex files and board files under *Config folder?
Thanks in advance for your support.
Hello @ayarar
Indeed you are right, there is a bug regarding the selection of the HW part for KV5x from Model Settings of a Simulink model.
To overcome this, please use the file attached to this thread in order to fix the issue. Replace the mbd_kvx_check_selected_hardware_part.p with the one from the attached archive in the following location: {toolbox_installation_root}/mbdtbx_kvx/mscripts/ui
Let me know if you could download & access the content of the attached zip file and of course if you still had issues with changing the HW part of your model.
Regards!
Stefan.
Hello @stefancinipeanu
Yes, I have succesfully download & access the content of the attached zip file, thanks for your reply. I replaced this file and now i can select relevant MCU from Model Settings of a Simulink model. But this time, new selected hardware's info is not updated in the *.mex file. When i tried to configure any block parameter, MKV58F1M0VLQ24 LQFP 144 package is still opened at Config Tool instead of MKV58F1M0VLL24 LQFP 100 package (pls see 1.png). Is there any solution for this issue? Or should i need to change package from File >> Switch Package (pls. see 2.png) in order to use MKV58F1M0VLL24 LQFP 100 package over Config Tool and save and update code for changing *.mex files and board files under *Config folder?
Thanks in advance for your support.
Hi @ayarar ,
The default mex file attached to a model is targeting just the default hardware part selected when a new model is created, which is the MKV58F1M0VLQ24. Indeed, for MKV58F1M0VLL24, you need to manually update the mex file by going to File -> Switch package from the Configuration Tools.
Regards,
Stefan.