Pixhawk error uploading firmware with apm planner 2

Hi all, I get this error while uploading the firmware…
The pixhawk is correctly detected with usb.

NFO 2014-10-24T12:49:18.249 Waiting for device to be plugged in…
INFO 2014-10-24T12:49:32.161 Sending SYNC command, loop 0 of 5
DEBUG 2014-10-24T12:49:33.166 timeout expired: 0 2
ERROR 2014-10-24T12:49:33.167 Wrong number of bytes read on sync: -1
INFO 2014-10-24T12:49:33.667 Sending SYNC command, loop 1 of 5
DEBUG 2014-10-24T12:49:34.673 timeout expired: 0 2
ERROR 2014-10-24T12:49:34.673 Wrong number of bytes read on sync: -1
INFO 2014-10-24T12:49:35.174 Sending SYNC command, loop 2 of 5
DEBUG 2014-10-24T12:49:36.177 timeout expired: 0 2

please help :frowning: best regards

What version of APM Planner are you uisng, try the latest beta by enbaling it in the config menu