S32DS Force re-generation of all code

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

S32DS Force re-generation of all code

跳至解决方案
1,435 次查看
soerenh
Contributor II

Hi!

Is there a way to force re-generation of all code in the generated/ folder of a S32DS workspace project?

It seems that S32DS somehow memorizes files that it has generated and only re-generates them when the underlying configuration has changed. This is not very practical for collaborative develoment and can create differences among different S32DS installations. I'd like to forcefully re-generate all code in generate/ in order to have a consistent status.

 

I have tried:

1) to reload the SDK (Manage SDKs -> reload), but that did only overwrite some, but not all files. Siul2_Port_Ip_BOARD_InitPeripherals_PBcfg.h is one example, which isn't re-generated after that

2) deleting the generated/ folder. S32DS dosn't seem to care, but keeps on creating only files if I change the module configuration

3) cleaning the project

 

I'm desperately lost. I believe I have tried every button and setting... any help is much appreciated!

SDK I'm using is PlatformSDK_S32XX_4_0_0_S32G399A_M7_0

S32DS version: 3.5, Build id: 240529 (Update 12)

标记 (2)
0 项奖励
回复
1 解答
1,402 次查看
jiri_kral
NXP Employee
NXP Employee

Hi, 

deleting the generated and RTD folder should work. In project explorer right click on folder name and delete. Then go back into Config Tool and generate code again. 

 

If it still doesn't work, try to create new workspace and import your project into it. 

在原帖中查看解决方案

0 项奖励
回复
2 回复数
1,403 次查看
jiri_kral
NXP Employee
NXP Employee

Hi, 

deleting the generated and RTD folder should work. In project explorer right click on folder name and delete. Then go back into Config Tool and generate code again. 

 

If it still doesn't work, try to create new workspace and import your project into it. 

0 项奖励
回复
1,347 次查看
soerenh
Contributor II

Thank you Jiri,

I've moved the generated files to another folder, but still S32DS was smart enough to relocate them in the new place - this is the reason why they have not been re-generated on my side. I've now moved the folder outside the workspace scope and it seems to re-generate the files...