Build Process Error

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

Build Process Error

跳至解决方案
685 次查看
Manikandan_Raju
Contributor II

Hii,

I am getting following error, while try to build the ADC trial project.  I have attached the Simulink file also. Anyone's help will be highly appreciated. Thanks in advance.

Manikandan_Raju_0-1729437281873.png

 

0 项奖励
回复
1 解答
619 次查看
FlorinCiuca
NXP Employee
NXP Employee

Hello @Manikandan_Raju !

Thank you for your interest in using MBDT!

I opened the attached project and the issue with it, as stated in the Matlab Diagnostic Viewer is that there are 2 files with the same name in it. More specifically, there are 2 files named "Adc.c" inside the project, as follows:

  1. One is located inside the RTD/src folder and it contains the source code for the ADC driver. It is automatically included in the project when Adc blocks are used in the model.
  2. The second one is located inside the "Adc_ert_rtw" folder and is generated and named based on the Simulink model inside the project. In a general case, for a Simulink model named "ModelName", a "ModelName.c" and "ModelName.h" will be generated. Since the model in this case is named "Adc", an "Adc.c" is generated, resulting in conflicts.

A quick fix for this issue would be to rename the Simulink model to something unique and more suggestive. The project should build without errors.

I hope you find this explanation helpful and, if further issues occur, please don't hesitate to contact us again!

Kind regards,

Florin.

在原帖中查看解决方案

0 项奖励
回复
2 回复数
588 次查看
Manikandan_Raju
Contributor II

Hii @FlorinCiuca ,

Thanks for your reply, I have modified  model as per your suggestion. Now I am getting following error,

Manikandan_Raju_0-1729686893667.png

Please look in to it , help me. Simulink model also attached with this.

 

With Regards,

Manikandan R.

0 项奖励
回复
620 次查看
FlorinCiuca
NXP Employee
NXP Employee

Hello @Manikandan_Raju !

Thank you for your interest in using MBDT!

I opened the attached project and the issue with it, as stated in the Matlab Diagnostic Viewer is that there are 2 files with the same name in it. More specifically, there are 2 files named "Adc.c" inside the project, as follows:

  1. One is located inside the RTD/src folder and it contains the source code for the ADC driver. It is automatically included in the project when Adc blocks are used in the model.
  2. The second one is located inside the "Adc_ert_rtw" folder and is generated and named based on the Simulink model inside the project. In a general case, for a Simulink model named "ModelName", a "ModelName.c" and "ModelName.h" will be generated. Since the model in this case is named "Adc", an "Adc.c" is generated, resulting in conflicts.

A quick fix for this issue would be to rename the Simulink model to something unique and more suggestive. The project should build without errors.

I hope you find this explanation helpful and, if further issues occur, please don't hesitate to contact us again!

Kind regards,

Florin.

0 项奖励
回复