Code error for stepper motor

I keep getting this error while trying to upload my code for a stepper motor:

avrdude: stk500_getsync(): not in sync: resp=0x30

I have the Adafruit motor shield and the pins of the stepper are connected to M3 and M4 (that's it)

ardu1n0du3:
avrdude: stk500_getsync(): not in sync: resp=0x30

Check your settings in the IDE. Ensure that you have Tools->Board set to the rigth board type, and Tools->Port set to the correct COM port.

What uC are you using ?