<?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: Are there recorder buffer size limitations for FreeMASTER 3.1 desktop app? in FreeMASTER</title>
    <link>https://community.nxp.com/t5/FreeMASTER/Are-there-recorder-buffer-size-limitations-for-FreeMASTER-3-1/m-p/1451896#M987</link>
    <description>&lt;P&gt;On the other hand changing FMSTR_COMM_BUFFER_SIZE to 508 in UDP mode does not seem to be a solution for me.&lt;/P&gt;</description>
    <pubDate>Mon, 02 May 2022 15:04:04 GMT</pubDate>
    <dc:creator>lucabarbiero</dc:creator>
    <dc:date>2022-05-02T15:04:04Z</dc:date>
    <item>
      <title>Are there recorder buffer size limitations for FreeMASTER 3.1 desktop app?</title>
      <link>https://community.nxp.com/t5/FreeMASTER/Are-there-recorder-buffer-size-limitations-for-FreeMASTER-3-1/m-p/1436049#M945</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am downloading a 2MB recorder buffer (using an external RAM chip on target side) with Freemaster 3.1 desktop app. It kind of works, but it seems the desktop app struggles to receive a buffer of this size. Download is actually split in two consecutive tranches, of which the second one is initiated by a subsequent trigger. Despite no error, this is not really what I would expect. I would like buffer data to be downloaded and displayed in one go.&lt;/P&gt;&lt;P&gt;Is this behavior expected? Are there limitations for the desktop app with respect to the recorder buffer size it can handle in a single download session? I tend to think there is no issue on embedded target side. But of course I could also be misled.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Luca&lt;/P&gt;</description>
      <pubDate>Wed, 30 Mar 2022 09:20:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/FreeMASTER/Are-there-recorder-buffer-size-limitations-for-FreeMASTER-3-1/m-p/1436049#M945</guid>
      <dc:creator>lucabarbiero</dc:creator>
      <dc:date>2022-03-30T09:20:17Z</dc:date>
    </item>
    <item>
      <title>Re: Are there recorder buffer size limitations for FreeMASTER 3.1 desktop app?</title>
      <link>https://community.nxp.com/t5/FreeMASTER/Are-there-recorder-buffer-size-limitations-for-FreeMASTER-3-1/m-p/1437068#M950</link>
      <description>&lt;P&gt;Hello Luca,&lt;/P&gt;
&lt;P&gt;this seems to be an issue of recorder download logic in the PC application. Let me verify.&lt;/P&gt;
&lt;P&gt;Thank you for the report.&lt;BR /&gt;&lt;SPAN&gt;Michal&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Mar 2022 12:45:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/FreeMASTER/Are-there-recorder-buffer-size-limitations-for-FreeMASTER-3-1/m-p/1437068#M950</guid>
      <dc:creator>MichalH</dc:creator>
      <dc:date>2022-03-31T12:45:19Z</dc:date>
    </item>
    <item>
      <title>Re: Are there recorder buffer size limitations for FreeMASTER 3.1 desktop app?</title>
      <link>https://community.nxp.com/t5/FreeMASTER/Are-there-recorder-buffer-size-limitations-for-FreeMASTER-3-1/m-p/1438254#M961</link>
      <description>&lt;P&gt;Dear Luca,&lt;/P&gt;
