Custom firmware beta build- Ender 3 pro, sprite pro extruder, cr-touch, 4.2.7 silent board. fan problem

I have made a custom firmware with the beta firmware builder.
everything is working except the print cooling fan.
it wont start automatically, i only can put it on manually.
i can set the fan speed at any speed.
it is on in the gcode file build with cura.
how can i fix it?