Hi Dear Daniel,
dumitru-daniel.popa
I found a workaround. I wrote a script to first configure the ProdHWDeviceType as Customed. Then unify the configuration setting between Parent model and Child model. At the end, I explicitly set the ProdHWDeviceType back as Freescale->32-bit PowerPC. Then if you run PIL directly, it works.
The script is as follows:
open('BLDC_com.slx');
open('PIL_model.slx');
set_param('BLDC_com','ProdHWDeviceType','Specified');
set_param('PIL_model','ProdHWDeviceType','Specified');
set_param('BLDC_com','TargetLangStandard','C99 (ISO)');
set_param('PIL_model','TargetLangStandard','C99 (ISO)');%C89/C90 (ANSI)
set_param('BLDC_com','ProdLargestAtomicInteger','Long');
set_param('PIL_model','ProdLargestAtomicInteger','Long');
set_param('BLDC_com','ProdLargestAtomicFloat','Double');
set_param('PIL_model','ProdLargestAtomicFloat','Double');
set_param('BLDC_com','ProdEndianess','BigEndian');
set_param('PIL_model','ProdEndianess','BigEndian');
set_param('BLDC_com','SuppressErrorStatus','on');
set_param('PIL_model','SuppressErrorStatus','on');
set_param('BLDC_com','ProdHWDeviceType','Freescale->32-bit PowerPC');
set_param('PIL_model','ProdHWDeviceType','Freescale->32-bit PowerPC');
However, I still suspect that there are some bugs within the "mbdtbx_MPC574xP",especially the following protected code.
Please check and make the update if necessary.
Thank you!
Sincerely,
Yujiang Wu
