<?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: MCU-Link SWO ITM Console not flushing in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/MCU-Link-SWO-ITM-Console-not-flushing/m-p/1832806#M55706</link>
    <description>&lt;P&gt;No, the MCU keeps running fine. The SWO output is buffered in MCU-Link until approximately iteration 51 and only then the whole Console output is shown all at once.&lt;/P&gt;&lt;P&gt;With the PE Multilink the output of the ITM Console is updated on every iteration and each line shows up immediately.&lt;/P&gt;&lt;P&gt;To rephrase this: If I add a delay of 1s in betweeen, then it would take roughly one minute for the MCU-Link to show the output and all ~50 lines show up at the same time.&lt;/P&gt;&lt;P&gt;With the PE Multilink I'll see one line showing up each second, which is the desired bahaviour.&lt;/P&gt;</description>
    <pubDate>Thu, 21 Mar 2024 08:58:06 GMT</pubDate>
    <dc:creator>briandavidson1</dc:creator>
    <dc:date>2024-03-21T08:58:06Z</dc:date>
    <item>
      <title>MCU-Link SWO ITM Console not flushing</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/MCU-Link-SWO-ITM-Console-not-flushing/m-p/1830180#M55683</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;After some fiddling with the debug settings the MCU-Link finally works. Poor OOB-experience, btw...&lt;/P&gt;&lt;P&gt;However, the SWO-ITM log doesn't behave as expected. When stepping through this example code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="cpp"&gt;    PRINTF("Hello World\r\n");

    /* Force the counter to be placed into memory. */
    volatile static int i = 0 ;
    /* Enter an infinite loop, just incrementing a counter. */
    while(1) {
        i++ ;
        PRINTF("i: %d\r\n", i);
        /* 'Dummy' NOP to allow source level single stepping of
            tight while() loop */
        __asm volatile ("nop");
    }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the first time SWO log shows up is at iteration 51:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;Hello World
i: 1
i: 2
[...]
i: 50
i: 51&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;On the PE-Multilink the SWO ITM Console is updated on every line, which is expected, as there is a "\r\n" in every print command and this should flush the output.&lt;/P&gt;&lt;P&gt;Is there any way to make MCU-Link behave correctly?&lt;/P&gt;</description>
      <pubDate>Mon, 18 Mar 2024 09:50:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/MCU-Link-SWO-ITM-Console-not-flushing/m-p/1830180#M55683</guid>
      <dc:creator>briandavidson1</dc:creator>
      <dc:date>2024-03-18T09:50:54Z</dc:date>
    </item>
    <item>
      <title>Re: MCU-Link SWO ITM Console not flushing</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/MCU-Link-SWO-ITM-Console-not-flushing/m-p/1830602#M55687</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Do you mean that the MCU stops at the i:51? If it is the case, can you try to declare the i as a global variable?&lt;/P&gt;
&lt;P&gt;int i;&lt;/P&gt;
&lt;P&gt;void main(void)&lt;/P&gt;
&lt;P&gt;{&lt;/P&gt;
&lt;P&gt;i=0;&lt;/P&gt;
&lt;PRE class="lia-code-sample  language-cpp"&gt;&lt;CODE&gt;while(1) {
        i++ ;
        PRINTF("i: %d\r\n", i);
        /* 'Dummy' NOP to allow source level single stepping of
            tight while() loop */
        __asm volatile ("nop");
    }&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Pls have a try.&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;XiangJun Rong&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Mar 2024 01:51:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/MCU-Link-SWO-ITM-Console-not-flushing/m-p/1830602#M55687</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2024-03-19T01:51:16Z</dc:date>
    </item>
    <item>
      <title>Re: MCU-Link SWO ITM Console not flushing</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/MCU-Link-SWO-ITM-Console-not-flushing/m-p/1832806#M55706</link>
      <description>&lt;P&gt;No, the MCU keeps running fine. The SWO output is buffered in MCU-Link until approximately iteration 51 and only then the whole Console output is shown all at once.&lt;/P&gt;&lt;P&gt;With the PE Multilink the output of the ITM Console is updated on every iteration and each line shows up immediately.&lt;/P&gt;&lt;P&gt;To rephrase this: If I add a delay of 1s in betweeen, then it would take roughly one minute for the MCU-Link to show the output and all ~50 lines show up at the same time.&lt;/P&gt;&lt;P&gt;With the PE Multilink I'll see one line showing up each second, which is the desired bahaviour.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Mar 2024 08:58:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/MCU-Link-SWO-ITM-Console-not-flushing/m-p/1832806#M55706</guid>
      <dc:creator>briandavidson1</dc:creator>
      <dc:date>2024-03-21T08:58:06Z</dc:date>
    </item>
    <item>
      <title>Re: MCU-Link SWO ITM Console not flushing</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/MCU-Link-SWO-ITM-Console-not-flushing/m-p/1833316#M55710</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I see your issue. Maybe it is a bug of firmware of MCU-Link device.&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;XiangJun Rong&lt;/P&gt;</description>
      <pubDate>Fri, 22 Mar 2024 01:38:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/MCU-Link-SWO-ITM-Console-not-flushing/m-p/1833316#M55710</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2024-03-22T01:38:31Z</dc:date>
    </item>
  </channel>
</rss>

