<?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 K20 with UART in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K20-with-UART/m-p/240913#M5877</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm pretty new at CW and microcontrollers so I keep running into issues.&amp;nbsp; I'm getting these errors that are preventing me from debugging my project...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Description Resource Path Location Type&lt;/P&gt;&lt;P&gt;ARM_GCC_Support/ewl/EWL_C/src/sys/uart_console_io.c undefined reference to `InitializeUART' TouchLEDs&amp;nbsp; line 200 C/C++ Problem&lt;/P&gt;&lt;P&gt;ARM_GCC_Support/ewl/EWL_C/src/sys/uart_console_io.c undefined reference to `ReadUARTN' TouchLEDs&amp;nbsp; line 93 C/C++ Problem&lt;/P&gt;&lt;P&gt;ARM_GCC_Support/ewl/EWL_C/src/sys/uart_console_io.c undefined reference to `WriteUARTN' TouchLEDs&amp;nbsp; line 151 C/C++ Problem&lt;/P&gt;&lt;P&gt;mingw32-make: *** [TouchLEDs.elf] Error 1 TouchLEDs&amp;nbsp;&amp;nbsp;&amp;nbsp; C/C++ Problem&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;The problem is that I can't jump to the line, declaration, or file the problem is located.&amp;nbsp; Also, when I search for 'InitializeUART', ... and the 'uart_console_io.c' on my computer, they are no where to be found.&amp;nbsp; I don't know what I'm missing to receive these errors and I don't know what to do to fix them. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;Anybody know what is my issue?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;Thank you,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;Lander&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 Jan 2013 14:46:33 GMT</pubDate>
    <dc:creator>lander</dc:creator>
    <dc:date>2013-01-29T14:46:33Z</dc:date>
    <item>
      <title>K20 with UART</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K20-with-UART/m-p/240913#M5877</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm pretty new at CW and microcontrollers so I keep running into issues.&amp;nbsp; I'm getting these errors that are preventing me from debugging my project...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Description Resource Path Location Type&lt;/P&gt;&lt;P&gt;ARM_GCC_Support/ewl/EWL_C/src/sys/uart_console_io.c undefined reference to `InitializeUART' TouchLEDs&amp;nbsp; line 200 C/C++ Problem&lt;/P&gt;&lt;P&gt;ARM_GCC_Support/ewl/EWL_C/src/sys/uart_console_io.c undefined reference to `ReadUARTN' TouchLEDs&amp;nbsp; line 93 C/C++ Problem&lt;/P&gt;&lt;P&gt;ARM_GCC_Support/ewl/EWL_C/src/sys/uart_console_io.c undefined reference to `WriteUARTN' TouchLEDs&amp;nbsp; line 151 C/C++ Problem&lt;/P&gt;&lt;P&gt;mingw32-make: *** [TouchLEDs.elf] Error 1 TouchLEDs&amp;nbsp;&amp;nbsp;&amp;nbsp; C/C++ Problem&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;The problem is that I can't jump to the line, declaration, or file the problem is located.&amp;nbsp; Also, when I search for 'InitializeUART', ... and the 'uart_console_io.c' on my computer, they are no where to be found.&amp;nbsp; I don't know what I'm missing to receive these errors and I don't know what to do to fix them. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;Anybody know what is my issue?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;Thank you,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;Lander&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jan 2013 14:46:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K20-with-UART/m-p/240913#M5877</guid>
      <dc:creator>lander</dc:creator>
      <dc:date>2013-01-29T14:46:33Z</dc:date>
    </item>
    <item>
      <title>Re: K20 with UART</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K20-with-UART/m-p/240914#M5878</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You (or perhaps some other piece of code) are supposed to define these functions, so that things like printf will use your UART code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is what I did, and it make printf work:&lt;/P&gt;&lt;P&gt;enum {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; kUARTNoError = 0,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; kUARTUnknownBaudRate,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; kUARTConfigurationError,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; kUARTBufferOverflow,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* specified buffer was too small */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; kUARTNoData&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* no data available from polling */&lt;/P&gt;&lt;P&gt;};&lt;/P&gt;&lt;P&gt;//&lt;/P&gt;&lt;P&gt;// these are my functions:&lt;/P&gt;&lt;P&gt;//&lt;/P&gt;&lt;P&gt;uint8_t Serial_rxbyte(int port, uint8_t *data);&lt;/P&gt;&lt;P&gt;uint8_t Serial_txbuf(int port,uint8_t * data, uint16_t len, uint16_t *sent);&lt;/P&gt;&lt;P&gt;// These make printf work...&lt;/P&gt;&lt;P&gt;int WriteUARTN(void* bytes, unsigned long length);&lt;/P&gt;&lt;P&gt;// This gets called with a length of 1.&lt;/P&gt;&lt;P&gt;int ReadUARTN(void* bytes, unsigned long length )&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; while(RX_EMPTY == Serial_rxbyte(0,(uint8_t *) bytes) )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; WriteUARTN(bytes, 1);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return kUARTNoError;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;int WriteUARTN(void* bytes, unsigned long length)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Serial_txbuf(0,(uint8_t *)bytes, (uint16_t) length, 0);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return kUARTNoError;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;// Call other code to init UART, this is just to satisfy the linker...&lt;/P&gt;&lt;P&gt;int InitializeUART( int baudrate )&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; return kUARTNoError;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Even if you just define them empty, it will solve the build problem for now.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jan 2013 14:59:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K20-with-UART/m-p/240914#M5878</guid>
      <dc:creator>JimDon</dc:creator>
      <dc:date>2013-01-29T14:59:38Z</dc:date>
    </item>
    <item>
      <title>Re: K20 with UART</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K20-with-UART/m-p/240915#M5879</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;Which version of CW warrior are you using? it is the 10.3 Beta version? If you don´t know it, When did you downloaded and install CW?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are some members who say that this problem has been solved creating the project again as a new project. You could try it! But it is not 100% accurate that this will solve your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jan 2013 19:44:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K20-with-UART/m-p/240915#M5879</guid>
      <dc:creator>adriansc</dc:creator>
      <dc:date>2013-01-29T19:44:06Z</dc:date>
    </item>
    <item>
      <title>Re: K20 with UART</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K20-with-UART/m-p/240916#M5880</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have tried this with no success.&amp;nbsp; I also went to KINETIS_72MHz_SRC and created a new project with the premade .exe that basically recreates the hello_world project so the user can work on it without having to set anything up. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do I have to make a processor expert component for UART and DMA in order to talk to the console?&amp;nbsp; And do I call any functions from the components (i.e Enable, SendChar...)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Lander&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jan 2013 20:01:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K20-with-UART/m-p/240916#M5880</guid>
      <dc:creator>lander</dc:creator>
      <dc:date>2013-01-29T20:01:14Z</dc:date>
    </item>
    <item>
      <title>Re: K20 with UART</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K20-with-UART/m-p/240917#M5881</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was able to build the project by initializing the variables with errors to 0.&amp;nbsp; Now, my program is interrupting (this interrupt PE_ISR(&lt;STRONG&gt;Cpu_Interrupt&lt;/STRONG&gt;)) at the printf() statement.&amp;nbsp; I'm working on making sure that my device is set up correctly and such, any ideas on why it is interrupting there? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jan 2013 20:23:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K20-with-UART/m-p/240917#M5881</guid>
      <dc:creator>lander</dc:creator>
      <dc:date>2013-01-29T20:23:18Z</dc:date>
    </item>
    <item>
      <title>Re: K20 with UART</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K20-with-UART/m-p/240918#M5882</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Which variables did you initialize to 0?&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;InitializeUART is a function. If you set it to 0 you would crash.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;BTW You will not see these errors until you call printf in 10.3 release version.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jan 2013 20:40:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K20-with-UART/m-p/240918#M5882</guid>
      <dc:creator>JimDon</dc:creator>
      <dc:date>2013-01-29T20:40:59Z</dc:date>
    </item>
    <item>
      <title>Re: K20 with UART</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K20-with-UART/m-p/240919#M5883</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I read the response wrong.&amp;nbsp; Okay, I left the functions empty and I'm getting multiple definition errors.&amp;nbsp; I can't seem to understand what is wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jan 2013 21:00:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K20-with-UART/m-p/240919#M5883</guid>
      <dc:creator>lander</dc:creator>
      <dc:date>2013-01-29T21:00:21Z</dc:date>
    </item>
    <item>
      <title>Re: K20 with UART</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K20-with-UART/m-p/240920#M5884</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It' hard to help if you don't post the errors....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jan 2013 21:07:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K20-with-UART/m-p/240920#M5884</guid>
      <dc:creator>JimDon</dc:creator>
      <dc:date>2013-01-29T21:07:34Z</dc:date>
    </item>
    <item>
      <title>Re: K20 with UART</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K20-with-UART/m-p/240921#M5885</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So errm... &lt;A href="http://mcuoneclipse.com/2013/02/07/tutorial-printf-with-and-without-processor-expert/"&gt;This any help&lt;/A&gt;?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Having the same probs.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 14 Apr 2013 09:59:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K20-with-UART/m-p/240921#M5885</guid>
      <dc:creator>Frost</dc:creator>
      <dc:date>2013-04-14T09:59:53Z</dc:date>
    </item>
    <item>
      <title>Re: K20 with UART</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K20-with-UART/m-p/240922#M5886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm using a KL25 freedom board, but what I'm getting from the above is that you basically need to put in the low level functions if you've left the I/O support at UART(default) when making a new project.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For me, UART0 routes to the SDA debug MCU onboard, so it's a physical UART interface rather than console IO. Might be best to start again with "console IO" selected if you want that for printf...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So basically, I set up the UART to 38400,8,n,1, UART0 on my target, (target's pins PTA1 &amp;amp; PTA2) which connects to the SDA debug MCU's UART1, see the KL25 schematics if you want H/W info. Set up a terminal program in Win7 and opened the com port with matching settings, and hey presto.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps. :smileyhappy:&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 14 Apr 2013 10:21:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K20-with-UART/m-p/240922#M5886</guid>
      <dc:creator>Frost</dc:creator>
      <dc:date>2013-04-14T10:21:46Z</dc:date>
    </item>
  </channel>
</rss>

