avrdude: stk500_recv(): programmer is not responding

hi there,I am using an diecimilla/duemilanove w/ a ATMega168 and I was trying to upload a program to my arduino to blink leds w/ the method charlieplexing: http://en.wikipedia.org/wiki/Charlieplexing, and it first worked out fine until I uploaded the following:

#define A 2
#define B 3
#define C 4
#define D 5
#define E 6
 
#define PIN_CONFIG 0
#define PIN_STATE 1
 
#define LED_COUNT 100 // = MAX INITIALIZERS 
 
int matrix[LED_COUNT][2][5] = {
{{INPUT, INPUT, INPUT, OUTPUT, OUTPUT}, {LOW, LOW, LOW, LOW, HIGH}}, 
{{INPUT, OUTPUT, OUTPUT, INPUT, INPUT}, {LOW, LOW, HIGH, LOW, LOW}}, 
{{OUTPUT, OUTPUT, INPUT, INPUT, INPUT}, {LOW, HIGH, LOW, LOW, LOW}}, 
{{INPUT, INPUT, OUTPUT, OUTPUT, INPUT}, {LOW, LOW, LOW, HIGH, LOW}}, 
{{INPUT, OUTPUT, INPUT, INPUT, OUTPUT}, {LOW, LOW, LOW, LOW, HIGH}}, 
{{INPUT, INPUT, INPUT, OUTPUT, OUTPUT}, {LOW, LOW, LOW, HIGH, LOW}}, 
{{INPUT, OUTPUT, OUTPUT, INPUT, INPUT}, {LOW, HIGH, LOW, LOW, LOW}}, 
{{INPUT, INPUT, OUTPUT, OUTPUT, INPUT}, {LOW, LOW, HIGH, LOW, LOW}}, 
{{OUTPUT, OUTPUT, INPUT, INPUT, INPUT}, {HIGH, LOW, LOW, LOW, LOW}}, 
{{OUTPUT, INPUT, OUTPUT, INPUT, INPUT}, {HIGH, LOW, LOW, LOW, LOW}},
{{INPUT, INPUT, OUTPUT, INPUT, OUTPUT}, {LOW, LOW, HIGH, LOW, LOW}},
{{INPUT, OUTPUT, INPUT, OUTPUT, INPUT}, {LOW, LOW, LOW, HIGH, LOW}}, 
{{INPUT, OUTPUT, INPUT, OUTPUT, INPUT}, {LOW, HIGH, LOW, LOW, LOW}}, 
{{INPUT, INPUT, OUTPUT, INPUT, OUTPUT}, {LOW, LOW, LOW, LOW, HIGH}},
{{OUTPUT, INPUT, OUTPUT, INPUT, INPUT}, {LOW, LOW, HIGH, LOW, LOW}}, 
{{INPUT, OUTPUT, INPUT, INPUT, OUTPUT}, {LOW, HIGH, LOW, LOW, LOW}}, 
{{OUTPUT, INPUT, INPUT, OUTPUT, INPUT}, {LOW, LOW, LOW, HIGH, LOW}}, 
{{OUTPUT, INPUT, INPUT, OUTPUT, INPUT}, {HIGH, LOW, LOW, LOW, LOW}}, 
{{OUTPUT, INPUT, INPUT, INPUT, OUTPUT}, {LOW, LOW, LOW, LOW, HIGH}}, 
{{OUTPUT, INPUT, INPUT, INPUT, OUTPUT}, {HIGH, LOW, LOW, LOW, LOW}},
{{OUTPUT, OUTPUT, OUTPUT, INPUT, INPUT}, {HIGH, LOW, LOW, LOW, LOW}},  
{{OUTPUT, OUTPUT, OUTPUT, INPUT, INPUT}, {LOW, HIGH, LOW, LOW, LOW}},  
{{OUTPUT, OUTPUT, OUTPUT, INPUT, INPUT}, {LOW, LOW, HIGH, LOW, LOW}},  
{{OUTPUT, OUTPUT, OUTPUT, INPUT, INPUT}, {HIGH, HIGH, LOW, LOW, LOW}}, 
{{OUTPUT, OUTPUT, OUTPUT, INPUT, INPUT}, {HIGH, LOW, HIGH, LOW, LOW}}, 
{{OUTPUT, OUTPUT, OUTPUT, INPUT, INPUT}, {LOW, HIGH, HIGH, LOW, LOW}}, 
{{OUTPUT, OUTPUT, INPUT, OUTPUT, INPUT}, {HIGH, LOW, LOW, LOW, LOW}}, 
{{OUTPUT, OUTPUT, INPUT, OUTPUT, INPUT}, {LOW, HIGH, LOW, LOW, LOW}}, 
{{OUTPUT, OUTPUT, INPUT, OUTPUT, INPUT}, {LOW, LOW, LOW, HIGH, LOW}}, 
{{OUTPUT, OUTPUT, INPUT, OUTPUT, INPUT}, {HIGH, HIGH, LOW, LOW, LOW}}, 
};

void turnOn( int led ) {
pinMode( A, matrix[led][PIN_CONFIG][0] );
pinMode( B, matrix[led][PIN_CONFIG][1] );
pinMode( C, matrix[led][PIN_CONFIG][2] );
pinMode( D, matrix[led][PIN_CONFIG][3] );
pinMode( E, matrix[led][PIN_CONFIG][4] );
digitalWrite( A, matrix[led][PIN_STATE][0] );
digitalWrite( B, matrix[led][PIN_STATE][1] );
digitalWrite( C, matrix[led][PIN_STATE][2] );
digitalWrite( D, matrix[led][PIN_STATE][3] );
digitalWrite( E, matrix[led][PIN_STATE][4] );
}
 
void setup() {}
 
void loop() {
for( int l = 0; l < LED_COUNT; l++ ) {
turnOn( l );
delay( 150000 / LED_COUNT );
}
}

after this, I saw: “avrdude: stk500_recv(): programmer is not responding” and the ‘L’ led started flashing constantly and now I cant upload anything and resetting doesn’t seem to work.
many thanks to those with an answer.

never mind, I already got it

What did you do to get the upload to work? I have had trouble uploading the last few days. Upload only works on a PC I tried, not on my Macs.

are you uploading w/ "avr isp mkII" on your pc, because that might not work too well.

Uploading with same Arduino program on Mac and PC. PC version worked. Mac does not.