<?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 FRDM-K82F Semihosting from QSPI in Kinetis Software Development Kit</title>
    <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/FRDM-K82F-Semihosting-from-QSPI/m-p/481787#M4155</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I wrote a simple hello world program for the K82F that uses semihosting rather than UART:&lt;/P&gt;&lt;PRE class="c++" name="code"&gt;&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;PRE class="c++" name="code"&gt;#include &amp;lt;stdio.h&amp;gt;&amp;nbsp; int main(void) { &amp;nbsp; printf("Hello World\n"); &amp;nbsp; while(1); &amp;nbsp; return 1; }&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;P&gt;If I build this program using the supporting files from KSDK_2.0 then running the program in GDB successfully prints Hello World to the terminal.&lt;/P&gt;&lt;P&gt;I can build the program using the MK82FN256xxx15_qspi.ld linker script but if I go through the same process of creating an .sb file and flashing it to the device as in the hello_world_qspi example project from KSDK_2.0 then it doesn't print anything when connecting to it with GDB.&lt;/P&gt;&lt;P&gt;Is semihosting supposed to work from QSPI?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Apr 2016 15:22:06 GMT</pubDate>
    <dc:creator>jozefl</dc:creator>
    <dc:date>2016-04-27T15:22:06Z</dc:date>
    <item>
      <title>FRDM-K82F Semihosting from QSPI</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/FRDM-K82F-Semihosting-from-QSPI/m-p/481787#M4155</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I wrote a simple hello world program for the K82F that uses semihosting rather than UART:&lt;/P&gt;&lt;PRE class="c++" name="code"&gt;&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;PRE class="c++" name="code"&gt;#include &amp;lt;stdio.h&amp;gt;&amp;nbsp; int main(void) { &amp;nbsp; printf("Hello World\n"); &amp;nbsp; while(1); &amp;nbsp; return 1; }&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;P&gt;If I build this program using the supporting files from KSDK_2.0 then running the program in GDB successfully prints Hello World to the terminal.&lt;/P&gt;&lt;P&gt;I can build the program using the MK82FN256xxx15_qspi.ld linker script but if I go through the same process of creating an .sb file and flashing it to the device as in the hello_world_qspi example project from KSDK_2.0 then it doesn't print anything when connecting to it with GDB.&lt;/P&gt;&lt;P&gt;Is semihosting supposed to work from QSPI?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Apr 2016 15:22:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/FRDM-K82F-Semihosting-from-QSPI/m-p/481787#M4155</guid>
      <dc:creator>jozefl</dc:creator>
      <dc:date>2016-04-27T15:22:06Z</dc:date>
    </item>
    <item>
      <title>Re: FRDM-K82F Semihosting from QSPI</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/FRDM-K82F-Semihosting-from-QSPI/m-p/481788#M4156</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Jozefl,&lt;/P&gt;&lt;P&gt;Regarding you question, I suppose that the "semihosting" is the console of the GDB debugger tools, in the case, Kinetis transfer the words of printf() to console via JTAG port, so the printf() function is valid only in the debugger environment after the debugger tools&amp;nbsp; has initialized the JTAG port.&lt;/P&gt;&lt;P&gt;In conclusion, the printf() can not run in stand along mode,it is valid in debugger environment. If you want to run it in stand along mode, you have to use UART port.&lt;/P&gt;&lt;P&gt;Hope it can help you.&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Xiangjun rong&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Apr 2016 08:11:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/FRDM-K82F-Semihosting-from-QSPI/m-p/481788#M4156</guid>
      <dc:creator>xiangjunrong</dc:creator>
      <dc:date>2016-04-29T08:11:03Z</dc:date>
    </item>
    <item>
      <title>Re: FRDM-K82F Semihosting from QSPI</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/FRDM-K82F-Semihosting-from-QSPI/m-p/481789#M4157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Xiangjun,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Yes, I was talking about using semihosting in GDB. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;If I flash the program to QSPI using blhost and then launch GDB, connect to the device and execute the following commands:&lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;mon semihosting enable&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;mon semihosting IOClient=3&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;continue&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;then nothing to get printed to the GDB console.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jun 2016 12:30:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/FRDM-K82F-Semihosting-from-QSPI/m-p/481789#M4157</guid>
      <dc:creator>jozefl</dc:creator>
      <dc:date>2016-06-06T12:30:05Z</dc:date>
    </item>
    <item>
      <title>Re: FRDM-K82F Semihosting from QSPI</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/FRDM-K82F-Semihosting-from-QSPI/m-p/481790#M4158</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The hello_world_qspi project is built with the -ffreestanding flag by default. By removing this flag semihosting works.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jun 2016 10:10:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/FRDM-K82F-Semihosting-from-QSPI/m-p/481790#M4158</guid>
      <dc:creator>jozefl</dc:creator>
      <dc:date>2016-06-07T10:10:33Z</dc:date>
    </item>
  </channel>
</rss>

