All signals of the TMC5062 are referenced to their respective ground. Directly connect all GND pins under the TMC5062 to a common ground area (GND, GNDP, GNDA and die attach pad). The ground plane directly beneath the die attach pad should be treated as a virtual star point. For practical reasons, this has to be the PCB ground layer, not the PCB top layer. The 5VOUT output voltage ceramic filtering capacitor (4.7 µF recommended) should be placed as close as possible to the 5VOUT pin, with its ground return going directly to the GNDA pin. Use as short and thick connections as possible. For best microstepping performance and lowest chopper noise, an additional filtering capacitor can be used for the VCC pin to ground to avoid charge pump and digital part ripple influencing motor current regulation. Place a ceramic filtering capacitor (470 nF recommended) as close as possible (1-2 mm distance) to the VCC pin with ground return going to the ground plane. VCC can be coupled to 5VOUT using a 2.2 Ω or 3.3 Ω resistor in order to supply the digital logic from 5VOUT while keeping ripple away from this pin.