<?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[M5Core2 + Bottom2 Example crashes]]></title><description><![CDATA[<p dir="auto">Hello, I am using the Example for Bottom2 with my Core2:</p>
<p dir="auto"><a href="https://github.com/m5stack/M5-ProductExampleCodes/blob/master/Base/M5GO_BOTTOM2/M5GO_BOTTOM2.ino" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/m5stack/M5-ProductExampleCodes/blob/master/Base/M5GO_BOTTOM2/M5GO_BOTTOM2.ino</a></p>
<p dir="auto">But the Core2 crashes and restarts all 5 seconds. I would assume there is a bug with the Microphone initialization?! (Also the Speaker example is also missing in the code)</p>
]]></description><link>https://community.m5stack.com/topic/4775/m5core2-bottom2-example-crashes</link><generator>RSS for Node</generator><lastBuildDate>Mon, 04 May 2026 04:50:45 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/4775.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 03 Nov 2022 10:40:03 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to M5Core2 + Bottom2 Example crashes on Fri, 07 Apr 2023 03:44:55 GMT]]></title><description><![CDATA[<p dir="auto">Yes it seems the microphone on the M5Core2 with Bottom 2 still does not work.<br />
I have tried basic record and replay using UIFlow Blocky and the Core2 crashes and restarts. Its frustrating that such basic functions do not work and aren't fixed in updates.</p>
]]></description><link>https://community.m5stack.com/post/20541</link><guid isPermaLink="true">https://community.m5stack.com/post/20541</guid><dc:creator><![CDATA[Kombistack]]></dc:creator><pubDate>Fri, 07 Apr 2023 03:44:55 GMT</pubDate></item><item><title><![CDATA[Reply to M5Core2 + Bottom2 Example crashes on Sat, 05 Nov 2022 02:55:06 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/user/swiminthesky" aria-label="Profile: swiminthesky">@<bdi>swiminthesky</bdi></a></p>
<p dir="auto">Re: Edit2: you'll need to press <strong>and hold</strong> BtnA to record something. The recording starts after the vibration and ends when BtnA is released (or after a certain amount of data has been recorded).</p>
<pre><code>if (data_offset == 1024 * 100 || M5.Touch.ispressed() != true) break;
</code></pre>
<p dir="auto">Thanks<br />
Felix</p>
]]></description><link>https://community.m5stack.com/post/19206</link><guid isPermaLink="true">https://community.m5stack.com/post/19206</guid><dc:creator><![CDATA[felmue]]></dc:creator><pubDate>Sat, 05 Nov 2022 02:55:06 GMT</pubDate></item><item><title><![CDATA[Reply to M5Core2 + Bottom2 Example crashes on Fri, 04 Nov 2022 13:38:07 GMT]]></title><description><![CDATA[<p dir="auto">Hm.. thanks <a class="plugin-mentions-user plugin-mentions-a" href="/user/felmue" aria-label="Profile: felmue">@<bdi>felmue</bdi></a> but I doubt that it is the library. Both LED library examples work fine.</p>
<p dir="auto">Also</p>
<pre><code>void microPhoneInit()
{
    InitI2SSpakerOrMic(MODE_MIC);
    
    // &lt;------------
    xTaskCreatePinnedToCore(i2sMicroFFTtask, "microPhoneTask", 4096, NULL, 3, NULL, 0);
    // &lt;-----------

}
</code></pre>
<p dir="auto">The crashes stop when I exclude this line. Also the LEDs work fine then.</p>
<p dir="auto">The mic/fft also does not show any minimal sign of signal, also within the 5 seconds before reboot. Maybe the Mic of the Bottom2 is broken? Is there a simple way to check if it is alive?</p>
<p dir="auto">-- Edit: I updated all libraries. After bit more testing, the line seems to be pretty robust when it comes to the crash. But I also tried to adapt this M5Stick <a href="https://github.com/m5stack/M5StickC/blob/master/examples/Basics/Micophone/Micophone.ino" target="_blank" rel="noopener noreferrer nofollow ugc">microphone example</a> (M5Core2.h instead of M5Stick.h, the pins ought to be the same) but without success and it leads to a similar line <code>xTaskCreate(mic_record_task, "mic_record_task", 2048, NULL, 1, NULL);</code></p>
<p dir="auto">Btw. my Core2s are not flashed to have a lot of memory and maybe the queues are reaching the heap (as f.i. mentioned <a href="https://electronics.stackexchange.com/questions/449500/freertos-crashing-when-adding-new-queues" target="_blank" rel="noopener noreferrer nofollow ugc">here</a>). I used <code>uxHighWaterMark = uxTaskGetStackHighWaterMark( NULL );</code> and I get  number of 6100.</p>
<p dir="auto">---Edit2: I tried <a href="https://github.com/m5stack/M5-ProductExampleCodes/blob/master/Core/M5Core2/Arduino/record/record.ino" target="_blank" rel="noopener noreferrer nofollow ugc">this</a> recording example, which is not parallelized by xTaskCreate, and it does not crash. Unfortunately I don't see any results after pressing 'record', it only starts to vibrate after 1-2 sec. and my other Core2 also makes a slight click&amp;rumble sound. Shall I use VSCode+PlatformIO to debug?</p>
<p dir="auto">--Edit3: I tried to patch tha partition / psram via <a href="https://community.m5stack.com/topic/2697/building-core2-factorydemo-in-platformio">this guide</a>, I am not totally sure if it worked. And the record.ino. It doesn't crash, but the mic also only does the click/rumble after pressing record for 1.5s as before. Very strange..</p>
]]></description><link>https://community.m5stack.com/post/19192</link><guid isPermaLink="true">https://community.m5stack.com/post/19192</guid><dc:creator><![CDATA[swiminthesky]]></dc:creator><pubDate>Fri, 04 Nov 2022 13:38:07 GMT</pubDate></item><item><title><![CDATA[Reply to M5Core2 + Bottom2 Example crashes on Thu, 03 Nov 2022 11:04:20 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/user/swiminthesky" aria-label="Profile: swiminthesky">@<bdi>swiminthesky</bdi></a></p>
<p dir="auto">hmm, the M5GO Bottom2 example works for me. However there was a similar report in this <a href="https://community.m5stack.com/topic/4757/solved-m5go-bottom2-for-core2-only-ledbar-not-working-on-core2/6">thread</a> and <a class="plugin-mentions-user plugin-mentions-a" href="/user/cpersoz" aria-label="Profile: cpersoz">@<bdi>cpersoz</bdi></a> had success using Adafruit_Neopixel instead of FastLED.</p>
<p dir="auto">Thanks<br />
Felix</p>
]]></description><link>https://community.m5stack.com/post/19191</link><guid isPermaLink="true">https://community.m5stack.com/post/19191</guid><dc:creator><![CDATA[felmue]]></dc:creator><pubDate>Thu, 03 Nov 2022 11:04:20 GMT</pubDate></item></channel></rss>