<?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>S32 Design Studio中的主题 Re: printf() through OpenSDA</title>
    <link>https://community.nxp.com/t5/S32-Design-Studio/printf-through-OpenSDA/m-p/813624#M3608</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;for me the prontf() is working as you describe her using debugger. I can see the outputs with the debug session. When I disconnect from target it will stop (caused by printf). Also it does not run standalone afterwards. Is there a solution for that: having printf() in the running code without console? Why it is not running when printf() used?&lt;/P&gt;&lt;P&gt;br&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Oct 2018 14:50:10 GMT</pubDate>
    <dc:creator>robertfichtner</dc:creator>
    <dc:date>2018-10-11T14:50:10Z</dc:date>
    <item>
      <title>printf() through OpenSDA</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/printf-through-OpenSDA/m-p/813615#M3599</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to use printf() through the OpenSDA debugger back to console?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like the MCU outputs printf() data through SWD to OpenSDA debugger, and from there back to the console of S32 Design Studio.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using S32K144EVB, and would like it to function in real time with running application, not using LPUART, and no SDK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Sep 2018 07:23:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/printf-through-OpenSDA/m-p/813615#M3599</guid>
      <dc:creator>christofferjärl</dc:creator>
      <dc:date>2018-09-11T07:23:59Z</dc:date>
    </item>
    <item>
      <title>Re: printf() through OpenSDA</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/printf-through-OpenSDA/m-p/813616#M3600</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;printf() via OpenSDA is working - but the OpenSDA USB is acting as Virtual COM port and you need to use LPUART1 for that.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Other possibility is print to Debug Console (in S32DS). For that you need to link new_lib or ewl lib with I/O support.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jiri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Sep 2018 12:41:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/printf-through-OpenSDA/m-p/813616#M3600</guid>
      <dc:creator>jiri_kral</dc:creator>
      <dc:date>2018-09-17T12:41:59Z</dc:date>
    </item>
    <item>
      <title>Re: printf() through OpenSDA</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/printf-through-OpenSDA/m-p/813617#M3601</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your response Jiri!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So when the lib's are untouched (not linked), a printf() will put the data out on the MCU's LPUART1?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Don´t really understand which "way" the data takes when you use your second alternative and link the lib, is it the PC generating the data from the program just within S32DS, or is it the MCU which send it back in some way?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have an example how to link the lib in S32DS?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Great thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Sep 2018 13:07:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/printf-through-OpenSDA/m-p/813617#M3601</guid>
      <dc:creator>christofferjärl</dc:creator>
      <dc:date>2018-09-17T13:07:24Z</dc:date>
    </item>
    <item>
      <title>Re: printf() through OpenSDA</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/printf-through-OpenSDA/m-p/813618#M3602</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you are okay with debug console only - just switch in project properties your actual c library from no I/O version to version which supports debug console:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/68901i1D01217DF2F52ACF/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Otherwise you need to implement read_console/write_console functions. For reference you can look at this example:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/docs/DOC-335240"&gt;https://community.nxp.com/docs/DOC-335240&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jiri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Sep 2018 13:50:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/printf-through-OpenSDA/m-p/813618#M3602</guid>
      <dc:creator>jiri_kral</dc:creator>
      <dc:date>2018-09-17T13:50:33Z</dc:date>
    </item>
    <item>
      <title>Re: printf() through OpenSDA</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/printf-through-OpenSDA/m-p/813619#M3603</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe I miss some basics here, but w&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;hich "way" does the data from printf() take when you choose a lib with "Debugger Console I/O"? &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Is it the PC that runs the S32DS which generating the data from the program just "within" S32DS, or is it coming from the MCU which send it back in some way?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Sep 2018 14:09:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/printf-through-OpenSDA/m-p/813619#M3603</guid>
      <dc:creator>christofferjärl</dc:creator>
      <dc:date>2018-09-17T14:09:33Z</dc:date>
    </item>
    <item>
      <title>Re: printf() through OpenSDA</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/printf-through-OpenSDA/m-p/813620#M3604</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;C lib with I/O supports has implemented printf functionality - you can see output in S32DS debug console. The data are from MCU and send via JTAG/SWD -&amp;gt; PE Micro(OpenSDA) to PC. Yon need to have active S32DS debug session.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jiri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Sep 2018 07:35:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/printf-through-OpenSDA/m-p/813620#M3604</guid>
      <dc:creator>jiri_kral</dc:creator>
      <dc:date>2018-09-18T07:35:43Z</dc:date>
    </item>
    <item>
      <title>Re: printf() through OpenSDA</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/printf-through-OpenSDA/m-p/813621#M3605</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Jiri,&lt;/P&gt;&lt;P&gt;this topic describe exactly what I want to do using S32 design studio and a sample project out of it. When I configure the library support as you described, I need to include stdio.h in the main. Then it compiles and I can flash. But the debugger shows me, the program is running in a SW trap deep inside the printf. So it brakes. Any ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Oct 2018 10:47:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/printf-through-OpenSDA/m-p/813621#M3605</guid>
      <dc:creator>robertfichtner</dc:creator>
      <dc:date>2018-10-02T10:47:19Z</dc:date>
    </item>
    <item>
      <title>Re: printf() through OpenSDA</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/printf-through-OpenSDA/m-p/813622#M3606</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Robert,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;well - SW trap may be caused by many things. Can you share your project?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jiri&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Oct 2018 11:02:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/printf-through-OpenSDA/m-p/813622#M3606</guid>
      <dc:creator>jiri_kral</dc:creator>
      <dc:date>2018-10-02T11:02:55Z</dc:date>
    </item>
    <item>
      <title>Re: printf() through OpenSDA</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/printf-through-OpenSDA/m-p/813623#M3607</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I forgot also mention that together with C lib supporting debug console you also need to enable semihosting console in debug session settings:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/73734i38CC3A83A29B01B6/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The printf output you can see in console:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/73781i243E208D30D5D35B/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jiri&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Oct 2018 12:51:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/printf-through-OpenSDA/m-p/813623#M3607</guid>
      <dc:creator>jiri_kral</dc:creator>
      <dc:date>2018-10-02T12:51:39Z</dc:date>
    </item>
    <item>
      <title>Re: printf() through OpenSDA</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/printf-through-OpenSDA/m-p/813624#M3608</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;for me the prontf() is working as you describe her using debugger. I can see the outputs with the debug session. When I disconnect from target it will stop (caused by printf). Also it does not run standalone afterwards. Is there a solution for that: having printf() in the running code without console? Why it is not running when printf() used?&lt;/P&gt;&lt;P&gt;br&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Oct 2018 14:50:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/printf-through-OpenSDA/m-p/813624#M3608</guid>
      <dc:creator>robertfichtner</dc:creator>
      <dc:date>2018-10-11T14:50:10Z</dc:date>
    </item>
    <item>
      <title>Re: printf() through OpenSDA</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/printf-through-OpenSDA/m-p/813625#M3609</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you are correct. This is printf functionality for debug purposes and technically the output is done by debug probe.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use UART for printf to some terminal (minicom, putty, RealTerm...).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here are examples for printf via UART:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/docs/DOC-335240"&gt;EXAMPLE: S32k144 UART printf/scanf under FreeRTOS - S32DS&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/docs/DOC-333788"&gt;https://community.nxp.com/docs/DOC-333788&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jiri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Oct 2018 08:46:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/printf-through-OpenSDA/m-p/813625#M3609</guid>
      <dc:creator>jiri_kral</dc:creator>
      <dc:date>2018-10-12T08:46:16Z</dc:date>
    </item>
    <item>
      <title>Re: printf() through OpenSDA</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/printf-through-OpenSDA/m-p/1425839#M8316</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you see the attach file to help me? I don't have EWL release ?&lt;/P&gt;&lt;P&gt;thank you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Mar 2022 05:28:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/printf-through-OpenSDA/m-p/1425839#M8316</guid>
      <dc:creator>tzeng015</dc:creator>
      <dc:date>2022-03-10T05:28:55Z</dc:date>
    </item>
    <item>
      <title>Re: printf() through OpenSDA</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/printf-through-OpenSDA/m-p/1426343#M8320</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;you can use NewLib (or NewLib_nano) with debugger console &lt;SPAN&gt;support.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Mar 2022 18:38:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/printf-through-OpenSDA/m-p/1426343#M8320</guid>
      <dc:creator>jiri_kral</dc:creator>
      <dc:date>2022-03-10T18:38:18Z</dc:date>
    </item>
    <item>
      <title>Re: printf() through OpenSDA</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/printf-through-OpenSDA/m-p/1426442#M8321</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please see the attach file of my code and setting. I still can't make it work and please kindly help me&lt;/P&gt;&lt;P&gt;thank you&lt;/P&gt;</description>
      <pubDate>Fri, 11 Mar 2022 01:13:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/printf-through-OpenSDA/m-p/1426442#M8321</guid>
      <dc:creator>tzeng015</dc:creator>
      <dc:date>2022-03-11T01:13:35Z</dc:date>
    </item>
  </channel>
</rss>

