Corrupt X-controller?

You are much better off loading in a .hex file that is known to work, rather than using the compile from source code method. At least then you know you don’t have compile errors.

If you are trying to set compile time options, then obviously you have to compile.

Here is the Inventables build of grbl 1.1f scroll down to select your version.

Here is information about using Xloader to put it into your controller.