&lt;P&gt;I cannot repeat the issue on my side. I have tried an i.MX-RT1060 UDP and TCP demo applications from SDK 2.11, modified to run from external SDRAM and with a recorder buffer of 2M. The example recorder which samples var8, var16 and var32 variables seems to operate correctly, loading approximately 600.000 points.&lt;/P&gt;
&lt;P&gt;As all test variables constantly increment so I think it would reveal the issue of "split download" as you have described. The waveforms look correct: var8 overflows above 255 and var16 overflows above 65535 just once. The var32 seems linear - which kind-of proves the recorder was fully stopped during the whole download.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MichalH_0-1649065538802.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/175782iDA966F98638BA0B7/image-size/large?v=v2&amp;amp;px=999" role="button" title="MichalH_0-1649065538802.png" alt="MichalH_0-1649065538802.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;What is the setup on your side? What MCU, what communication?&lt;/P&gt;
&lt;P&gt;Can you try to repeat the issue with a simple example application?&lt;/P&gt;
&lt;P&gt;Thanks,&lt;BR /&gt;Michal&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Apr 2022 09:55:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/FreeMASTER/Are-there-recorder-buffer-size-limitations-for-FreeMASTER-3-1/m-p/1438254#M961</guid>
      <dc:creator>MichalH</dc:creator>
      <dc:date>2022-04-04T09:55:53Z</dc:date>
    </item>
    <item>
      <title>Re: Are there recorder buffer size limitations for FreeMASTER 3.1 desktop app?</title>
      <link>https://community.nxp.com/t5/FreeMASTER/Are-there-recorder-buffer-size-limitations-for-FreeMASTER-3-1/m-p/1438466#M962</link>
      <description>&lt;P&gt;Hello Michal,&lt;/P&gt;&lt;P&gt;Thank you for testing! Today I can't reproduce that same faulty behavior myself.. but before testing, I installed the very latest Freemaster 3.1 version from 22/03. I don't know if that's the thing, but this is a difference I can report. I will test this more, until I get a consistent behavior. Today I could download less than the required 2MB with the first triggering of a recorder after opening freemaster. Then if I trigger again a new session, it manages to download the whole buffer as wanted. I will let you know of any findings.&lt;/P&gt;&lt;P&gt;Thanks for your prompt support as always,&lt;/P&gt;&lt;P&gt;Luca&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 04 Apr 2022 16:13:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/FreeMASTER/Are-there-recorder-buffer-size-limitations-for-FreeMASTER-3-1/m-p/1438466#M962</guid>
      <dc:creator>lucabarbiero</dc:creator>
      <dc:date>2022-04-04T16:13:06Z</dc:date>
    </item>
    <item>
      <title>Re: Are there recorder buffer size limitations for FreeMASTER 3.1 desktop app?</title>
      <link>https://community.nxp.com/t5/FreeMASTER/Are-there-recorder-buffer-size-limitations-for-FreeMASTER-3-1/m-p/1451357#M983</link>
      <description>&lt;P&gt;Dear &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/34487"&gt;@MichalH&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I don't know what was the issue with my setup, but I can confirm that there is no tool limitation in handling a 2MB recorder buffer. I can now download the complete SDRAM. I achieved this with UART communication at 2.56 Mbps in 3'40'' download time.&lt;/P&gt;&lt;P&gt;Then I went further and I tried UDP communication to hopefully cut down that transfer time. In general the communication works, but I do see issues when attempting to download my large recorder buffer.I am getting a lot of "Response timeout" errors when I try to download anything larger than 40 Kb.&lt;/P&gt;&lt;P&gt;To investigate this issue, I inserted test pins in the freemaster driver code, before/after the invocation of _FMSTR_ReadMem (track 0, black) and _FMSTR_ReadMemBaseAddress (track 1, brown)&amp;nbsp; in freemaster_protocol.c.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="lucabarbiero_0-1651236577190.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/178455i754C360A6F9DBF0F/image-size/large?v=v2&amp;amp;px=999" role="button" title="lucabarbiero_0-1651236577190.png" alt="lucabarbiero_0-1651236577190.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;And I noticed that _FMSTR_ReadMem is the one mostly used to access my SDRAM. There are bursts of invocations every 5ms (the rate at which I call FMSTR_Poll) separated by long idle intervals. Which may be the problem? I also had a look at the communication log which reports the occurrence of timeouts.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="lucabarbiero_1-1651237033522.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/178457i151193975C29E8F4/image-size/large?v=v2&amp;amp;px=999" role="button" title="lucabarbiero_1-1651237033522.png" alt="lucabarbiero_1-1651237033522.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I tried to play with the FMSTR_COMM_BUFFER_SIZE define (make it larger or smaller) and the Timeout parameter of the UDP/TCP communication plugin (which seems to influence the duration of those idle times displayed in the logic analyzer trace posted above):&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="lucabarbiero_2-1651237225735.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/178458i70D86479B8A29F93/image-size/medium?v=v2&amp;amp;px=400" role="button" title="lucabarbiero_2-1651237225735.png" alt="lucabarbiero_2-1651237225735.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;But no ultimate solution. Any idea?&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Luca&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Apr 2022 13:05:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/FreeMASTER/Are-there-recorder-buffer-size-limitations-for-FreeMASTER-3-1/m-p/1451357#M983</guid>
      <dc:creator>lucabarbiero</dc:creator>
      <dc:date>2022-04-29T13:05:48Z</dc:date>
    </item>
    <item>
      <title>Re: Are there recorder buffer size limitations for FreeMASTER 3.1 desktop app?</title>
      <link>https://community.nxp.com/t5/FreeMASTER/Are-there-recorder-buffer-size-limitations-for-FreeMASTER-3-1/m-p/1451819#M985</link>
      <description>&lt;P&gt;Hello Luca,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thanks for the report. Let me investigate what could be wrong with the UDP. This communication should be quite reliable on the wired Ethernet without packet losses (which I think causes the timeout and delays). But still a few timeouts should not break the whole transfer.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let mi investigate on my side. In the meanwhile, is it possible for you to:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;decrease the FMSTR_COMM_BUFFER_SIZE to 508&lt;/LI&gt;
