Problems with Calibration _sequence using AMS5048A

Hi, im having issue with absolute SPI encoders AMS5048A

i was getting “no index found error” with those so
i had configured odrive to work with them using:

odrv0.axis0.encoder.config.use_index = False

but when im running:

odrv0.axis0.requested_state = AXIS_STATE_FULL_CALIBRATION_SEQUENCE

i get

  encoder: Error(s):
    EncoderError.CPR_POLEPAIRS_MISMATCH

even though i configured odrive to 7 polepairs (D5065 motors), and i have configured CPR to 2**14(16384).

I checked state of encoders via odrv0.axis0.encoder.shadow_count
and they are in fact when i am turning them by hand starting from aprrox index 0 go to index aprrox 16400ish in one motor rotation. (when running calibration they go from -1000 to 34000)

Also important to note that i replaced encoder few times and that motor did work with incremental encoder from CUI

Edit. typo.

Hi there,

Apologies for the delay in my reply.

Which ODrive is this? Can you post a picture of how the encoders are mounted and wired, and how the motor is mounted on the motor? Are you using the encoder over SPI, or A/B/Z?