<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: FreeMaster 3 randomly Error 0x80000101 (s32k344) in FreeMASTER</title>
    <link>https://community.nxp.com/t5/FreeMASTER/FreeMaster-3-randomly-Error-0x80000101-s32k344/m-p/1373522#M811</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thanks for the reply.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am indeed using Freemaster in polling mode. I call the FMSTR_Poll(); in the main-loop before any other function. There are also no interrupts enabled.&lt;BR /&gt;I get data and do some calculations with it, that's all. I dont understand why it crashes.&lt;/P&gt;&lt;P&gt;Is there&amp;nbsp; a reset possibility in the code for the FreeMaster if it has this communication problem?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 18 Nov 2021 13:33:32 GMT</pubDate>
    <dc:creator>JoDo</dc:creator>
    <dc:date>2021-11-18T13:33:32Z</dc:date>
    <item>
      <title>FreeMaster 3 randomly Error 0x80000101 (s32k344)</title>
      <link>https://community.nxp.com/t5/FreeMASTER/FreeMaster-3-randomly-Error-0x80000101-s32k344/m-p/1373449#M809</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am working with FreeMaster 3.1.2.4 and with S32K344 controller. It works perfectly, but after some time &amp;gt; 5...10Sec I get an erro 0x80000101 (see picture) for each variabe im trying to read. When I reset the controller, freemaster continues without error, but after about 5...10Sec the same error comes up&lt;/P&gt;&lt;P&gt;I also measured the execution time of the function that generates the data and it was less than 1Ms. When I comment this function out, I do not get an error. It seems that an error occurs and the FreeMaster gets confused.&lt;/P&gt;&lt;P&gt;does anyone have any idea where something is going wrong here?&lt;/P&gt;&lt;P&gt;Translated with &lt;A href="http://www.DeepL.com/Translator" target="_blank"&gt;www.DeepL.com/Translator&lt;/A&gt; (free version)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JoDo_0-1637232804165.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/162548iB98BBDBED539D3F1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JoDo_0-1637232804165.png" alt="JoDo_0-1637232804165.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Nov 2021 11:04:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/FreeMASTER/FreeMaster-3-randomly-Error-0x80000101-s32k344/m-p/1373449#M809</guid>
      <dc:creator>JoDo</dc:creator>
      <dc:date>2021-11-18T11:04:52Z</dc:date>
    </item>
    <item>
      <title>Re: FreeMaster 3 randomly Error 0x80000101 (s32k344)</title>
      <link>https://community.nxp.com/t5/FreeMASTER/FreeMaster-3-randomly-Error-0x80000101-s32k344/m-p/1373465#M810</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/191027"&gt;@JoDo&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;What communication mode are you using ? (short/long interrupt or polling)&lt;/P&gt;
