<?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>Wireless MCUのトピックRe: KW36 bluetooth : Semihost console compilation error</title>
    <link>https://community.nxp.com/t5/Wireless-MCU/KW36-bluetooth-Semihost-console-compilation-error/m-p/913539#M6830</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The wireless connectivity examples need the debug console set as a UART as the stacks has some timing requirements that are not met when using the semihosting as well as the resources used in order to achieve it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry for the inconveniences this might cause you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Estephania&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Aug 2019 15:04:15 GMT</pubDate>
    <dc:creator>stephanie_m</dc:creator>
    <dc:date>2019-08-13T15:04:15Z</dc:date>
    <item>
      <title>KW36 bluetooth : Semihost console compilation error</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/KW36-bluetooth-Semihost-console-compilation-error/m-p/913538#M6829</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi someone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have met a issue when using semihost console mode, the demo can not pass the compilation.&lt;/P&gt;&lt;P&gt;the details as below:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Demo code :&lt;/STRONG&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;frdmkw36_wireless_examples_bluetooth_glucose_s_freertos&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;settings for printf:&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;checked or unchecked&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;“Redirect SDK “PRINTF” to C library “printf” , both have tried while importing the demo&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Setting for&amp;nbsp; SDK_DEBUGCONSOLE:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_4.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/86868i52A0BD9E8DA5CCDA/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_4.png" alt="pastedImage_4.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_6.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/87082iC838C60C7D772364/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_6.png" alt="pastedImage_6.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Code changed:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&amp;nbsp;&amp;nbsp;ported the&lt;STRONG&gt;&amp;nbsp;BOARD_InitDebugConsole&lt;/STRONG&gt; related code from hello work demo&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Results:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1) Set to Semihost cosole mode, the demo cannot pass the compilation while PRINTF is called.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;the error test is &lt;EM&gt;:&amp;nbsp;&amp;nbsp;C:\Users\DELL\Documents\MCUXpressoIDE_11.0.0_2516\workspace\frdmkw36_wireless_examples_bluetooth_glucose_s_freertos\Debug/../source/glucose_sensor.c:241: undefined reference to `_printf'&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;thePRINTF is called here:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_14.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/87285i0D0BE69A4E727F1E/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_14.png" alt="pastedImage_14.png" /&gt;&lt;/span&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;on this condition, no matter the setting of “printf ” lib&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2) Setting to uart console mode&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;the compilation is ok, and the uart terminator is printed the expected strings.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_17.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/87322iEAD90174635C35A3/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_17.png" alt="pastedImage_17.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;summarize： if the&amp;nbsp;&amp;nbsp;&lt;STRONG&gt;SDK_DEBUGCONSOLE = 0，&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_18.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/87456i3CC3CC955E4FD05F/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_18.png" alt="pastedImage_18.png" /&gt;&lt;/span&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;the printf and related fucntions should defined from the IDE lib, should not have this compilation error. &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;But why this happen?&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Aug 2019 06:56:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/KW36-bluetooth-Semihost-console-compilation-error/m-p/913538#M6829</guid>
      <dc:creator>zhi_wang</dc:creator>
      <dc:date>2019-08-13T06:56:06Z</dc:date>
    </item>
    <item>
      <title>Re: KW36 bluetooth : Semihost console compilation error</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/KW36-bluetooth-Semihost-console-compilation-error/m-p/913539#M6830</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The wireless connectivity examples need the debug console set as a UART as the stacks has some timing requirements that are not met when using the semihosting as well as the resources used in order to achieve it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry for the inconveniences this might cause you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Estephania&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Aug 2019 15:04:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/KW36-bluetooth-Semihost-console-compilation-error/m-p/913539#M6830</guid>
      <dc:creator>stephanie_m</dc:creator>
      <dc:date>2019-08-13T15:04:15Z</dc:date>
    </item>
  </channel>
</rss>