&lt;LI&gt;try TCP transfer&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Thanks,&lt;BR /&gt;Michal&lt;/P&gt;</description>
      <pubDate>Mon, 02 May 2022 13:13:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/FreeMASTER/Are-there-recorder-buffer-size-limitations-for-FreeMASTER-3-1/m-p/1451819#M985</guid>
      <dc:creator>MichalH</dc:creator>
      <dc:date>2022-05-02T13:13:05Z</dc:date>
    </item>
    <item>
      <title>Re: Are there recorder buffer size limitations for FreeMASTER 3.1 desktop app?</title>
      <link>https://community.nxp.com/t5/FreeMASTER/Are-there-recorder-buffer-size-limitations-for-FreeMASTER-3-1/m-p/1451895#M986</link>
      <description>&lt;P&gt;Hi Michal,&lt;/P&gt;&lt;P&gt;TCP seems to work. I will check more thoroughly but from a quick attempt it looks good. I agree with you that there shouldn't be packet losses in a wired host-target ethernet connection. But apparently there are (at least in my setup) and likely it is the connection orientation of TCP that fixes this with re-transmissions.&lt;/P&gt;&lt;P&gt;These re-transmissions are probably slowing down the recorder buffer transfer, which could be faster otherwise. But it is already an achievement. Thanks for advising.&lt;/P&gt;&lt;P&gt;Luca&lt;/P&gt;</description>
      <pubDate>Mon, 02 May 2022 15:06:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/FreeMASTER/Are-there-recorder-buffer-size-limitations-for-FreeMASTER-3-1/m-p/1451895#M986</guid>
      <dc:creator>lucabarbiero</dc:creator>
      <dc:date>2022-05-02T15:06:14Z</dc:date>
    </item>
    <item>
      <title>Re: Are there recorder buffer size limitations for FreeMASTER 3.1 desktop app?</title>
      <link>https://community.nxp.com/t5/FreeMASTER/Are-there-recorder-buffer-size-limitations-for-FreeMASTER-3-1/m-p/1451896#M987</link>
      <description>&lt;P&gt;On the other hand changing FMSTR_COMM_BUFFER_SIZE to 508 in UDP mode does not seem to be a solution for me.&lt;/P&gt;</description>
      <pubDate>Mon, 02 May 2022 15:04:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/FreeMASTER/Are-there-recorder-buffer-size-limitations-for-FreeMASTER-3-1/m-p/1451896#M987</guid>
      <dc:creator>lucabarbiero</dc:creator>
      <dc:date>2022-05-02T15:04:04Z</dc:date>
    </item>
    <item>
      <title>Re: Are there recorder buffer size limitations for FreeMASTER 3.1 desktop app?</title>
      <link>https://community.nxp.com/t5/FreeMASTER/Are-there-recorder-buffer-size-limitations-for-FreeMASTER-3-1/m-p/1453262#M990</link>
      <description>&lt;P&gt;Hello Luca,&lt;/P&gt;
&lt;P&gt;good to hear the TCP works better. I did a quick re-test with UDP and even larger 8MB recorder buffer and it downloads reliably over my local network (I use i.MX-RT1064). For UDP, it takes about 20 seconds, for TCP, the same buffer takes about 30 seconds.&lt;/P&gt;
&lt;P&gt;FreeMASTER protocol was not really designed for large data transfers. The PC tool should retry up to 10% of lost (timeout) frames when loading a large memory blocks, but even this does not seem enough in your setup. The TCP is a good solution here as it ensures the retries and delivery by itself.&lt;/P&gt;
&lt;P&gt;Thanks,&lt;BR /&gt;Michal&lt;/P&gt;</description>
      <pubDate>Thu, 05 May 2022 06:23:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/FreeMASTER/Are-there-recorder-buffer-size-limitations-for-FreeMASTER-3-1/m-p/1453262#M990</guid>
      <dc:creator>MichalH</dc:creator>
      <dc:date>2022-05-05T06:23:23Z</dc:date>
    </item>
  </channel>
</rss>

