Have you checked that you use the same configuration bits? If the PIC dont run that can be a good start to look.