Hi guys. Im having issues with GRBL (homing).

Hi guys. Im having issues with GRBL (homing). Im using LW3 to control the router (self made). Is this the right place to ask for help or i should go elseware?

Cool!, so, new grbl install, im using mechanical switches. I have 2, per axis, in series.
The router haves a fixed gantry (x axis) and moving table (y).
When i hit home the moves moves towards the front and x to the right and on LW i see it´s at 0,0, so, the positive space is to the left and front. I played with the invert masks for the axis and homing dir, but didnt found a combination that works.

Its a silly problem, but looks like im having a dumb day and i cant find the solution.

Ok, so i have recompiled grbl using the HOMING_FORCE_ORIGIN option. Now its looking good, now its not more forced on negative space, so, its all good.

Now im having another problem.

Im using:
#define HOMING_CYCLE_0 (1<<X_AXIS) // COREXY COMPATIBLE: First home X
#define HOMING_CYCLE_1 (1<<Y_AXIS) // COREXY COMPATIBLE: Then home Y

When Y hits the endstops, it raises an alarm and it ends there, x doesnt homes.