In the Bcd_775a_SYS_SetMode module of mbdt, the code generation failed

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

In the Bcd_775a_SYS_SetMode module of mbdt, the code generation failed

Jump to solution
2,750 Views
zuozuo
Contributor III

In the MBDT toolbox, when using thefunction module, a UI error occurred and the code generation also failed.

This issue is also present in other official demos.

Is it that the S32 DS is lacking in configuration?

 

 

0 Kudos
Reply
1 Solution
2,586 Views
zuozuo
Contributor III

hello,mariuslucianand:

I have replaced it in your way, and the code is displayed on the MATLAB page and generated normally. Thank you very much!

View solution in original post

Tags (1)
0 Kudos
Reply
7 Replies
2,673 Views
mariuslucianand
NXP Employee
NXP Employee

Hello @zuozuo,

hank you for reaching out on our community. In order to properly investigate the issue and provide the correct fix or patches, we would like to identify first which MATLAB version and which MBDT toolbox versions you are using. Could you please run the following command in the MATLAB Command Window and share the resulting output with us?
 
 v = evalc('ver'); lines = strsplit(v, newline); matches = lines(contains(lines, {'Model-Based Design Toolbox', 'MATLAB Version'})); disp(strjoin(matches, '\n'))

 

Regards,

Marius

0 Kudos
Reply
2,613 Views
zuozuo
Contributor III

Hello, the attached image is the latest result of my code execution. It shows on the Matlab page that the MBDT toolbox is V1.4.0, and I was able to pass the initial version verification. I can also generate BMS code using the Matlab toolbox, but this module cannot be used. Currently, my program has integrated many other MBDT modules. If the version is incorrect, I do not want to reinstall the driver library. Can I manually implement this module using MATLAB functions? Will it have any impact?

0 Kudos
Reply
2,590 Views
mariuslucianand
NXP Employee
NXP Employee

Hello @zuozuo,

The MBDT version you are using is correct—I just wanted to confirm that you are already on the latest release of the toolboxes. There is no need to install any other toolbox, as your current setup is fully supported. We have encountered a similar issue in the past, and as a workaround we can provide a quick fix, which is attached in the ZIP file below.
 
To apply the fix, please go into the MATLAB Command Window and run the following command:
 winopen(fullfile(mbd_find_bms_root, 'mbdtbx_bms', 'blocks', 'bcc_775a'))

In the newly opened window, please first backup the current bms_bcc_775a.mexw64 and then replace this file with the one from the attached archive.

Please let us know if after applying the patch the functionality of the Bcc_77sa_SYS_SetMode work.

Hope this helps,

Marius

 
0 Kudos
Reply
2,555 Views
zuozuo
Contributor III

hello:

I continued to use the MBDT toolbox and found that when using the Bcc_775a_SYS_Configure module library, his MATLAB UI page was missing a parameter compared to the standard Bcc_775a_SYS_Configure function, and the code generation failed. What's going on? Can you help me?
Please refer to the attached image for detailed information

Tags (1)
0 Kudos
Reply
2,416 Views
mariuslucianand
NXP Employee
NXP Employee

Hello @zuozuo 

Thank you for the reported behavior, I was able to reproduce it on our side and now I am back with a hotfix.

Please download and unzip the patch archive and copy the 2 files as follows in different folders:

1. In MATLAB Command Window type the following command and copy the attached bms_bcc_775a.mexw64

winopen(fullfile(mbd_find_bms_root, 'mbdtbx_bms','blocks','bcc_775a'))

2. In MATLAB Command Window type the following command and copy the blocks_init.p

winopen(fullfile(mbd_find_bms_root, 'mbdtbx_bms','+mbd_bms','+nxp','+bcc_775a'))

This shall fix the reported behavior related to the Bcc_775a_SYS_Configure  function.


Regards,

Marius

 

0 Kudos
Reply
2,587 Views
zuozuo
Contributor III

hello,mariuslucianand:

I have replaced it in your way, and the code is displayed on the MATLAB page and generated normally. Thank you very much!

Tags (1)
0 Kudos
Reply
2,618 Views
zuozuo
Contributor III

Hello, the attached image is the result of my code execution

0 Kudos
Reply