ENCODER_ERROR ILLEGAL_HALL_STATE for M0 but not M1

I am working with hoverboard motors and M1 works just fine however M0 is not working.
I swapped the motor but the same result. Same encoder error.
Followings are the dump_errors
I see no difference in the settings but why I am getting this error?

dump_errors(odrv0)
system: no error
axis0
  axis: Error(s):
    UNKNOWN ERROR: 0x00000100
  motor: no error
  sensorless_estimator: no error
  encoder: Error(s):
    ENCODER_ERROR_ILLEGAL_HALL_STATE
  controller: no error
axis1
  axis: no error
  motor: no error
  sensorless_estimator: no error
  encoder: no error
  controller: no error

I solved this problem by adding small capacitor for M0’s hall sensor input as attached picture.


Not sure why only M0 has this problem but now there is no encoder error!

1 Like