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:
- 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.
- 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.