You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to use your library for the AS5047P and I am running into a bit of a problem. I get the error, "Error 3: Parity bit error occurred in Rx frame".
I am trying to use this with an STM32G431RB Nucleo-64 dev board and STM32CubeIDE 1.6.1. I have the sensor connected to SPI1 and I have the VCP setup to debug as in your example. I have walked through your instructions of setting up the 5 functions and also configuring the SPI. In my main.c I then call AS5047P_Init(&encInstanceA, 0);, AS5047P_SetFactorySettings(&encInstanceA); and AS5047P_SetZeroPosition(&encInstanceA); to set the sensor up. My logic analyzer shows that I am both transmitting data from the MCU and receiving responses from the sensor. But as soon as I call encPositionA = AS5047P_ReadPosition(&encInstanceA, AS5047P_OPT_ENABLED); I get Error 3 and the result of encPositionA is -1. Everything complies and there are no build errors.
Would you have an idea of what I am doing wrong? I feel like this is a simple fix, but I just can't see it. Any hints of help would be appreciated.
Sincerely,
Dylan
The text was updated successfully, but these errors were encountered:
Hello CircularBuffer,
I am trying to use your library for the AS5047P and I am running into a bit of a problem. I get the error, "Error 3: Parity bit error occurred in Rx frame".
I am trying to use this with an STM32G431RB Nucleo-64 dev board and STM32CubeIDE 1.6.1. I have the sensor connected to SPI1 and I have the VCP setup to debug as in your example. I have walked through your instructions of setting up the 5 functions and also configuring the SPI. In my main.c I then call
AS5047P_Init(&encInstanceA, 0);
,AS5047P_SetFactorySettings(&encInstanceA);
andAS5047P_SetZeroPosition(&encInstanceA);
to set the sensor up. My logic analyzer shows that I am both transmitting data from the MCU and receiving responses from the sensor. But as soon as I callencPositionA = AS5047P_ReadPosition(&encInstanceA, AS5047P_OPT_ENABLED);
I get Error 3 and the result ofencPositionA
is-1
. Everything complies and there are no build errors.Would you have an idea of what I am doing wrong? I feel like this is a simple fix, but I just can't see it. Any hints of help would be appreciated.
Sincerely,
Dylan
The text was updated successfully, but these errors were encountered: