Flashing AT firmware to ESP-13 Wifi Shield with Arduino

Hi All,

After 2 days of searching forums and trying every method I could find I really need help with flashing the original AT firmware to my ESP-13 wifi shield.

I was wondering if it is possible to flash the firmware to the wifi shield using the Arduino Mega 2560 or Leonardo as the USB-TTL converter.

If anyone has managed to do this with either of these Arduinos and knows a process behind it, your help is very much appreciated.

Thanks for all help in advance.