<?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: iMXRT1024 - Seperate Debug Console and shell in i.MX RT Crossover MCUs</title>
    <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/iMXRT1024-Seperate-Debug-Console-and-shell/m-p/1763741#M27750</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/218583"&gt;@GUnderdown&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have tried with the similar code on my board, but it works well.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Kan_Li_0-1701064010131.png" style="width: 692px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/251528iACF1DECA0AE9A94B/image-dimensions/692x498?v=v2" width="692" height="498" role="button" title="Kan_Li_0-1701064010131.png" alt="Kan_Li_0-1701064010131.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Kan_Li_0-1701064010131.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tested it based on the Shell demo with RT1024EVK, and debug console on semihost. Have you tried&amp;nbsp; with the same ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have a great day,&lt;BR /&gt;Kan&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;BR /&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;</description>
    <pubDate>Mon, 27 Nov 2023 05:49:51 GMT</pubDate>
    <dc:creator>Kan_Li</dc:creator>
    <dc:date>2023-11-27T05:49:51Z</dc:date>
    <item>
      <title>iMXRT1024 - Seperate Debug Console and shell</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/iMXRT1024-Seperate-Debug-Console-and-shell/m-p/1757825#M27589</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to have the debug console put on USART1, and a true shell put on USART6. This way we can have debug messages printed over a clean port, and then have customers interact with the shell as a backup to setting information over the network/usb.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, whenever I go to initialize the shell, the code asserts during&lt;/P&gt;&lt;LI-CODE lang="c"&gt; shell_status_t SHELL_Init(shell_handle_t shellHandle, serial_handle_t serialHandle, char *prompt)`&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Specifically, it asserts after&lt;/P&gt;&lt;LI-CODE lang="c"&gt;        status = SerialManager_OpenReadHandle(shellContextHandle-&amp;gt;serialHandle, shellContextHandle-&amp;gt;serialReadHandle);
        assert(kStatus_SerialManager_Success == status);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp; status here is "kStatus_SerialManager_Busy"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried this with both non-blocking transfers as well as blocking transfers.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my side of the init code&lt;/P&gt;&lt;LI-CODE lang="c"&gt;s_shellHandle = &amp;amp;s_shellHandleBuffer[0];

	char * stringthingy = new char[16];	// should be enough for "shell@12345 #\0"

	// this is what will be printed before
	// the prompt
	// like user@computer $ or user@computer#
	// we will make it shell@serialNum #
	sprintf(stringthingy, "shell@%05u #", (unsigned int)GlobalHardware-&amp;gt;GetHWInfo().hardwareSerialNum);

    SHELL_Init(s_shellHandle, g_serialHandle, stringthingy);
// never gets beyone here
    SHELL_RegisterCommand(s_shellHandle, SHELL_COMMAND(viewEthernet));
    SHELL_RegisterCommand(s_shellHandle, SHELL_COMMAND(viewSoftware));
    SHELL_RegisterCommand(s_shellHandle, SHELL_COMMAND(viewHardware));
    SHELL_RegisterCommand(s_shellHandle, SHELL_COMMAND(setHardware));
    SHELL_RegisterCommand(s_shellHandle, SHELL_COMMAND(setEthernet));

    //SHELL_Task(s_shellHandle);
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the defines I pass in (as previously stated, have also tried with DEBUG_CONSOLE_TRANSFER_NON_BLOCKING)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="GUnderdown_0-1700076015001.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/250021i3912AE5327263E6B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="GUnderdown_0-1700076015001.png" alt="GUnderdown_0-1700076015001.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;GUnderdown_0-1700076015001.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Nov 2023 19:20:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/iMXRT1024-Seperate-Debug-Console-and-shell/m-p/1757825#M27589</guid>
      <dc:creator>GUnderdown</dc:creator>
      <dc:date>2023-11-15T19:20:27Z</dc:date>
    </item>
    <item>
      <title>Re: iMXRT1024 - Seperate Debug Console and shell</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/iMXRT1024-Seperate-Debug-Console-and-shell/m-p/1763741#M27750</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/218583"&gt;@GUnderdown&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have tried with the similar code on my board, but it works well.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Kan_Li_0-1701064010131.png" style="width: 692px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/251528iACF1DECA0AE9A94B/image-dimensions/692x498?v=v2" width="692" height="498" role="button" title="Kan_Li_0-1701064010131.png" alt="Kan_Li_0-1701064010131.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Kan_Li_0-1701064010131.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tested it based on the Shell demo with RT1024EVK, and debug console on semihost. Have you tried&amp;nbsp; with the same ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have a great day,&lt;BR /&gt;Kan&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;BR /&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;</description>
      <pubDate>Mon, 27 Nov 2023 05:49:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/iMXRT1024-Seperate-Debug-Console-and-shell/m-p/1763741#M27750</guid>
      <dc:creator>Kan_Li</dc:creator>
      <dc:date>2023-11-27T05:49:51Z</dc:date>
    </item>
    <item>
      <title>Re: iMXRT1024 - Seperate Debug Console and shell</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/iMXRT1024-Seperate-Debug-Console-and-shell/m-p/1764272#M27764</link>
      <description>&lt;P&gt;I guess my biggest question is how do I tell the shell to print to USART6 instead of usart1?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Nov 2023 20:00:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/iMXRT1024-Seperate-Debug-Console-and-shell/m-p/1764272#M27764</guid>
      <dc:creator>GUnderdown</dc:creator>
      <dc:date>2023-11-27T20:00:32Z</dc:date>
    </item>
    <item>
      <title>Re: iMXRT1024 - Seperate Debug Console and shell</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/iMXRT1024-Seperate-Debug-Console-and-shell/m-p/1786303#M28413</link>
      <description>&lt;P&gt;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/59276"&gt;@Kan_Li&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;How would I set it up to select the USART that the shell prints on? I want to have the shell on USART6, not semihost or USART1 (which is the default)&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jan 2024 19:05:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/iMXRT1024-Seperate-Debug-Console-and-shell/m-p/1786303#M28413</guid>
      <dc:creator>GUnderdown</dc:creator>
      <dc:date>2024-01-10T19:05:01Z</dc:date>
    </item>
  </channel>
</rss>

