if you use Mission Planner it might freeze when you hit the connect button. the solution to this problem is very easy
1.open Mission Planner
2. go to CONFIG/TUNING
3.PLANNER
4. "Connect reset" uncheck the box and re-check again.
this process required only once.