I need to have some libraries frozen into the firmware (ESP32) for a project I work on. Using the standard compiling approach, I build the latest 1.18 firmware with IDF 4.4
Looks like a build/configuration problem because now I get the bellow exception when trying to load the MPU6050 library (https://github.com/micropython-IMU/micropython-mpu9x50)
Must say that I tested on the standard firmware, downloaded from micropython website, and works well.
How should I compile the firmware so I get rid of this issue?
Code: Select all
>>> from machine import Pin,I2C
>>> from imu import MPU6050
>>> i2c = I2C(0)
>>> imu = MPU6050(i2c)
Guru Meditation Error: Core 1 panic'ed (StoreProhibited). Exception was unhandled.
Core 1 register dump:
PC : 0x4008c8b4 PS : 0x00060031 A0 : 0x8008ca49 A1 : 0x3ffbeed0
A2 : 0x3ffd9a7c A3 : 0x00000000 A4 : 0x00000000 A5 : 0x00000800
A6 : 0x3ffbd680 A7 : 0x80000002 A8 : 0x3ffd8408 A9 : 0x00000901
A10 : 0x00000003 A11 : 0x00060023 A12 : 0x00000001 A13 : 0x3ffd840c
A14 : 0x00000000 A15 : 0x3ff53000 SAR : 0x0000001d EXCCAUSE: 0x0000001d
EXCVADDR: 0x00000008 LBEG : 0x00000000 LEND : 0x00000000 LCOUNT : 0x00000000
Backtrace:0x4008c8b1:0x3ffbeed00x4008ca46:0x3ffbef10 0x40082c71:0x3ffbef40 0x401d9d17:0x3ffca6d0 0x400d2d87:0x3ffca6f0 0x400963dc:0x3ffca710