Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting Error3: Parity bit error occurred in Rx frame #1

Open
Dylan144GT opened this issue Jun 3, 2021 · 0 comments
Open

Getting Error3: Parity bit error occurred in Rx frame #1

Dylan144GT opened this issue Jun 3, 2021 · 0 comments

Comments

@Dylan144GT
Copy link

Dylan144GT commented Jun 3, 2021

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); 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant