Other Parts Discussed in Thread: TMDXIDDK379D
Using the TMDXIDDK379D development kit, I wanted to add the EnDat routine (PM_endat22_BasicPosAcc_DelComp) to the routine (fcl_f2837x_tmdxiddk). After adding the routine, the program will be stuck at "while (endat22Data.dataReady != 1) {} " of EnDat_Init() in endat.c(as shown in the attached figure);
When I use the TMDXIDDK379D development kit, running the EnDat routine (PM_endat22_BasicPosAcc_DelComp) alone does not have this problem, and I can accurately read back the position value of the encoder.
After comparing the assembly code during the operation of the two programs, it is found that there is a slight difference, but I don't know how to solve it, as shown in the figure.
Hope to get help, thank you!