Re: start up problem
Using mplab it must be a pic micro.
Your mclr pull up resistor is too high in value. If you read the electrical specifications, you will see that mclr can have 5uA of leakage current, which will result in a 0.5 volt drop acros the 100K pullup. The maximum value recommended by Microchip for mclr pull up rsistor is 39K.
10K is a better value to choose.
The 100nF capacitor with the 100K pull up is most probably making the reset line rise to slowly. Get rid of the cap, you dont need it.
So:
Enable power up timer in the config fuses, and also brown out detect if it has it.
Change the pull up to 10K, get rid of the cap.