<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[MPU9250BasicAHRS.ino sample crashes]]></title><description><![CDATA[<p dir="auto">I tried to run the MPU9250BasicAHRS.ino sample, but it crashes. I have a M5Stack ESP32 GREY Development Kit with buildin IMU. On a secound device, the same code runs without problems. Does anyone have any idea why the problem occurs?<br />
I got following outputs on the serial console:</p>
<pre><code>13:43:57.119 -&gt; ets Jun  8 2016 00:22:57
13:43:57.119 -&gt; 
13:43:57.119 -&gt; rst:0xc (SW_CPU_RESET),boot:0x17 (SPI_FAST_FLASH_BOOT)
13:43:57.119 -&gt; configsip: 0, SPIWP:0xee
13:43:57.119 -&gt; clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
13:43:57.119 -&gt; mode:DIO, clock div:1
13:43:57.119 -&gt; load:0x3fff0018,len:4
13:43:57.119 -&gt; load:0x3fff001c,len:1216
13:43:57.119 -&gt; ho 0 tail 12 room 4
13:43:57.119 -&gt; load:0x40078000,len:9720
13:43:57.119 -&gt; ho 0 tail 12 room 4
13:43:57.119 -&gt; load:0x40080400,len:6352
13:43:57.119 -&gt; entry 0x400806b8
13:43:57.306 -&gt; M5Stack initializing...OK
13:43:58.703 -&gt; MPU9250 I AM 19 I should be 71
13:43:59.700 -&gt; MPU9250 is online...
13:44:00.531 -&gt; x-axis self test: acceleration trim within : -0.1% of factory value
13:44:00.531 -&gt; y-axis self test: acceleration trim within : -1.3% of factory value
13:44:00.531 -&gt; z-axis self test: acceleration trim within : 1.1% of factory value
13:44:00.531 -&gt; x-axis self test: gyration trim within : -8.3% of factory value
13:44:00.531 -&gt; y-axis self test: gyration trim within : 0.7% of factory value
13:44:00.531 -&gt; z-axis self test: gyration trim within : 0.4% of factory value
13:44:00.930 -&gt; Guru Meditation Error: Core  1 panic'ed (IntegerDivideByZero). Exception was unhandled.
13:44:00.930 -&gt; Core 1 register dump:
13:44:00.930 -&gt; PC      : 0x400d47ce  PS      : 0x00060330  A0      : 0x800d1604  A1      : 0x3ffb1f30  
13:44:00.930 -&gt; A2      : 0x3ffb1f60  A3      : 0x3ffc01f0  A4      : 0x3ffc01fc  A5      : 0x00000000  
13:44:00.930 -&gt; A6      : 0x00000000  A7      : 0x00000000  A8      : 0x00000000  A9      : 0x00000000  
13:44:00.930 -&gt; A10     : 0x00000000  A11     : 0x00000002  A12     : 0x00000000  A13     : 0x00000002  
13:44:00.930 -&gt; A14     : 0x3ffb1f60  A15     : 0x00000000  SAR     : 0x0000001d  EXCCAUSE: 0x00000006  
13:44:00.963 -&gt; EXCVADDR: 0x00000000  LBEG    : 0x4000c2e0  LEND    : 0x4000c2f6  LCOUNT  : 0x00000000  
13:44:00.963 -&gt; 
13:44:00.963 -&gt; Backtrace: 0x400d47ce:0x3ffb1f30 0x400d1601:0x3ffb1f90 0x400d9c4b:0x3ffb1fb0 0x40088c19:0x3ffb1fd0
13:44:00.963 -&gt; 
13:44:00.963 -&gt; Rebooting...
</code></pre>
]]></description><link>https://community.m5stack.com/topic/1470/mpu9250basicahrs-ino-sample-crashes</link><generator>RSS for Node</generator><lastBuildDate>Wed, 29 Apr 2026 04:47:35 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/1470.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 14 Nov 2019 13:07:21 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to MPU9250BasicAHRS.ino sample crashes on Thu, 28 Nov 2019 23:14:58 GMT]]></title><description><![CDATA[<p dir="auto">Hi <a class="plugin-mentions-user plugin-mentions-a" href="/user/steinoxyd" aria-label="Profile: steinoxyd">@<bdi>steinoxyd</bdi></a> ,<br />
I had the same issue which I got help with on the m5stack github before seeing this. I may as well direct you straight to it than repeating it fully here;<br />
<a href="https://github.com/m5stack/M5Stack/issues/194" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/m5stack/M5Stack/issues/194</a><br />
The issue is the 'IMU.calibrateMPU9250(IMU.gyroBias, IMU.accelBias);' which if commented out, the code will run.<br />
From the comment from <a class="plugin-mentions-user plugin-mentions-a" href="/user/lukasmaximus" aria-label="Profile: lukasmaximus">@<bdi>lukasmaximus</bdi></a> I have not realised the probable reason for the issue.</p>
]]></description><link>https://community.m5stack.com/post/6534</link><guid isPermaLink="true">https://community.m5stack.com/post/6534</guid><dc:creator><![CDATA[csands]]></dc:creator><pubDate>Thu, 28 Nov 2019 23:14:58 GMT</pubDate></item><item><title><![CDATA[Reply to MPU9250BasicAHRS.ino sample crashes on Sun, 17 Nov 2019 10:01:49 GMT]]></title><description><![CDATA[<p dir="auto">Hi <a class="plugin-mentions-user plugin-mentions-a" href="/user/steinoxyd" aria-label="Profile: steinoxyd">@<bdi>steinoxyd</bdi></a> as far as i'm aware the mpu9250 was replaced by MPU6886 in newer versions of M5Stack Grey. if you open your stack and look on the pcb you can see your revision number. <a href="https://docs.m5stack.com/#/en/core/gray" target="_blank" rel="noopener noreferrer nofollow ugc">https://docs.m5stack.com/#/en/core/gray</a></p>
<p dir="auto">I just saw this on the adafruit page "As of Oct 26, 2019 this product comes with a MPU6886+BMM150 9DoF sensor instead of the discontinued MPU9250"</p>
<p dir="auto">Try this code<br />
<a href="https://github.com/m5stack/M5StickC/blob/master/src/utility/MPU6886.h" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/m5stack/M5StickC/blob/master/src/utility/MPU6886.h</a></p>
]]></description><link>https://community.m5stack.com/post/6418</link><guid isPermaLink="true">https://community.m5stack.com/post/6418</guid><dc:creator><![CDATA[lukasmaximus]]></dc:creator><pubDate>Sun, 17 Nov 2019 10:01:49 GMT</pubDate></item></channel></rss>