&lt;P&gt;I suspect that FreeMASTER driver has no sufficient time to process the communication phase (ex: when it tries to read/write data over UART another interrupt with higher priority stops the read/write execution and the driver is unable to recover).&lt;/P&gt;
&lt;P&gt;Potential workarounds could be:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Switch from interrupt to polling mode&lt;/LI&gt;
&lt;LI&gt;Increase FreeMASTER interrupt priority&lt;/LI&gt;
&lt;LI&gt;Use BDM plugin (see note)&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Note: BDM plugin does not require FreeMASTER Driver enablement in the embedded application. The drawback of this approach is that is does not allow the use of both Debugger and FreeMASTER at the same time as the debug interface would be used by the later, additionally, some of the advanced functionalities (such as recorder) are not available in this mode.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Nov 2021 11:41:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/FreeMASTER/FreeMaster-3-randomly-Error-0x80000101-s32k344/m-p/1373465#M810</guid>
      <dc:creator>iulian_stan</dc:creator>
      <dc:date>2021-11-18T11:41:12Z</dc:date>
    </item>
    <item>
      <title>Re: FreeMaster 3 randomly Error 0x80000101 (s32k344)</title>
      <link>https://community.nxp.com/t5/FreeMASTER/FreeMaster-3-randomly-Error-0x80000101-s32k344/m-p/1373522#M811</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thanks for the reply.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am indeed using Freemaster in polling mode. I call the FMSTR_Poll(); in the main-loop before any other function. There are also no interrupts enabled.&lt;BR /&gt;I get data and do some calculations with it, that's all. I dont understand why it crashes.&lt;/P&gt;&lt;P&gt;Is there&amp;nbsp; a reset possibility in the code for the FreeMaster if it has this communication problem?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Nov 2021 13:33:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/FreeMASTER/FreeMaster-3-randomly-Error-0x80000101-s32k344/m-p/1373522#M811</guid>
      <dc:creator>JoDo</dc:creator>
      <dc:date>2021-11-18T13:33:32Z</dc:date>
    </item>
    <item>
      <title>Re: FreeMaster 3 randomly Error 0x80000101 (s32k344)</title>
      <link>https://community.nxp.com/t5/FreeMASTER/FreeMaster-3-randomly-Error-0x80000101-s32k344/m-p/1374192#M814</link>
      <description>&lt;P&gt;There is no reset functionality. FreeMASTER Driver should be able to handle wrong/incomplete/corrupted messages. I'm not sure whether your issue happens on protocol or lower communication level. Is it possible to share your project to check it on our side ?&lt;/P&gt;</description>
      <pubDate>Fri, 19 Nov 2021 08:47:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/FreeMASTER/FreeMaster-3-randomly-Error-0x80000101-s32k344/m-p/1374192#M814</guid>
      <dc:creator>iulian_stan</dc:creator>
      <dc:date>2021-11-19T08:47:40Z</dc:date>
    </item>
    <item>
      <title>Re: FreeMaster 3 randomly Error 0x80000101 (s32k344)</title>
      <link>https://community.nxp.com/t5/FreeMASTER/FreeMaster-3-randomly-Error-0x80000101-s32k344/m-p/1374604#M815</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/100557"&gt;@iulian_stan&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;I have sent you a private message with my S32DS project (RTD 1.0.0 CD) attached.&lt;/P&gt;&lt;P&gt;Thank you very much in advance!&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;JoDo&lt;/P&gt;</description>
      <pubDate>Sat, 20 Nov 2021 10:46:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/FreeMASTER/FreeMaster-3-randomly-Error-0x80000101-s32k344/m-p/1374604#M815</guid>
      <dc:creator>JoDo</dc:creator>
      <dc:date>2021-11-20T10:46:20Z</dc:date>
    </item>
    <item>
      <title>Re: FreeMaster 3 randomly Error 0x80000101 (s32k344)</title>
      <link>https://community.nxp.com/t5/FreeMASTER/FreeMaster-3-randomly-Error-0x80000101-s32k344/m-p/1374991#M816</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/191027"&gt;@JoDo&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Thanks for sharing your project. I was able to reproduce the issue and it looks that the UART runs into "Receiver Overrun" state (&lt;EM&gt;&lt;STRONG&gt;STAT&lt;/STRONG&gt;&lt;/EM&gt; register &lt;SPAN&gt;→&lt;/SPAN&gt;&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;OR&lt;/STRONG&gt;&lt;/EM&gt; flag). The board receives too more requests from the host (FreeMASTER tool running on PC) than the embedded side can process. FreeMASTER driver has no sufficient time to process all incoming requests and as consequence &lt;EM&gt;&lt;STRONG&gt;OR&lt;/STRONG&gt;&lt;/EM&gt; flag is set to &lt;EM&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/EM&gt;. From that point the serial will no longer accept messages till the flag is cleared. FreeMASTER Driver is not "aware" of this flag because it does not control the peripheral except for sending and receiving messages. Even though the desktop tool keeps sending messages they are ignored by the UART, causing&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;Timeout Errors&lt;/STRONG&gt;&lt;/EM&gt;.&lt;/P&gt;
&lt;P&gt;Here are a few things&amp;nbsp;I tried to fix it:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;While in debug, I cleared the OR flag once I got timeout errors and was able to reconnect to the board without resetting it.&lt;BR /&gt;In this case you can use the debugger or add some logic that monitors the &lt;EM&gt;&lt;STRONG&gt;STAT&lt;/STRONG&gt; &lt;/EM&gt;register.&lt;/LI&gt;
&lt;LI&gt;I switched to interrupt&amp;nbsp;mode and had no issue running the app. I chose the short interrupt to make sure that messages are picked from serial line as soon as they come, the processing is still done in the poll function.&lt;BR /&gt;The interrupt can be enabled from Configuration Tool like this:
&lt;OL&gt;
&lt;LI&gt;Set the Callback function on "Generinc Interrupt Settings" tab&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Capture.PNG" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/162830i1ADB58937B63C861/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;
&lt;P&gt;Note: FMSTR_SerialIsr is defined in "freemaster_s32k344_lpuart.h".&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;Enable the interrupt in the "Interrupt Controller" tab&lt;BR /&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Capture1.PNG" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/162832i69479B5D3D8E0402/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture1.PNG" alt="Capture1.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&lt;SPAN style="font-family: inherit;"&gt;Hope it helps.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Nov 2021 11:36:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/FreeMASTER/FreeMaster-3-randomly-Error-0x80000101-s32k344/m-p/1374991#M816</guid>
      <dc:creator>iulian_stan</dc:creator>
      <dc:date>2021-11-22T11:36:57Z</dc:date>
    </item>
    <item>
      <title>Re: FreeMaster 3 randomly Error 0x80000101 (s32k344)</title>
      <link>https://community.nxp.com/t5/FreeMASTER/FreeMaster-3-randomly-Error-0x80000101-s32k344/m-p/1376269#M818</link>
      <description>&lt;P&gt;Hello &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/100557"&gt;@iulian_stan&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Thank you very much for debuging my project and the detailed description.&lt;/P&gt;&lt;P&gt;I have tried it today. And as you suggested I changed it to short interrupt, since then I have not had any communication errors either.&lt;/P&gt;&lt;P&gt;Thanks a lot for the support, it helped!&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;JoDo&lt;/P&gt;</description>
      <pubDate>Wed, 24 Nov 2021 10:36:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/FreeMASTER/FreeMaster-3-randomly-Error-0x80000101-s32k344/m-p/1376269#M818</guid>
      <dc:creator>JoDo</dc:creator>
      <dc:date>2021-11-24T10:36:47Z</dc:date>
    </item>
  </channel>
</rss>

