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

mpu6050 does not proerly handle timeout #41

Open
Ztirom45 opened this issue Dec 30, 2024 · 0 comments
Open

mpu6050 does not proerly handle timeout #41

Ztirom45 opened this issue Dec 30, 2024 · 0 comments

Comments

@Ztirom45
Copy link

Ztirom45 commented Dec 30, 2024

My program randomly freezes. After debugging i found out this:

  • Arduino board: i'm using a makeblock mega pi with an atmelavr megaatmega2560.
  • Arduino IDE version : Platformio 6.1.16
  • library version: 2.2.6

List the steps to reproduce the problem below

Program received signal SIGINT, Interrupt.
0x00001ad8 in twi_readFrom (address=address@entry=104 'h', 
    data=0x8009d0 <TwoWire::rxBuffer> <incomplete sequence \302>, 
    length=length@entry=1 '\001', sendStop=sendStop@entry=1 '\001')
    at /home/moritz/.platformio/packages/framework-arduino-avr/libraries/Wire/src/utility/twi.c:219
219         if((twi_timeout_us > 0ul) && ((micros() - startMicros) > twi_timeout_us)) {
(gdb) print twi_timeout_us
$1 = 0
(gdb) print startMicros
$2 = 763126656

using:
Adafruit_ADXL345_U.h: Adafruit_MPU6050.getEvent()

I am not sure, how the timeout handling should work, but I don't think that it should freeze.

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