-
Notifications
You must be signed in to change notification settings - Fork 67
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
Example mpu_real interrupt isn't working #6
Comments
I checked and tested the example code again, it still works. So I guess there might be something wrong with your GPIO 17 in ESP32. Maybe you could try another GPIO, just change the number here. If that still does not work and you have changed something in the code, please post the changes here. :) |
Changing the pins does not seem to work. Perhaps it's a configuration error. |
The frequency is 250hz,i think its too high.because it will occur a interrupt every 4ms.but from line211 to line236 ,it takes about 10ms.this will cause notificationValue>1.maybe you can change the frequency lower than 20hz.it works! |
i had the same problem. i change the mpu and works like a charm |
I ran your example mpu_real, but it doesn't seem to be working;
particularly, it's getting stuck at the line
uint32_t notificationValue = ulTaskNotifyTake(pdTRUE, portMAX_DELAY);
I put some logs in and it looks like mpuISR isn't running.
I was wondering if there was a bug in the code or is it just something wrong on my end? I set GPIO 17 as the interrupt pin, if that helps and the interrupt pin on the MPU seems to output a square wave on an oscilloscope.
The text was updated successfully, but these errors were encountered: