Finally the first pcb arrived and is tested to find any errors in the design and see if there are any major issues.
Soldering everything by hand takes some patience but everything works as it should.
A few problems spotted in the first design:
1. Vias under the current shunts are too close to the pads and can be bridged to the resistor while soldering and short out the shunt voltage.
2. Pullups of encoder were connected to 5v instead of 3.3v. Easy to bodge for now and fixed in the next version.
3. 3.5mm terminals might be too small for big motor wires. Maybe add a 5mm footprint and move the caps and buttons.
4. USB footprint from eagle not exactly the correct one for the ports. Drilled holes are in slightly different spots.
Strange as the part numbers were identical and can be fixed by bending the mounting pins of the port inwards but should be changed to the correct one.
Apart from that the driver and processor work correctly. I chose the STM32F411 as the main processor running at 96MHz. 2 LEDs for status messages, one power led and one direct driver flag led for critical errors are present on the board.