Hello srikanth ,
Thanks for your feedback.
As I can see from your attached screenshot you're generating code using MDK-ARM toolchain and your Project Location includes a unsupported character "&",which is the cause behind this problem.
Actually this a known limitation and the request to add the CubeMX support for the special characters (&, ä, #,...) has been already raised internally. I will keep you posted.
As a solution for your problem, you have to delete the unsupported character from your project path and everything will work correctly.
I hope this will help you.
Thanks for your patience.
Khouloud.