Hi Vasu,
The problem actually exists in the configuration in STM32CubeMX and not in the target link file.
Enable the 'Do not generate the main()' checkbox in the project manager section:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1404564/image.jpeg)
You can refer this for any further doubts:
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!