Strong current peaks at the end of some 6-step phases
My team has designed a circuit board based on EVSPIN32F0251S1 and controlled by the "STSW-SPIN32F0251" firmware, using the configuration "6step_conf_sl_cm_spdlp.h". The motor is moving fine, but during some measurements, we found strong current peaks at the end of certain 6-step phases, as shown in the details. We would appreciate some help in reducing these peaks.
Voltage of the three phases (cyan, red and green) and current(blue) of the one in green at the motor connector:
Detail of the current peak together with voltages:

