<?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>MCUXpresso SDKのトピックRe: K64 SDK 2.5 SerialManager hangs in SerialManager_Init</title>
    <link>https://community.nxp.com/t5/MCUXpresso-SDK/K64-SDK-2-5-SerialManager-hangs-in-SerialManager-Init/m-p/964090#M1794</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried to narrow this down to a minimal example. When I do that, there is no issue using both UARTs from SerialManager.&amp;nbsp; There must be a bug somewhere else in my code that is conflicting with SerialManager.&amp;nbsp; I will keep investigating and report if I discover anything.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 11 Jun 2019 03:56:41 GMT</pubDate>
    <dc:creator>jeff_rosen</dc:creator>
    <dc:date>2019-06-11T03:56:41Z</dc:date>
    <item>
      <title>K64 SDK 2.5 SerialManager hangs in SerialManager_Init</title>
      <link>https://community.nxp.com/t5/MCUXpresso-SDK/K64-SDK-2-5-SerialManager-hangs-in-SerialManager-Init/m-p/964089#M1793</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Unfortunately, I don't have JTAG or SWD debugging capability.&amp;nbsp; The hardware is the Teensy 3.5 (MK64FX512VMD12) and I am able to successfully configure the debug console to use UART1.&lt;/P&gt;&lt;PRE&gt;&amp;nbsp; &amp;nbsp; DbgConsole_Init(1, 115200, kSerialPort_Uart, CLOCK_GetFreq(UART1_CLK_SRC));&lt;/PRE&gt;&lt;P&gt;When I try and open a second UART, say UART0 as follows:&lt;/P&gt;&lt;PRE&gt;    serial_manager_config_t config;
    serial_port_uart_config_t uartConfig;
    config.type = kSerialPort_Uart;
    config.ringBuffer = &amp;amp;gps_ringBuffer[0];
    config.ringBufferSize = GPS_UART_BUFFER_SIZE;
    uartConfig.instance = 0;
    uartConfig.clockRate = CLOCK_GetFreq(UART0_CLK_SRC);
    uartConfig.baudRate = 115200;
    uartConfig.parityMode = kSerialManager_UartParityDisabled;
    uartConfig.stopBitCount = kSerialManager_UartOneStopBit;
    uartConfig.enableRx = 1;
    uartConfig.enableTx = 1;
    config.portConfig = &amp;amp;uartConfig;
    PRINTF("Calling SerialManager_Init\r\n");
    serial_manager_status_t status = SerialManager_Init(gps_serialHandle, &amp;amp;config);
    PRINTF("SerialManager_Init returned: %d\r\n", status);
    if (status == kStatus_SerialManager_Success) {
        PRINTF("Calling SerialManager_OpenReadHandle\r\n");
        status = SerialManager_OpenReadHandle(gps_serialHandle, gps_serialReadHandle);
        PRINTF("SerialManager_OpenReadHandle returned: %d\r\n", status);
    }&lt;/PRE&gt;&lt;P&gt;The code hangs somewhere in SerialManager_Init.&amp;nbsp; Since I'm limited to debug console debugging and that depends on SerialManager it is tricky to try and debug.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First, I would just like to confirm that my understanding of SerialManager is correct. If the debug console is already using UART1,&amp;nbsp;does the approach above look correct in order to use&amp;nbsp;SerialManager&amp;nbsp;for the new port (UART0)?&amp;nbsp; Any suggestions on what to try would be appreciated.&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jun 2019 04:35:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-SDK/K64-SDK-2-5-SerialManager-hangs-in-SerialManager-Init/m-p/964089#M1793</guid>
      <dc:creator>jeff_rosen</dc:creator>
      <dc:date>2019-06-10T04:35:33Z</dc:date>
    </item>
    <item>
      <title>Re: K64 SDK 2.5 SerialManager hangs in SerialManager_Init</title>
      <link>https://community.nxp.com/t5/MCUXpresso-SDK/K64-SDK-2-5-SerialManager-hangs-in-SerialManager-Init/m-p/964090#M1794</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried to narrow this down to a minimal example. When I do that, there is no issue using both UARTs from SerialManager.&amp;nbsp; There must be a bug somewhere else in my code that is conflicting with SerialManager.&amp;nbsp; I will keep investigating and report if I discover anything.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Jun 2019 03:56:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-SDK/K64-SDK-2-5-SerialManager-hangs-in-SerialManager-Init/m-p/964090#M1794</guid>
      <dc:creator>jeff_rosen</dc:creator>
      <dc:date>2019-06-11T03:56:41Z</dc:date>
    </item>
    <item>
      <title>Re: K64 SDK 2.5 SerialManager hangs in SerialManager_Init</title>
      <link>https://community.nxp.com/t5/MCUXpresso-SDK/K64-SDK-2-5-SerialManager-hangs-in-SerialManager-Init/m-p/964091#M1795</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN class=""&gt;&lt;A _jive_internal="true" data-content-finding="Community" data-userid="321738" data-username="jeff.rosen@acm.org" href="https://community.nxp.com/people/jeff.rosen@acm.org"&gt;Jeffrey Rosen&lt;/A&gt;&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Do you try to modify the function based on the official FRDM-K64 SDK code? Take an example, the hello_world, you can use BOARD_InitDebugConsole to configure your SerialManager.&lt;/P&gt;&lt;P&gt;&amp;nbsp; Take an example, if you want to use UART0, you can configure the UART0 directly, the default helloworld is using the UART0.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; You can test UART0 and UART1 independently, after both of the two interface works, then you can try to mix it together.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Kerry&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt; Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Jun 2019 06:07:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-SDK/K64-SDK-2-5-SerialManager-hangs-in-SerialManager-Init/m-p/964091#M1795</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2019-06-11T06:07:41Z</dc:date>
    </item>
  </channel>
</rss>

