If you are using a breadboard, you could try moving the processor to another spot, that has helped me sometimes.
Also cleaning the legs on the processor is worth a try.
I apologize if you feel I hiijacked your thread, I can start a new if you wish
I have managed to program the chip with a Pololu programmer. The programming process works without errors.
But my blink program dosn't work (the LED is always on). Is there something magical you should do after programming are done. I have tried holding the reset high and low through a 10k resistor, but that makes no difference.
The program is below, I compiled it in Keil, and in the Keil logic analyzer it works.
#define ON 0
#define OFF 1
sbit LED = P2^4;
void DelayMs(unsigned int msec);
void DelayMs(unsigned int msec)
unsigned int x,y;
LED = ON;
LED = OFF;