Y-min stay triggered I have a FLSUN i3 220x220x240 with:


an 2004 LCD (RepRap Discount Smart Controller)
an MKS-gen-L-v1.0 printer board running Marlin firmware 2.0.5.x
3D touch sensor,
a filament runout sensor.


Everything works fine but for the mechanical Y-min switch: it stays triggered.

(M119) YMIN worked under Marlin 1.1.2; everything is connected correctly and is physically working.

I don't know what to do... Does maybe someone have an idea of what I can do?

These are my config files:


configuration.h 
configuration_adv.h
pins_RAMPS.h
This MKS-GEN-L board is in essence a plain RAMPS board, and as such it uses the same pinout apart from some specific pins. Do note the include of the RAMPS pinout in the MKS-GEN-L at the end of the file. 

From your comment you have changed the pins 14 and 15, in doing so, you need to plug the Y-min endstop in the Y-max socket after uploading the modified firmware. With the unmodified firmware (no pin switch), if the Y-endstop works in the Y-max socket, this means that you have a hardware issue. The pin labeled 14 is connected to the Y-max instead of the Y-min. If you did the pinout switch and left the endstop in the Y-min socket, then you can conclude that the 15 pin is not connected to the Y-min socket. Basically you don't have a 15 pin that is exposed. Could be that there is an issue on the board with the traces or the soldering.