M1 Encoder pins not working properly - FIXED

I’m using odrive 56V with AS5047D. The M0 is working properly but M1 is giving ERROR_NO_RESPONSE when used the same encoder and the motor. Then checked shadow count for M1 and it only changes to 0 and -1. i checked the pin connections of the A,B,Z encoder pins and the relevant port in the stm32. The connections are ok for those pins.

Any help is appreciated.

Problem fixed_

  1. Tested the A,B,C pins using a STlink v2
  2. Fault was in the PB6 which is relevant to A of M1.
  3. The pin was not soldered to the pcb properly.
  4. Soldering it fixed the issue.