When starting the printer, the bed leveling sensor does its little startup thing and then lights up static red. When pressing Level Bed or Auto Home it homes X and Y and after that sends the Z-axis crashing into the bed.
Is there anything I can change in the firmware to debug or fix this? I have checked the wiring and it's correct.
EDIT: The BLTouch is not a genuine Creality since at the time it for some reason was not available in my country. The bl touch is connected like any other BLTouch. 2 wires to the Z switch connector, and 3 of them to "+5v", "gnd" and "in". The firmware i got of Marlins github and modified the Ender 3 Pro firmware i got of Marlins configuration GitHub. (Marlin BugFix 2.0) The stuff i modified i put here:
Configuration.h
#define USE_PROBE_FOR_Z_HOMING
#define BLTOUCH
#define NOZZLE_TO_PROBE_OFFSET { -42, -5, 0 }
#define AUTO_BED_LEVELING_BILINEAR
#define PREHEAT_BEFORE_LEVELING
#define LEVELING_BED_TEMP 65
#define GRID_MAX_POINTS_X 5
#define LCD_BED_LEVELING
#define Z_SAFE_HOMING
Configuration_adv.h
#define BABYSTEP_ZPROBE_OFFSET
I compiled this firmware with PlatformIO in VScode with env:STM32F103RET6_creality The board i used is version 4.2.2 32-bit.
The video i used can be seen here: