Hello! I am developing a project with the S32K311 device and I am having issues to get the quadrature decoder working. I did all configuration following the instructions in the chapter 4.2.5 of the document AN13767.
I instantiated, configured and initialized the modules TRGMUX, LCU and eMIOS, but when I try to read the encoder counts with the method Emios_Icu_Ip_GetEdgeNumbers() I get always zero. I already measured the signals on my board and the encoder pulses are present at the microcontroller pins PTB5 [14] ENC_PHB and PTB4 [15] ENC_PHA.
I attached my project in this post.
Can someone help me to understand what I am missing?
Thanks in advance!