Make sure you have connected the U endstop switch to the E0 (not E1) endstop input, and test it using the Machine Properties page of DWC where it will show up as endstop 3.