2019-03-08 07:37 AM
Hey,
I note That There is an instruction ERROR in en.x-cube-spn3 code.
in Powerstep01_SetDeviceParamsToGivenValues(uint8_t deviceId, powerstep01_Init_u_t *initPrm); function of powerstep01.c file, at line 1912 to 1914, the instruction, " Powerstep01_CmdSetParam(deviceId, POWERSTEP01_MIN_SPEED,
initPrm->cm.cp.lowSpeedOptimization|
Powerstep01_MaxSpd_Steps_s_to_RegVal(initPrm->cm.cp.minSpeed));"
make driver Writing wrong Data in "POWERSTEP01_MIN_SPEED" register.
The correct instruction must be " Powerstep01_CmdSetParam(deviceId, POWERSTEP01_MIN_SPEED,
initPrm->cm.cp.lowSpeedOptimization|
Powerstep01_MinSpd_Steps_s_to_RegVal(initPrm->cm.cp.minSpeed));"
I am wrong?