Build Process Error

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 
691件の閲覧回数
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 解決策
625件の閲覧回数
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 返答(返信)
594件の閲覧回数
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 件の賞賛
返信
626件の閲覧回数
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 件の賞賛
返信