Can not flash bootloader

I compiled and downloaded some version of the arducopter code (3.2) and it didn’t work. so i tried to upload another version but code can’t be uploaded in the APM.
I read that th problem may be the bootloader and i tried to flash it following this procedure:

copter.ardupilot.com/wiki/common … tmega32u2/

But i’m stuck in the step:

"Then select Atmega32U2 and click OK. If this doesn’t work, see 3a below. "

Nothing happens in that step and i don’t get the error shown in the step 4a)

“If you get an alert box that says “AtLibUsbDfu.dll not found””

The computer recognizes the board as a ARDUINO MEGA 2560. It is possible the problem is the PPM encoder itself?

Thanks.

I read that when loading code onto the APM with the arduino IDE the bootloader for the atmega2560 may get corrupted. I flash the bootloader again using an arduino UNO as a ISP programmer and everything worked again.