Custom ATMega 2560 board won't execute Arduino code
When using an empty ATMega2560 you need to change the fuse settings, otherwise it will just upload your code but it won't execute. 
This tutorial explains it very clearly:
Programming ATMega 2560 with Arduino UNO