Problems using interrupt, MPU9250 and Wi-Fi



  • Has anyone else using the timer interrupt with Wi-Fi?

    I wrote a function to get the acceralation data by MPU9250, and use this function in the timer interrupt to assure the sampling rate is correct, since the SD card writing takes too much time.
    When I use the serial port and the micro SD card to save the data , it works good.

    But when I try to use it with Wi-Fi, the M5stack reboot and the error message appears:
    Guru Meditation Error: Core 1 panic'ed (Coprocessor exception)

    I'm not sure what I'm doing wrong or not. I know it's not sensable to get data in the interrupt, but I don't know other ways to get the IMU data in a constant sample rate (In this case, I using 100Hz).

    Thank you!


登录后回复
 

与 M5Stack Community 的连接断开,我们正在尝试重连,请耐心等待