<?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 on TWR-K20D50 using codewarrior with Processor Expert in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/UART-on-TWR-K20D50-using-codewarrior-with-Processor-Expert/m-p/242259#M6027</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Migual&lt;/P&gt;&lt;P&gt;I was wondering how to receive the data from the UART? I tried&lt;/P&gt;&lt;P&gt;scanf("%c", &amp;amp;data);&lt;/P&gt;&lt;P&gt;but it didn't worked &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Sep 2013 10:08:59 GMT</pubDate>
    <dc:creator>Amit_Kumar1</dc:creator>
    <dc:date>2013-09-24T10:08:59Z</dc:date>
    <item>
      <title>UART on TWR-K20D50 using codewarrior with Processor Expert</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/UART-on-TWR-K20D50-using-codewarrior-with-Processor-Expert/m-p/242254#M6022</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am new to code warrior, I want to generate a project on serial communication using UART1 I have initialized the MCG to 47.972352 MHz, and I have also initialized the UART1 with 38400 baud rate. I have generated the code using Processor Expert. I am having problem in writing in the main function in ProcessorExpert.c after initialization how to use this in main function? I am not able to send any data .&amp;nbsp; I have attached my project. Please look into the matter. Is there any documentation related to how to use these generated code in main function?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Amit Kumar&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-337675"&gt;UARTtransfer.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Sep 2013 11:08:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/UART-on-TWR-K20D50-using-codewarrior-with-Processor-Expert/m-p/242254#M6022</guid>
      <dc:creator>Amit_Kumar1</dc:creator>
      <dc:date>2013-09-20T11:08:57Z</dc:date>
    </item>
    <item>
      <title>Re: UART on TWR-K20D50 using codewarrior with Processor Expert</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/UART-on-TWR-K20D50-using-codewarrior-with-Processor-Expert/m-p/242255#M6023</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Amit,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Well, you can use the main function like any other main. Can you try with writing &lt;EM&gt;printf("Hello World \n");&lt;/EM&gt; after PE_low_level_init function?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If still doesn't work, could you explain a bit more about where the problem and provide more data, as the board that you're using?&lt;/P&gt;&lt;P&gt;While I'll try to make a document for explain how to do. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;Miguel Palos.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Sep 2013 15:08:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/UART-on-TWR-K20D50-using-codewarrior-with-Processor-Expert/m-p/242255#M6023</guid>
      <dc:creator>miguelpalos</dc:creator>
      <dc:date>2013-09-20T15:08:33Z</dc:date>
    </item>
    <item>
      <title>Re: UART on TWR-K20D50 using codewarrior with Processor Expert</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/UART-on-TWR-K20D50-using-codewarrior-with-Processor-Expert/m-p/242256#M6024</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Miguel&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried the above statement as you said. but it didn't work I am getting 4 error message which is present in the attached image file. I am using TWR-K20D50M development board from freescle. I am using UART1 with PTE0 and PTE1 connections. as RxD and TXD I am using 38400 baud rate and 48Mhz system clock. I am using Code warrior 10.4 with processor expert integrated with it. How to go to the errors ? By clicking these error meg I am unable to go to the specified line numbers and files.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="error msg.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/40745iFFD13DEBF143CA7A/image-size/large?v=v2&amp;amp;px=999" role="button" title="error msg.jpg" alt="error msg.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Amit Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Sep 2013 02:59:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/UART-on-TWR-K20D50-using-codewarrior-with-Processor-Expert/m-p/242256#M6024</guid>
      <dc:creator>Amit_Kumar1</dc:creator>
      <dc:date>2013-09-21T02:59:00Z</dc:date>
    </item>
    <item>
      <title>Re: UART on TWR-K20D50 using codewarrior with Processor Expert</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/UART-on-TWR-K20D50-using-codewarrior-with-Processor-Expert/m-p/242257#M6025</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was just going through the errors and I found out that there is no folder related to TWR-K20D50M in my code warrior folder which I downloaded from freescale website !!!!!!!!!!!!! and no examples also for this board. this is too irritating Just a waste of time. I think If the board is prepared by freescale so it should have all the examples and code library for that board in the software. In this way all of us who are using TWR-K20D50M board or some similar board whose library is not provided by freescale would be wondering if their code contains problem or there is a problem with the software?? and we all will be having tough time figuring out the same. So what should be my next step for resolving this matter? While installing I installed all the components and they didn't ask for any specific development board.&lt;span class="lia-inline-image-display-wrapper" image-alt="k20.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/40748i3B2EBFE06F4E91D7/image-size/large?v=v2&amp;amp;px=999" role="button" title="k20.jpg" alt="k20.jpg" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="k20(1).jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/40749iACF541E2F7F2398C/image-size/large?v=v2&amp;amp;px=999" role="button" title="k20(1).jpg" alt="k20(1).jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can see K60 board folder present but not other boards. Is there any problem while Installing Codewarrior due to which this is happening? I am using Codewarrior 10.4 integrated with processor expert.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Amit Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Sep 2013 03:49:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/UART-on-TWR-K20D50-using-codewarrior-with-Processor-Expert/m-p/242257#M6025</guid>
      <dc:creator>Amit_Kumar1</dc:creator>
      <dc:date>2013-09-21T03:49:00Z</dc:date>
    </item>
    <item>
      <title>Re: UART on TWR-K20D50 using codewarrior with Processor Expert</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/UART-on-TWR-K20D50-using-codewarrior-with-Processor-Expert/m-p/242258#M6026</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Miguel&lt;/P&gt;&lt;P&gt;thanks for replying. I configured the UART1. But Please ensure the problems are resolved which I mention below. I think it is a problem of software. when I again tried , this time I just added a component&amp;nbsp; ConsoleIO through the component library and then I simply wrote the code which you stated accordingly and it worked fine this time. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="consoleio.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/40760iB69F6FF55965F6C3/image-size/large?v=v2&amp;amp;px=999" role="button" title="consoleio.jpg" alt="consoleio.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have just marked the component above from the code library which is supposed to be selected. but again if you select init_UART or Serial_LDD again it will have the same error. but all these configures the same things and all 3 should work one at a time. so its needed to fix this bug in code warrior 10.4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Amit Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Sep 2013 10:52:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/UART-on-TWR-K20D50-using-codewarrior-with-Processor-Expert/m-p/242258#M6026</guid>
      <dc:creator>Amit_Kumar1</dc:creator>
      <dc:date>2013-09-21T10:52:29Z</dc:date>
    </item>
    <item>
      <title>Re: UART on TWR-K20D50 using codewarrior with Processor Expert</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/UART-on-TWR-K20D50-using-codewarrior-with-Processor-Expert/m-p/242259#M6027</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Migual&lt;/P&gt;&lt;P&gt;I was wondering how to receive the data from the UART? I tried&lt;/P&gt;&lt;P&gt;scanf("%c", &amp;amp;data);&lt;/P&gt;&lt;P&gt;but it didn't worked &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Sep 2013 10:08:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/UART-on-TWR-K20D50-using-codewarrior-with-Processor-Expert/m-p/242259#M6027</guid>
      <dc:creator>Amit_Kumar1</dc:creator>
      <dc:date>2013-09-24T10:08:59Z</dc:date>
    </item>
    <item>
      <title>Re: UART on TWR-K20D50 using codewarrior with Processor Expert</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/UART-on-TWR-K20D50-using-codewarrior-with-Processor-Expert/m-p/242260#M6028</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Amit,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The function &lt;EM&gt;scanf &lt;/EM&gt;belonging to library &lt;EM&gt;stdio&lt;/EM&gt; should work correctly. I'm using the board: FRDM-K20D50M to test the following code and this works.&lt;/P&gt;&lt;P&gt;Note: I added a component more (&lt;STRONG&gt;BitIO&lt;/STRONG&gt; from Component Library) in order to display the result in the board. This component named "Bit1" was configured like "output" on pin: "PTD4". &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you check that the &lt;EM&gt;stdio&lt;/EM&gt; library is included in "CsIO1.h" file in "Generated_Code" folder?, just to check that there is not the problem. (:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background: #BFBFBF;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: #984806; background: silver;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: #0070c0; background: silver;"&gt;unsigned char&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: silver;"&gt; lub_character_received;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: #BFBFBF;"&gt;&lt;SPAN style="color: #00b050; background: silver; font-size: 10.0pt; background-color: #c0c0c0; font-family: 'Courier New';"&gt;/* comments */&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: #BFBFBF;"&gt;&lt;SPAN style="color: #984806; font-family: 'Courier New'; background-color: #c0c0c0;"&gt;PE_low_level_init&lt;SPAN style="color: #000000; font-family: 'Courier New'; background-color: #c0c0c0;"&gt;();&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: #BFBFBF;"&gt;&lt;SPAN style="color: #000000; background-color: #c0c0c0; font-family: 'Courier New';"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: #BFBFBF;"&gt;&lt;SPAN style="color: #00b050; background-color: #c0c0c0; font-family: 'Courier New';"&gt;/* Write your code here */&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: #BFBFBF;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: #0070c0; background: silver;"&gt;while&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; background: silver;"&gt;(&lt;SPAN style="color: #5f497a;"&gt;1&lt;/SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: #BFBFBF;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; background: silver;"&gt;{&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: #BFBFBF;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: #984806; background: silver;"&gt;scanf&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; background: silver;"&gt;(&lt;SPAN style="color: yellow;"&gt;"%c"&lt;/SPAN&gt;, &amp;amp;&lt;SPAN style="color: #5f497a;"&gt;lub_character_received&lt;/SPAN&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: #BFBFBF;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: #0070c0; background: silver;"&gt;&amp;nbsp;&amp;nbsp; if&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; background: silver;"&gt;(&lt;SPAN style="color: #5f497a;"&gt;lub_character_received&lt;/SPAN&gt; == &lt;SPAN style="color: yellow;"&gt;'0'&lt;/SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: #BFBFBF;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; background: silver;"&gt;{&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: #BFBFBF;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: white; background: silver;"&gt;Bit1_PutVal&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; background: silver;"&gt;(&lt;SPAN style="color: #0070c0;"&gt;FALSE&lt;/SPAN&gt;);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* function used for BitIO component */&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: #BFBFBF;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; background: silver;"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: #BFBFBF;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: #0070c0; background: silver;"&gt;&amp;nbsp;&amp;nbsp; else if&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; background: silver;"&gt;(&lt;SPAN style="color: #5f497a;"&gt;lub_character_received&lt;/SPAN&gt; == &lt;SPAN style="color: yellow;"&gt;'1'&lt;/SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: #BFBFBF;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; background: silver;"&gt;{&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: #BFBFBF;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: white; background: silver;"&gt;Bit1_PutVal&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; background: silver;"&gt;(&lt;SPAN style="color: #0070c0;"&gt;TRUE&lt;/SPAN&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: #BFBFBF;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; background: silver;"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: #BFBFBF;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: #0070c0; background: silver;"&gt;&amp;nbsp;&amp;nbsp; else&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: #BFBFBF;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; background: silver;"&gt;{ &lt;SPAN style="color: #00b050;"&gt;/* do nothing */&lt;/SPAN&gt; }&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: #BFBFBF;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; background: silver;"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Sep 2013 21:02:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/UART-on-TWR-K20D50-using-codewarrior-with-Processor-Expert/m-p/242260#M6028</guid>
      <dc:creator>miguelpalos</dc:creator>
      <dc:date>2013-09-24T21:02:14Z</dc:date>
    </item>
    <item>
      <title>Re: UART on TWR-K20D50 using codewarrior with Processor Expert</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/UART-on-TWR-K20D50-using-codewarrior-with-Processor-Expert/m-p/242261#M6029</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Miguel&lt;/P&gt;&lt;P&gt;Thanks again it worked perfectly. I didn't get the problem but when I tried it didn't worked now it is working fine. I included the stdio. h in the main file i.e processorexpert.c I checked it was not there in any generated files so for printf i already inserted that .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Amit Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Sep 2013 03:03:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/UART-on-TWR-K20D50-using-codewarrior-with-Processor-Expert/m-p/242261#M6029</guid>
      <dc:creator>Amit_Kumar1</dc:creator>
      <dc:date>2013-09-25T03:03:18Z</dc:date>
    </item>
  </channel>
</rss>

