MBDT for KV5X, not select desired mcu from hardware part (# MKV58F1M0VLL24)

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

MBDT for KV5X, not select desired mcu from hardware part (# MKV58F1M0VLL24)

Jump to solution
450 Views
ayarar
Contributor I

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.

KV5x @mariuslucianand 

 

Thanks in advance

0 Kudos
Reply
1 Solution
349 Views
ayarar
Contributor I

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.

View solution in original post

0 Kudos
Reply
3 Replies
369 Views
stefancinipeanu
NXP Employee
NXP Employee

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.

0 Kudos
Reply
350 Views
ayarar
Contributor I

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.

0 Kudos
Reply
338 Views
stefancinipeanu
NXP Employee
NXP Employee

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.

0 Kudos
Reply