<?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: UART0 API functions in KSDK v2.0 in Kinetis Software Development Kit</title>
    <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/UART0-API-functions-in-KSDK-v2-0/m-p/629423#M6683</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Daniel C. Your input really helps to open the door for me to solve my problem. With something as basic as this, I wish NXP provided it with some kind of KSDK 2.0 reference manual for the users. Instead, we just don't know the info until we ask around to find out.&lt;/P&gt;&lt;P&gt;Anyway I really appreciate your help.&lt;/P&gt;&lt;P&gt;Have a nice day!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Daniel T.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 23 Dec 2016 19:45:17 GMT</pubDate>
    <dc:creator>danieltruong</dc:creator>
    <dc:date>2016-12-23T19:45:17Z</dc:date>
    <item>
      <title>UART0 API functions in KSDK v2.0</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/UART0-API-functions-in-KSDK-v2-0/m-p/629418#M6678</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm just wondering how one can use API function to initialize the UART0 channel in Kinetis micro such as UART_Init() in the "fsl_uart.c" driver in KSDK v2.0 ?&lt;/P&gt;&lt;P&gt;It is obvious that this function&amp;nbsp;&lt;SPAN&gt;UART_Init() is designed for UART1 &amp;amp; UART2 because of the structure type is different (UART_Type) from UART0 (&lt;SPAN&gt;UART0_Type)&lt;/SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Here's the function prototype:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;status_t UART_Init(UART_Type *base, const uart_config_t *config, uint32_t srcClock_Hz);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I couldn't find anything equivalent for UART0 in the said driver. Could someone please help me some advice?&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&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Dec 2016 00:55:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/UART0-API-functions-in-KSDK-v2-0/m-p/629418#M6678</guid>
      <dc:creator>danieltruong</dc:creator>
      <dc:date>2016-12-21T00:55:59Z</dc:date>
    </item>
    <item>
      <title>Re: UART0 API functions in KSDK v2.0</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/UART0-API-functions-in-KSDK-v2-0/m-p/629419#M6679</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Daniel&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The API UART_Init is applied to all UART0, UART1, UART2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would suggest you check the following macros when you init UART0,&amp;nbsp;&amp;nbsp; you need to modify them according to your project&lt;/P&gt;&lt;P&gt;&amp;lt;board.h&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;#define BOARD_DEBUG_UART_TYPE DEBUG_CONSOLE_DEVICE_TYPE_LPSCI&lt;BR /&gt;#define BOARD_DEBUG_UART_BASEADDR (uint32_t) UART0&lt;BR /&gt;#define BOARD_DEBUG_UART_CLKSRC kCLOCK_CoreSysClk&lt;BR /&gt;#define BOARD_DEBUG_UART_CLK_FREQ CLOCK_GetCoreSysClkFreq()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Chen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Dec 2016 07:41:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/UART0-API-functions-in-KSDK-v2-0/m-p/629419#M6679</guid>
      <dc:creator>danielchen</dc:creator>
      <dc:date>2016-12-22T07:41:11Z</dc:date>
    </item>
    <item>
      <title>Re: UART0 API functions in KSDK v2.0</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/UART0-API-functions-in-KSDK-v2-0/m-p/629420#M6680</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Daniel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for providing the clues. However, could you elaborate in a little more details as to how I can use these macros to initialize UART0 using UART_Init() function? The best way is perhaps you could upload some example codes to guide me through if you can. Of all the demo examples given by NXP, I could only find UART1 examples but not single one that demonstrates UART0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Daniel T.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Dec 2016 19:01:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/UART0-API-functions-in-KSDK-v2-0/m-p/629420#M6680</guid>
      <dc:creator>danieltruong</dc:creator>
      <dc:date>2016-12-22T19:01:21Z</dc:date>
    </item>
    <item>
      <title>Re: UART0 API functions in KSDK v2.0</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/UART0-API-functions-in-KSDK-v2-0/m-p/629421#M6681</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Daniel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just adding to my comment above to give you some background info. I'm not using FRDM-KL26Z board at this stage anymore. I'm switching to my real board which uses&amp;nbsp;the&amp;nbsp;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;MKL26Z256VLL4 micro. So UART0 is being used as normal channel to connect to a peripheral device, NOT used as debug channel via OpenSDA as seen in most FRDM- board. With this condition, should I do something (define some macro?) to make UART0 available for "normal mode", as opposed to "debug" mode? I guess all of these questions should be answered if NXP could provide us some example codes for the case of UART0.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;SPAN&gt;Daniel&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Dec 2016 19:24:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/UART0-API-functions-in-KSDK-v2-0/m-p/629421#M6681</guid>
      <dc:creator>danieltruong</dc:creator>
      <dc:date>2016-12-22T19:24:49Z</dc:date>
    </item>
    <item>
      <title>Re: UART0 API functions in KSDK v2.0</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/UART0-API-functions-in-KSDK-v2-0/m-p/629422#M6682</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Daniel&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your additional information. For KL26, UART0 is different than UART1 and UART2. Please check the following code for initialize uart0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lpsci_config_t lpsci_config;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LPSCI_GetDefaultConfig(&amp;amp;lpsci_config);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lpsci_config.baudRate_Bps = baudRate;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Enable clock and initial UART module follow user configure structure. */&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LPSCI_Init();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LPSCI_EnableTx();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LPSCI_EnableRx();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can refer to the fsl_debug_console.c for more information.&amp;nbsp; &lt;/P&gt;&lt;P&gt;(see case DEBUG_CONSOLE_DEVICE_TYPE_LPSCI:)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Dec 2016 04:25:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/UART0-API-functions-in-KSDK-v2-0/m-p/629422#M6682</guid>
      <dc:creator>danielchen</dc:creator>
      <dc:date>2016-12-23T04:25:03Z</dc:date>
    </item>
    <item>
      <title>Re: UART0 API functions in KSDK v2.0</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/UART0-API-functions-in-KSDK-v2-0/m-p/629423#M6683</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Daniel C. Your input really helps to open the door for me to solve my problem. With something as basic as this, I wish NXP provided it with some kind of KSDK 2.0 reference manual for the users. Instead, we just don't know the info until we ask around to find out.&lt;/P&gt;&lt;P&gt;Anyway I really appreciate your help.&lt;/P&gt;&lt;P&gt;Have a nice day!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Daniel T.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Dec 2016 19:45:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/UART0-API-functions-in-KSDK-v2-0/m-p/629423#M6683</guid>
      <dc:creator>danieltruong</dc:creator>
      <dc:date>2016-12-23T19:45:17Z</dc:date>
    </item>
  </channel>
</rss>

