Yes, you can. Your programming problems are most likely being caused by your driving a servo off of your X2’s regulated Vcc. The voltage regulator on the X2 is not intended to provide high currents such as a servo might draw.
The 16 I/O pins on the right side of the board are divided into four banks of four pins each. You can select the power supplied to each bank using a solder jumper on the back of the board.

You can see the solder jumpers on the left side of the picture above. The middle pad is connected to the power line for the bank of four pins. You can jumper this pad to one of its three neighbors using a blob of solder or a tiny wire. The three jumper selections are VIN (direct connection to your battery), 5 (5 V output from the X2’s voltage regulator), and VServo (your battery’s voltage after passing through a series of diodes, which decreases the voltage by around 2 V). 5 V is useful if you are powering sensors. If you are powering servos, you want to use your battery voltage or VServo, because the 5 V line will not be able to reliably supply the current required by the servo.
Usually servos require between 4 and 6 V for operation. Anything higher can damage the internal control circuitry and anything lower will not be enough for the internal control circuitry to function. If your battery voltage falls in the range of 4 - 6 V, use a bank where you have the power coming from VIN. If your battery voltage falls in the range of 6 - 8, use a bank where you have the power coming from VServo. If your battery voltage is higher than 8 V and your servo has a 6 V limit, you will need to find another power source for your servo. The X2 can still control the servo so long as the X2 and your servo share a common ground. Does this make sense?
- Ben
