<?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: How to get console output while debugging application in lpcexpresso? in LPCXpresso IDE</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/How-to-get-console-output-while-debugging-application-in/m-p/762492#M33231</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I changed every call from Trace_Printf to printf and now I have console output for the sample application while debugging.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 01 Mar 2018 20:54:50 GMT</pubDate>
    <dc:creator>jacobmckay</dc:creator>
    <dc:date>2018-03-01T20:54:50Z</dc:date>
    <item>
      <title>How to get console output while debugging application in lpcexpresso?</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/How-to-get-console-output-while-debugging-application-in/m-p/762491#M33230</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have downloaded LpcExpresso and the NHS3100 SDK, followed the quickstart to flash the 'blinky' program to the nhs3100, and now I'm stuck trying to read the console output of the&amp;nbsp;app_example_dp_ndeft2t (the example that sends/receives NFC messages).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's been years since I've done any c++ so forgive me if this is supposed to be trivial :smileysilly:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway, I can debug the application, stop on breakpoints and inspect their values, but the program has many calls to Trace_Printf that would be rather convenient if they showed up in my LpcExpresso.&amp;nbsp; I'm thinking the answer lies somewhere with "Semihosting" or "SWO Trace Config" both of which are new concepts to me, and both of which I have tried to follow instructions to get up and running with in LpcExpresso and the example applications.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone give me a push in the right direction?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Feb 2018 01:46:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/How-to-get-console-output-while-debugging-application-in/m-p/762491#M33230</guid>
      <dc:creator>jacobmckay</dc:creator>
      <dc:date>2018-02-22T01:46:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to get console output while debugging application in lpcexpresso?</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/How-to-get-console-output-while-debugging-application-in/m-p/762492#M33231</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I changed every call from Trace_Printf to printf and now I have console output for the sample application while debugging.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Mar 2018 20:54:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/How-to-get-console-output-while-debugging-application-in/m-p/762492#M33231</guid>
      <dc:creator>jacobmckay</dc:creator>
      <dc:date>2018-03-01T20:54:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to get console output while debugging application in lpcexpresso?</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/How-to-get-console-output-while-debugging-application-in/m-p/762493#M33232</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sirs,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do you solve it?&lt;/P&gt;&lt;P&gt;Could you be kindly to share how I should setup the config to printf for "console output"?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks,&lt;/P&gt;&lt;P&gt;Arna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Mar 2018 03:22:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/How-to-get-console-output-while-debugging-application-in/m-p/762493#M33232</guid>
      <dc:creator>aresmarser</dc:creator>
      <dc:date>2018-03-14T03:22:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to get console output while debugging application in lpcexpresso?</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/How-to-get-console-output-while-debugging-application-in/m-p/762494#M33233</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Replace statements like this:&amp;nbsp;&lt;/P&gt;&lt;P&gt;Trace_Printf("Received TEXT Record (len = %d, restricted to 32): %.*s\n\r", payloadLength, 32, pPayloadStart);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With statements like this:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;printf("Received TEXT Record (len = %d, restricted to 32): %.*s\n\r", payloadLength, 32, pPayloadStart);&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Mar 2018 20:56:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/How-to-get-console-output-while-debugging-application-in/m-p/762494#M33233</guid>
      <dc:creator>jacobmckay</dc:creator>
      <dc:date>2018-03-15T20:56:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to get console output while debugging application in lpcexpresso?</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/How-to-get-console-output-while-debugging-application-in/m-p/762495#M33234</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jacob,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;Actually I did do that just like what you said.&lt;/P&gt;&lt;P&gt;For example, I tried the project "app_demo_dp_blinky" and added below statement in blue in the&amp;nbsp;mainblinky.c file main function:&lt;/P&gt;&lt;P&gt;------&lt;/P&gt;&lt;DIV&gt;&lt;SPAN style="color: #0000ff;"&gt;#include &amp;lt;stdio.h&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;#include "board.h"&lt;/DIV&gt;&lt;DIV&gt;int main(void)&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Board_Init();&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Optional feature: send the ARM clock to PIO0_1 */&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Chip_IOCON_SetPinConfig(NSS_IOCON, IOCON_PIO0_1, IOCON_FUNC_1);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Chip_Clock_Clkout_SetClockSource(CLOCK_CLKOUTSOURCE_SYSTEM);&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Blink with a period of 250ms+250ms, or 2Hz */&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; while (1) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;SPAN style="color: #0000ff;"&gt;printf("LED_Toggle\r\n");&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LED_Toggle(LED_RED);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Chip_Clock_System_BusyWait_ms(250);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return 0;&lt;BR /&gt;}&lt;/DIV&gt;&lt;DIV&gt;------&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;But it met the compiling error:( as below.&lt;/DIV&gt;&lt;DIV&gt;Any idea or suggestion?&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;******&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;10:24:47 **** Incremental Build of configuration Debug for project app_demo_dp_blinky ****&lt;BR /&gt;make -r -j4 all &lt;BR /&gt;Building target: app_demo_dp_blinky.axf&lt;BR /&gt;Invoking: MCU Linker&lt;BR /&gt;arm-none-eabi-gcc -nostdlib -L"C:\Users\Bitse\Documents\LPCXpresso_8.1.4_606\workspace\lib_board_dp\Debug" -L"C:\Users\Bitse\Documents\LPCXpresso_8.1.4_606\workspace\lib_chip_nss\Debug" -Xlinker -Map="app_demo_dp_blinky.map" -Xlinker --gc-sections -mcpu=cortex-m0plus -mthumb -T "app_demo_dp_blinky_Debug.ld" -o "app_demo_dp_blinky.axf"&amp;nbsp; ./src/crp.o ./src/mainblinky.o&amp;nbsp;&amp;nbsp; -llib_board_dp -llib_chip_nss&lt;BR /&gt;c:/nxp/lpcxpresso_8.1.4_606/lpcxpresso/tools/bin/../lib/gcc/arm-none-eabi/5.2.1/../../../../arm-none-eabi/lib/armv6-m\libcr_c.a(fpprintf.o): In function `printf':&lt;BR /&gt;fpprintf.c:(.text.printf+0x38): undefined reference to `__sys_write'&lt;BR /&gt;c:/nxp/lpcxpresso_8.1.4_606/lpcxpresso/tools/bin/../lib/gcc/arm-none-eabi/5.2.1/../../../../arm-none-eabi/lib/armv6-m\libcr_c.a(_deferredlazyseek.o): In function `__flsbuf':&lt;BR /&gt;_deferredlazyseek.c:(.text.__flsbuf+0x88): undefined reference to `__sys_istty'&lt;BR /&gt;c:/nxp/lpcxpresso_8.1.4_606/lpcxpresso/tools/bin/../lib/gcc/arm-none-eabi/5.2.1/../../../../arm-none-eabi/lib/armv6-m\libcr_c.a(_writebuf.o): In function `_Cwritebuf':&lt;BR /&gt;_writebuf.c:(.text._Cwritebuf+0x16): undefined reference to `__sys_flen'&lt;BR /&gt;_writebuf.c:(.text._Cwritebuf+0x26): undefined reference to `__sys_seek'&lt;BR /&gt;_writebuf.c:(.text._Cwritebuf+0x3c): undefined reference to `__sys_write'&lt;BR /&gt;c:/nxp/lpcxpresso_8.1.4_606/lpcxpresso/tools/bin/../lib/gcc/arm-none-eabi/5.2.1/../../../../arm-none-eabi/lib/armv6-m\libcr_c.a(alloc.o): In function `_Csys_alloc':&lt;BR /&gt;alloc.c:(.text._Csys_alloc+0xe): undefined reference to `__sys_write'&lt;BR /&gt;alloc.c:(.text._Csys_alloc+0x12): undefined reference to `__sys_appexit'&lt;BR /&gt;c:/nxp/lpcxpresso_8.1.4_606/lpcxpresso/tools/bin/../lib/gcc/arm-none-eabi/5.2.1/../../../../arm-none-eabi/lib/armv6-m\libcr_c.a(fseek.o): In function `fseek':&lt;BR /&gt;fseek.c:(.text.fseek+0x18): undefined reference to `__sys_istty'&lt;BR /&gt;fseek.c:(.text.fseek+0x3c): undefined reference to `__sys_flen'&lt;BR /&gt;collect2.exe: error: ld returned 1 exit status&lt;BR /&gt;make: *** [app_demo_dp_blinky.axf] Error 1&lt;/DIV&gt;&lt;DIV&gt;10:24:47 Build Finished (took 405ms)&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;******&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;Thanks,&lt;/DIV&gt;&lt;DIV&gt;Arna&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Mar 2018 02:29:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/How-to-get-console-output-while-debugging-application-in/m-p/762495#M33234</guid>
      <dc:creator>aresmarser</dc:creator>
      <dc:date>2018-03-16T02:29:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to get console output while debugging application in lpcexpresso?</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/How-to-get-console-output-while-debugging-application-in/m-p/762496#M33235</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Suggest you read this FAQ:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/389070"&gt;https://community.nxp.com/thread/389070&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Mar 2018 12:47:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/How-to-get-console-output-while-debugging-application-in/m-p/762496#M33235</guid>
      <dc:creator>thefallguy</dc:creator>
      <dc:date>2018-03-16T12:47:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to get console output while debugging application in lpcexpresso?</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/How-to-get-console-output-while-debugging-application-in/m-p/762497#M33236</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you,&amp;nbsp;Fall Guy.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I got the answer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Mar 2018 03:48:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/How-to-get-console-output-while-debugging-application-in/m-p/762497#M33236</guid>
      <dc:creator>aresmarser</dc:creator>
      <dc:date>2018-03-19T03:48:36Z</dc:date>
    </item>
  </channel>
</rss>

