Remove s32K146 variant handle from a module

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Remove s32K146 variant handle from a module

1,367 次查看
shubham_prajapati
Contributor I

Hello,

Currently I have 3 variants in project. For the MCU module.

Previously I was maintaining three configuration files (eg. MCU_Variant1_PBcfg, MCU_Variant2_PBcfg & MCU_Variant3_PBcfg). This was done by adding variant criterion option shown below:

shubham_prajapati_0-1641796392166.pngshubham_prajapati_0-1641796392166.png

 

Now I want to have just one configuration file (MCU_PBcfg) common for all the variants. To do this I have removed the variant option from the MCU module parameter as shown:

 

shubham_prajapati_1-1641796554078.pngshubham_prajapati_1-1641796554078.png

 

But I am getting the below errors. Can u please guide on this?

shubham_prajapati_3-1641796915680.pngshubham_prajapati_3-1641796915680.png

 

Regards

Shubham

0 项奖励
回复
2 回复数

1,339 次查看
namnguyenviet
NXP Employee
NXP Employee

Or you can try to disable the EcuCPostBuildVariant:

namnguyenviet_0-1642145215886.pngnamnguyenviet_0-1642145215886.png

 

Best Regards,

Nam

 

0 项奖励
回复

1,342 次查看
namnguyenviet
NXP Employee
NXP Employee

Hello @shubham_prajapati,

If you want to keep only one variant, then you can remove unused post-build variant ref:

namnguyenviet_0-1642143588796.pngnamnguyenviet_0-1642143588796.png

However, my understanding is you want to remove the whole variant concept (as a result the configuration file name will not contain the variant name, e.g. Mcu_PBCfg.c instead of Mcu_PBCfg_VS_0.c). In that case, it would be more complicated, and as my experience, here are the steps I often do:

1. Export the configuration from the variant which I want to keep to .epc files

2. Emove all of the modules and the .xdm files

3. Re-add all of the modules

4. Import the .epc files from step 1.

Best Regards,

Nam

 

0 项奖励
回复