In order to achieve successful firmware upgrade, make sure that all cables and devices are removed from the target area of the Atmel STK500.