<?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: UART Build on P1025 Tower System in P-Series</title>
    <link>https://community.nxp.com/t5/P-Series/UART-Build-on-P1025-Tower-System/m-p/248420#M415</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Which software are you using? And Which version?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 05 Jul 2013 09:07:44 GMT</pubDate>
    <dc:creator>yipingwang</dc:creator>
    <dc:date>2013-07-05T09:07:44Z</dc:date>
    <item>
      <title>UART Build on P1025 Tower System</title>
      <link>https://community.nxp.com/t5/P-Series/UART-Build-on-P1025-Tower-System/m-p/248419#M414</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am putting together a build to use the UART on the TWR-P1025 Tower System Module. I am using freescale example code, but I am getting an error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The build fails because the following is undefined:&lt;BR /&gt;__CCSRBAR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is defined as extern in twrp1025.h.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone please help me to get this defined?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Jul 2013 15:21:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/P-Series/UART-Build-on-P1025-Tower-System/m-p/248419#M414</guid>
      <dc:creator>drs</dc:creator>
      <dc:date>2013-07-01T15:21:18Z</dc:date>
    </item>
    <item>
      <title>Re: UART Build on P1025 Tower System</title>
      <link>https://community.nxp.com/t5/P-Series/UART-Build-on-P1025-Tower-System/m-p/248420#M415</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Which software are you using? And Which version?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jul 2013 09:07:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/P-Series/UART-Build-on-P1025-Tower-System/m-p/248420#M415</guid>
      <dc:creator>yipingwang</dc:creator>
      <dc:date>2013-07-05T09:07:44Z</dc:date>
    </item>
    <item>
      <title>Re: UART Build on P1025 Tower System</title>
      <link>https://community.nxp.com/t5/P-Series/UART-Build-on-P1025-Tower-System/m-p/248421#M416</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using Code Warrior Development Studio Version 10.3. I have created a bareboard project and have added code from Freescale MQX 3.8 P1025.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jul 2013 09:16:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/P-Series/UART-Build-on-P1025-Tower-System/m-p/248421#M416</guid>
      <dc:creator>drs</dc:creator>
      <dc:date>2013-07-05T09:16:58Z</dc:date>
    </item>
    <item>
      <title>Re: UART Build on P1025 Tower System</title>
      <link>https://community.nxp.com/t5/P-Series/UART-Build-on-P1025-Tower-System/m-p/248422#M417</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;Please note that CW PA10.3 already has an UART example for P1025TWR -&amp;gt; PA\PA_Support\Serial\P1025TWR_serial .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which is your need more exactly?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Marius&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jul 2013 09:19:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/P-Series/UART-Build-on-P1025-Tower-System/m-p/248422#M417</guid>
      <dc:creator>marius_grigoras</dc:creator>
      <dc:date>2013-07-05T09:19:28Z</dc:date>
    </item>
    <item>
      <title>Re: UART Build on P1025 Tower System</title>
      <link>https://community.nxp.com/t5/P-Series/UART-Build-on-P1025-Tower-System/m-p/248423#M418</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marius,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to build a project that will enable me to receive serial data initially at 115200 baud. Once this is working, I will need to go on and up the baud rate, which will require me to modify the BSP/library software to increase the baud rate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for the information on the UART example. I am not able to run this. I can build it but when I try to run in says "Launch failed. Binary not found".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am able to import examples from Freescale MXQ 3.8 and run these.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Dave&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jul 2013 09:54:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/P-Series/UART-Build-on-P1025-Tower-System/m-p/248423#M418</guid>
      <dc:creator>drs</dc:creator>
      <dc:date>2013-07-05T09:54:54Z</dc:date>
    </item>
    <item>
      <title>Re: UART Build on P1025 Tower System</title>
      <link>https://community.nxp.com/t5/P-Series/UART-Build-on-P1025-Tower-System/m-p/248424#M419</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dave,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Our stationary project already includes the UART lib compiled for 115200 baudrate. You cannot launch the uart project, the uart project makes a UART binary file that is included in the stationary project.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, if you want to increase the baudrate using only the CW support, you'll need to re-build the UART and compiler libs to your new baudrate value. Please let me know if you need this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Marius&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jul 2013 10:20:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/P-Series/UART-Build-on-P1025-Tower-System/m-p/248424#M419</guid>
      <dc:creator>marius_grigoras</dc:creator>
      <dc:date>2013-07-05T10:20:08Z</dc:date>
    </item>
    <item>
      <title>Re: UART Build on P1025 Tower System</title>
      <link>https://community.nxp.com/t5/P-Series/UART-Build-on-P1025-Tower-System/m-p/248425#M420</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marius,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is the stationary project the same as the bareboard project?&lt;/P&gt;&lt;P&gt;So the bareboard project already contains the UART lib?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I thought that I had to install the UART using _bsp_enable_card (in init_bsp.c), which calls _st16550_serial_polled_install_ex. This uses _bsp_duart0_init, which is where my _CCSRBAR problem came from.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So are you saying that I do not need to do this? Can I just use a call to scanf to read in the data?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please excuse my ignorance, but I am new to this platform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Dave&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jul 2013 10:52:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/P-Series/UART-Build-on-P1025-Tower-System/m-p/248425#M420</guid>
      <dc:creator>drs</dc:creator>
      <dc:date>2013-07-05T10:52:23Z</dc:date>
    </item>
    <item>
      <title>Re: UART Build on P1025 Tower System</title>
      <link>https://community.nxp.com/t5/P-Series/UART-Build-on-P1025-Tower-System/m-p/248426#M421</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dave,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, the stationary is the bareboard project and it contains already the UART lib already built for 115200 baudrate.&lt;/P&gt;&lt;P&gt;I confirm that is enough to use the bareboard project to make any printf/scanf operation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Marius&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jul 2013 11:40:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/P-Series/UART-Build-on-P1025-Tower-System/m-p/248426#M421</guid>
      <dc:creator>marius_grigoras</dc:creator>
      <dc:date>2013-07-05T11:40:02Z</dc:date>
    </item>
    <item>
      <title>Re: UART Build on P1025 Tower System</title>
      <link>https://community.nxp.com/t5/P-Series/UART-Build-on-P1025-Tower-System/m-p/248427#M422</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marius,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you for the information.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Earlier I was asking about increasing the baud rate and you said that I would need to re-build the UART and compiler libs to my new baudrate value. Could you tell me how I can do this? The required baud rate has been specified as 768,000.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Dave&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jul 2013 11:57:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/P-Series/UART-Build-on-P1025-Tower-System/m-p/248427#M422</guid>
      <dc:creator>drs</dc:creator>
      <dc:date>2013-07-05T11:57:29Z</dc:date>
    </item>
    <item>
      <title>Re: UART Build on P1025 Tower System</title>
      <link>https://community.nxp.com/t5/P-Series/UART-Build-on-P1025-Tower-System/m-p/248428#M423</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi David,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You'll need to update next files:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PA\PA_Support\Serial\Common\UART.h&amp;nbsp; -- here please add next line in UARTBaudRate enum struct:&lt;/P&gt;&lt;P&gt;kBaud768000 = 768000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And also replace in next file next value macro kBaud115200 with the one preconfigured above kBaud768000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;More exactly this will be after update:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;#define UART_CONSOLE_BAUD_RATE&lt;/TD&gt;&lt;TD&gt;kBaud768000&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PA\PA_Support\ewl\EWL_C\include\pa\uart_console_config.h&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, will need to re-build your UART project and ewl libs.&lt;/P&gt;&lt;P&gt;For UART project just use the P1025TWR serial project presented above and just rebuild it.&lt;/P&gt;&lt;P&gt;For ewl libs please take a look in next chapter 22.3.3 How to Rebuild the EWL Libraries from PA\Help\PDF\Power Arch Build Tools Reference.pdf .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know any results,&lt;/P&gt;&lt;P&gt;Marius&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jul 2013 12:37:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/P-Series/UART-Build-on-P1025-Tower-System/m-p/248428#M423</guid>
      <dc:creator>marius_grigoras</dc:creator>
      <dc:date>2013-07-05T12:37:25Z</dc:date>
    </item>
    <item>
      <title>Re: UART Build on P1025 Tower System</title>
      <link>https://community.nxp.com/t5/P-Series/UART-Build-on-P1025-Tower-System/m-p/248429#M424</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Marius,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you very much for the information.&lt;/P&gt;&lt;P&gt;I will give this a try next week.&lt;/P&gt;&lt;P&gt;As we will not have the hardware to test at the higher baud rate. I will experiment by lowering the baud rate first.&lt;/P&gt;&lt;P&gt;I will let you know how it goes.&lt;/P&gt;&lt;P&gt;Thank you again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Dave&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jul 2013 12:55:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/P-Series/UART-Build-on-P1025-Tower-System/m-p/248429#M424</guid>
      <dc:creator>drs</dc:creator>
      <dc:date>2013-07-05T12:55:08Z</dc:date>
    </item>
    <item>
      <title>Re: UART Build on P1025 Tower System</title>
      <link>https://community.nxp.com/t5/P-Series/UART-Build-on-P1025-Tower-System/m-p/248430#M425</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One more question: I'm just curios why you need to test your hardware for such a high baudrate?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marius&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jul 2013 13:07:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/P-Series/UART-Build-on-P1025-Tower-System/m-p/248430#M425</guid>
      <dc:creator>marius_grigoras</dc:creator>
      <dc:date>2013-07-05T13:07:34Z</dc:date>
    </item>
    <item>
      <title>Re: UART Build on P1025 Tower System</title>
      <link>https://community.nxp.com/t5/P-Series/UART-Build-on-P1025-Tower-System/m-p/248431#M426</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have to read in a serial data stream at a baud rate of 524288 (64k bytes per second). The engineer who is designing the hardware has suggested that I configure the baud rate to be 768000.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Dave&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jul 2013 10:43:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/P-Series/UART-Build-on-P1025-Tower-System/m-p/248431#M426</guid>
      <dc:creator>drs</dc:creator>
      <dc:date>2013-07-08T10:43:29Z</dc:date>
    </item>
    <item>
      <title>Re: UART Build on P1025 Tower System</title>
      <link>https://community.nxp.com/t5/P-Series/UART-Build-on-P1025-Tower-System/m-p/248432#M427</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Marius,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried to change the baud rate to 9600:&lt;/P&gt;&lt;P&gt;I have changed uart_console_config.h to kbaud9600&lt;/P&gt;&lt;P&gt;I have followed the instructions on "How to Rebuild the EWL Libraries"&lt;/P&gt;&lt;P&gt;I have rebuilt my project.&lt;/P&gt;&lt;P&gt;However, the baud rate is still 115200.&lt;/P&gt;&lt;P&gt;Can you think of anything I might have missed out?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Dave&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jul 2013 13:13:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/P-Series/UART-Build-on-P1025-Tower-System/m-p/248432#M427</guid>
      <dc:creator>drs</dc:creator>
      <dc:date>2013-07-10T13:13:24Z</dc:date>
    </item>
    <item>
      <title>Re: UART Build on P1025 Tower System</title>
      <link>https://community.nxp.com/t5/P-Series/UART-Build-on-P1025-Tower-System/m-p/248433#M428</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dave,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After you compiled the compiler libs, are you sure that your project is using the new ones libs? &lt;/P&gt;&lt;P&gt;You need to replace your new UART1_P1025TWR.UC.a, libc_E500V2.a and librt_E500V2.a in the stationary project.&lt;/P&gt;&lt;P&gt;The uart lib is in the UART project (you just compiled this project under eclipse) and the rest 2 libs are in the CW layout (PA\PA_Support\ewl\lib).&lt;/P&gt;&lt;P&gt;After that, clean and re-compile your stationary project.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Marius&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jul 2013 13:25:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/P-Series/UART-Build-on-P1025-Tower-System/m-p/248433#M428</guid>
      <dc:creator>marius_grigoras</dc:creator>
      <dc:date>2013-07-10T13:25:32Z</dc:date>
    </item>
    <item>
      <title>Re: UART Build on P1025 Tower System</title>
      <link>https://community.nxp.com/t5/P-Series/UART-Build-on-P1025-Tower-System/m-p/248434#M429</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marius,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You were right, I did not have the new libraries. It is now working fine at 9600 baud.&lt;/P&gt;&lt;P&gt;Thank you very much for your very helpful answers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best regards,&lt;/P&gt;&lt;P&gt;Dave&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jul 2013 13:50:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/P-Series/UART-Build-on-P1025-Tower-System/m-p/248434#M429</guid>
      <dc:creator>drs</dc:creator>
      <dc:date>2013-07-10T13:50:09Z</dc:date>
    </item>
    <item>
      <title>Re: UART Build on P1025 Tower System</title>
      <link>https://community.nxp.com/t5/P-Series/UART-Build-on-P1025-Tower-System/m-p/248435#M430</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marius,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to find out whether the UART buffer contains data? If I use scanf and there is no data present, then the program will get stuck waiting for the data. So it would be useful to know whether there is some data to read before calling scanf.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best regards,&lt;/P&gt;&lt;P&gt;Dave&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jul 2013 12:14:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/P-Series/UART-Build-on-P1025-Tower-System/m-p/248435#M430</guid>
      <dc:creator>drs</dc:creator>
      <dc:date>2013-07-19T12:14:53Z</dc:date>
    </item>
    <item>
      <title>Re: UART Build on P1025 Tower System</title>
      <link>https://community.nxp.com/t5/P-Series/UART-Build-on-P1025-Tower-System/m-p/248436#M431</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dave,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The stdio library doesn't support the concept of non-blocking I/O (all these functions are blocking: scanf, fgets and so on).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;The only portable/nice solution is to making polling (this concept is very use also in networking for un-blocking sockets) on STDIN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me check please till Monday if we have support for this in EWL (P1025TWR is not gcc based in CW).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Marius&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jul 2013 15:35:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/P-Series/UART-Build-on-P1025-Tower-System/m-p/248436#M431</guid>
      <dc:creator>marius_grigoras</dc:creator>
      <dc:date>2013-07-19T15:35:43Z</dc:date>
    </item>
    <item>
      <title>Re: UART Build on P1025 Tower System</title>
      <link>https://community.nxp.com/t5/P-Series/UART-Build-on-P1025-Tower-System/m-p/248437#M432</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dave,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Btw, how you gonna check this "non-blocking" functionality in your case (let's assume that you have one)? Basically, if you use only scanf the stdin buffer will be fill only after scanf() call and never you'll have available date in this buffer before the blocking I/O function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know what are you trying to do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Marius&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jul 2013 08:34:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/P-Series/UART-Build-on-P1025-Tower-System/m-p/248437#M432</guid>
      <dc:creator>marius_grigoras</dc:creator>
      <dc:date>2013-07-22T08:34:19Z</dc:date>
    </item>
    <item>
      <title>Re: UART Build on P1025 Tower System</title>
      <link>https://community.nxp.com/t5/P-Series/UART-Build-on-P1025-Tower-System/m-p/248438#M433</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marius,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From what you are saying it seems that I should be using polling. &lt;/P&gt;&lt;P&gt;My initial attempts at reading in serial data made use of the serial polling example files (serl_pol_st16550.c) in C:\Freescale MQX 3.8 P1025\mqx\source\io\serial\polled being called from _bsp_enable_card in init_bsp.c in C:\Freescale MQX 3.8 P1025\mqx\source\bsp\twrp1025.&lt;/P&gt;&lt;P&gt;This is where I had the original problem with __CCSRBAR being undefined.&lt;/P&gt;&lt;P&gt;The design involves several tasks running under MQX, one of these is to read in a stream of serial data. Hence, as you pointed out, it could be a problem if the serial input data stream is lost, then the code would get stuck in scanf, as this is a blocking function.&lt;/P&gt;&lt;P&gt;I suppose then I need to come back to the question as to how to define __CCSRBAR?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Dave&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jul 2013 15:29:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/P-Series/UART-Build-on-P1025-Tower-System/m-p/248438#M433</guid>
      <dc:creator>drs</dc:creator>
      <dc:date>2013-07-22T15:29:52Z</dc:date>
    </item>
  </channel>
</rss>

