Have you changed the "device" in the project and made sure that all pins are correct,
then clean and build the program?
If you have done so and the binary was programmed without problems
then I hope that at least the device (or its ID) is correct with the one you specified.
Meantime is/are there any warning message when you compiled, programmed the device?
And what does "Main Routine Does Not Run" means?
What is the symptom you are seeing?
It would be nice if you can attach the project in question
or similar project which can reproduce the problem.
thank you for getting back to me ... sorry for delay i blew up my board had to rebuild it. My problem seemed to go away after i move enabling my global interrupts before i started my UART and ADC.
I hope i am good to go now ... thanks again for helping me!!! I will post my Thermistor code for the 4000S when i get it finished up.