[quote user="matteo lucarelli"]Can you suggest somewhere to investigate about?[/quote]The following may be used to try determine to collect some information on where the freeze is occurring:
1) Enable debug server logging
2) Tick "Enable Verbose Output" from CCS Project Properties -> Debug -> Flash Settings, which will report diagnostic output about the flash programming to the CCS console.