X and Y axis strange motor behavior

So i started up my printer yesterday after it had been unused for a few months and something seems to be wrong.

When i home Y it moves away! from the endstop a bit then changes direction and goes to endstop then stop, when i after that manually moves the Y axis either with LCD controller or repetier host the axis only moves in one direction away from endstop regardless of which way i tell it to move, explained: say it moves in + direction, i tell Y to move +10mm it moves +10mm but if i tell it to move -10mm it moves +10mm.

The X just locks up when it tries to move and the motor hums, i have changed the motor controllers and they are not at fault, neither are the motors.

The Z axis works like it should.

Anyone know what this can be if it’s not a faulty controller board?

Edit:
Found post mentioning that you should compile with arduino 1.0.4 since later version compiles wrong and y does not work, i did a new firmware flash when i fixed the Z axis and i did that with 1.0.6 so i will try 1.0.4 later.

Have you checked the vref set at the stepper drivers?
Perhaps it has disadjusted.

You should home all of the axis first.
If any move away from the end stop check the end stop wiring for that axis

My problem is confirmed to be related to arduino compiling.

Using 1.0.4 i get:
Binary sketch size: 104 484 bytes (of a 258 048 byte maximum)

And the printer works like it should all homing, movements and endstops works.

Using 1.0.6 i get:
Sketch uses 92,646 bytes (36%) of program storage space. Maximum is 253,952 bytes.
Global variables use 3,867 bytes (47%) of dynamic memory, leaving 4,325 bytes for local variables. Maximum is 8,192 bytes.

And the printer behaves like i explained in first post.

I redid the firmware a few times on the two versions and got same result so for me this is confirmed.

I have not looked into if there are any new settings in arduino 1.0.6 that should be changed for this to work though, i’m fine using 1.0.4 for now.