<?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: FreeRTOS_CLIRegisterCommand not working in MCUXpresso SDK</title>
    <link>https://community.nxp.com/t5/MCUXpresso-SDK/FreeRTOS-CLIRegisterCommand-not-working/m-p/823445#M1071</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for sharing your idea. &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, 26 Oct 2018 02:10:46 GMT</pubDate>
    <dc:creator>danielchen</dc:creator>
    <dc:date>2018-10-26T02:10:46Z</dc:date>
    <item>
      <title>FreeRTOS_CLIRegisterCommand not working</title>
      <link>https://community.nxp.com/t5/MCUXpresso-SDK/FreeRTOS-CLIRegisterCommand-not-working/m-p/823443#M1069</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;nbsp;I am following this &lt;A href="https://www.freertos.org/FreeRTOS-Plus/FreeRTOS_Plus_CLI/FreeRTOS_Plus_Command_Line_Interface.shtml"&gt;tutorial&lt;/A&gt; and have&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. Implemented a Command&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;static&lt;/SPAN&gt; &lt;SPAN class=""&gt;BaseType_t&lt;/SPAN&gt; prvTaskStatsCommand( &lt;SPAN class=""&gt;int8_t&lt;/SPAN&gt; *pcWriteBuffer,&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&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; &lt;/SPAN&gt;&lt;SPAN class=""&gt;size_t&lt;/SPAN&gt; xWriteBufferLen,&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&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; &lt;/SPAN&gt;&lt;SPAN class=""&gt;const&lt;/SPAN&gt; &lt;SPAN class=""&gt;int8_t&lt;/SPAN&gt; *pcCommandString )&lt;/P&gt;&lt;P class=""&gt;{&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;( &lt;SPAN class=""&gt;void&lt;/SPAN&gt; ) xWriteBufferLen;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class=""&gt;return&lt;/SPAN&gt; pdFALSE;&lt;/P&gt;&lt;P class=""&gt;}&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P class=""&gt;2.&amp;nbsp;&lt;SPAN style="background-color: #ffffff; color: #202020; font-size: 14px;"&gt;&amp;nbsp;created the mapping&lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;static&lt;/SPAN&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;&lt;SPAN class=""&gt;const&lt;/SPAN&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;CLI_Command_Definition_t&lt;SPAN class=""&gt; xDelCommand =&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;{&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class=""&gt;"abc&lt;/SPAN&gt;&lt;SPAN class=""&gt;"&lt;/SPAN&gt;,&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;"&lt;SPAN class=""&gt;del&lt;/SPAN&gt; &amp;lt;filename&amp;gt;: Deletes &amp;lt;filename&amp;gt; from the disk\r\n"&lt;SPAN class=""&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;prvTaskStatsCommand,&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;1&lt;/P&gt;&lt;P class=""&gt;};&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P class=""&gt;3.&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;registered with FreeRTOS+CLI&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;void&lt;/SPAN&gt; vRegisterCLICommands( &lt;SPAN class=""&gt;void&lt;/SPAN&gt; )&lt;/P&gt;&lt;P class=""&gt;{&lt;/P&gt;&lt;P class=""&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;int&lt;/SPAN&gt; a = FreeRTOS_CLIRegisterCommand( &amp;amp;xDelCommand );&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;printf(&lt;/SPAN&gt;"hello world %i\n"&lt;SPAN class=""&gt;, a);&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;}&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I put&amp;nbsp;vRegisterCLICommands() in main and the printout is "hello world 1", indicating the registration is successful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then I tried&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;help&amp;nbsp;&lt;SPAN style="background-color: #f6f6f6;"&gt;abc&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;in the debug console in MCUXpresso, but abc is not there. This is what I got&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P class=""&gt;Undefined command: "abc".&lt;SPAN class=""&gt;&amp;nbsp; &lt;/SPAN&gt;Try "help".&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;why&amp;nbsp;FreeRTOS_CLIRegisterCommand is not working?&lt;/P&gt;&lt;P&gt;what should I do after register the command with FreeRTOS_CLI?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Oct 2018 00:22:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-SDK/FreeRTOS-CLIRegisterCommand-not-working/m-p/823443#M1069</guid>
      <dc:creator>jren68</dc:creator>
      <dc:date>2018-10-24T00:22:09Z</dc:date>
    </item>
    <item>
      <title>Re: FreeRTOS_CLIRegisterCommand not working</title>
      <link>https://community.nxp.com/t5/MCUXpresso-SDK/FreeRTOS-CLIRegisterCommand-not-working/m-p/823444#M1070</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I figured out what's the problem...the console is the gdb console, not a shell or UART terminal that connects directly to the board...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Oct 2018 00:56:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-SDK/FreeRTOS-CLIRegisterCommand-not-working/m-p/823444#M1070</guid>
      <dc:creator>jren68</dc:creator>
      <dc:date>2018-10-26T00:56:45Z</dc:date>
    </item>
    <item>
      <title>Re: FreeRTOS_CLIRegisterCommand not working</title>
      <link>https://community.nxp.com/t5/MCUXpresso-SDK/FreeRTOS-CLIRegisterCommand-not-working/m-p/823445#M1071</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for sharing your idea. &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, 26 Oct 2018 02:10:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-SDK/FreeRTOS-CLIRegisterCommand-not-working/m-p/823445#M1071</guid>
      <dc:creator>danielchen</dc:creator>
      <dc:date>2018-10-26T02:10:46Z</dc:date>
    </item>
    <item>
      <title>Re: FreeRTOS_CLIRegisterCommand not working</title>
      <link>https://community.nxp.com/t5/MCUXpresso-SDK/FreeRTOS-CLIRegisterCommand-not-working/m-p/823446#M1072</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;most of the board SDK will have a shell demo, that script can be used as a console and&amp;nbsp;one can call the registered functions from the shell successfully.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Oct 2018 17:17:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-SDK/FreeRTOS-CLIRegisterCommand-not-working/m-p/823446#M1072</guid>
      <dc:creator>jren68</dc:creator>
      <dc:date>2018-10-26T17:17:02Z</dc:date>
    </item>
  </channel>
</rss>

