Build Process Error

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Build Process Error

Jump to solution
449 Views
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 Kudos
Reply
1 Solution
383 Views
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.

View solution in original post

0 Kudos
Reply
2 Replies
352 Views
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 Kudos
Reply
384 Views
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 Kudos
Reply