How to configure AVRFLASH for programming Atmega2560 (Arduino MEGA)
After you have made proper connections between mikroProg for AVR and Arduino mega's ICSP connector you would need to configure the AVRFLASH window like shown on the picture below.