<?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[Core2 mystery abort() - how to debug?]]></title><description><![CDATA[<p dir="auto">Hello,<br />
I've been working on porting a data collection / IoT application from ESP32 to M5Stack Core2 using C++, PlatformIO and Arduino framework. The high level stuff is the same but I am slowly replacing some of the low level hardware dependent code.<br />
I have a mystery abort() and reboot and I can't find where it's happening. At the moment I have been writing in lots of <code>println</code> and <code>printf</code>, but that can only go so far. I read on the PlatformIO site that PlatformIO debug environment won't work on Core2 because one of the JTAG pins is used for the LCD. There is a hack, but I would prefer something simpler as a first approach.<br />
Any suggestions where I can find out what source lines correspond to the PC address and backtrace?<br />
Thanks in advance.</p>
<pre><code>millis=631 In Context::set_state, State* is 3ffbb8d4 and calling entry_action().
millis=638, In InitReadingState::entry_action(), entered state InitReadingState 3ffbb8d4.   
millis=646 In Context::set_state, State* is 3ffbb8d4 and returning from entry_action().     

abort() was called at PC 0x401f81cf on core 1


Backtrace: 0x4008390d:0x3ffd0f60 0x40095ee1:0x3ffd0f80 0x4009b979:0x3ffd0fa0 0x401f81cf:0x3ffd1020 0x401f8216:0x3ffd1040 0x401f8177:0x3ffd1060 0x401f954b:0x3ffd1080 0x400d62ea:0x3ffd10a0 0x400d6310:0x3ffd10c0 0x40214cbe:0x3ffd10e0 0x400d38fd:0x3ffd1100 0x400d64b7:0x3ffd1130 0fd1020 0x401f8216:0x3ffd1040 0x401f8177:0x3ffd1060 0x401f954b:0x3ffdx400d703a:0x3ffd1150 0x400ed671:0x3ffd1170                                                   0x400d64b7:0x3ffd1130 0x400d703a:0x3ffd1150 0x400ed671:0x3ffd1170

</code></pre>
]]></description><link>https://community.m5stack.com/topic/5397/core2-mystery-abort-how-to-debug</link><generator>RSS for Node</generator><lastBuildDate>Wed, 29 Apr 2026 10:02:45 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/5397.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 19 Jun 2023 16:06:49 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Core2 mystery abort() - how to debug? on Thu, 22 Jun 2023 09:23:00 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/felmue" aria-label="Profile: felmue">@<bdi>felmue</bdi></a> That was helpful, thanks!<br />
I added this to my <code>platformio.ini</code>:</p>
<pre><code>build_type = debug
monitor_filters =
  default  ; Remove typical terminal control codes from input
  esp32_exception_decoder  ; Decode the backtrace
</code></pre>
]]></description><link>https://community.m5stack.com/post/21267</link><guid isPermaLink="true">https://community.m5stack.com/post/21267</guid><dc:creator><![CDATA[LBertrand]]></dc:creator><pubDate>Thu, 22 Jun 2023 09:23:00 GMT</pubDate></item><item><title><![CDATA[Reply to Core2 mystery abort() - how to debug? on Wed, 21 Jun 2023 08:21:21 GMT]]></title><description><![CDATA[<p dir="auto">We need more info along with the code in order to help. Looks like a memory issue but no idea</p>
]]></description><link>https://community.m5stack.com/post/21248</link><guid isPermaLink="true">https://community.m5stack.com/post/21248</guid><dc:creator><![CDATA[ajb2k3]]></dc:creator><pubDate>Wed, 21 Jun 2023 08:21:21 GMT</pubDate></item><item><title><![CDATA[Reply to Core2 mystery abort() - how to debug? on Wed, 21 Jun 2023 06:55:34 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/user/lbertrand" aria-label="Profile: LBertrand">@<bdi>LBertrand</bdi></a></p>
<p dir="auto">maybe the info in this <a href="https://community.platformio.org/t/how-do-i-use-esp32-exception-decoder/22789/2" target="_blank" rel="noopener noreferrer nofollow ugc">post</a> will help.</p>
<p dir="auto">Thanks<br />
Felix</p>
]]></description><link>https://community.m5stack.com/post/21247</link><guid isPermaLink="true">https://community.m5stack.com/post/21247</guid><dc:creator><![CDATA[felmue]]></dc:creator><pubDate>Wed, 21 Jun 2023 06:55:34 GMT</pubDate></item></channel></rss>