<?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: reading terminal using processor expert component in Kinetis Design Studio</title>
    <link>https://community.nxp.com/t5/Kinetis-Design-Studio/reading-terminal-using-processor-expert-component/m-p/516459#M6828</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Martin,&lt;/P&gt;&lt;P&gt;Yes it takes some time to get used to the tool.&lt;/P&gt;&lt;P&gt;I'm guessing that IMPORTing the project and then trying to compile might also re-build the PE source code.&amp;nbsp; On my side after I generated the PE code, I could then edit and compile the project without the PE code being regenerated.&lt;/P&gt;&lt;P&gt;You might need to re-peat those steps of re-generating the code, compile, debug/test....then go back and make the edits to source, re-compile (without generating PE code), then debug/test.&lt;/P&gt;&lt;P&gt;Attached is my cheat sheet of modified code you can use to copy-n-paste.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Jun 2016 15:34:47 GMT</pubDate>
    <dc:creator>DavidS</dc:creator>
    <dc:date>2016-06-09T15:34:47Z</dc:date>
    <item>
      <title>reading terminal using processor expert component</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/reading-terminal-using-processor-expert-component/m-p/516454#M6823</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I'm trying to read a line or a char in a terminal but it seems nothing is happening when im typing in the terminal. I'm using processor expert TERM component.&lt;/P&gt;&lt;P&gt;Here is a part of my code :&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; char readchannel;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Term1_SendStr("select DAC channel (0, 1, 2, 3) :\r\n");&lt;/P&gt;&lt;P&gt;&amp;nbsp; Term1_ReadChar(&amp;amp;readchannel);&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The "send" function works well but I dont get why I cant read anything...&lt;/P&gt;&lt;P&gt;Would you guys help me with this ?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jun 2016 16:17:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/reading-terminal-using-processor-expert-component/m-p/516454#M6823</guid>
      <dc:creator>martinboton</dc:creator>
      <dc:date>2016-06-07T16:17:46Z</dc:date>
    </item>
    <item>
      <title>Re: reading terminal using processor expert component</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/reading-terminal-using-processor-expert-component/m-p/516455#M6824</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Martin,&lt;/P&gt;&lt;P&gt;Please look at following link:&lt;/P&gt;&lt;P&gt;&lt;A href="https://mcuoneclipse.com/2013/11/16/tutorial-using-a-terminal-input-and-output-without-printf-and-scanf/" title="https://mcuoneclipse.com/2013/11/16/tutorial-using-a-terminal-input-and-output-without-printf-and-scanf/"&gt;https://mcuoneclipse.com/2013/11/16/tutorial-using-a-terminal-input-and-output-without-printf-and-scanf/&amp;nbsp; &lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then search for "Term1_ReadChar" on the page.&lt;/P&gt;&lt;P&gt;The 3rd entry has following:&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; margin-bottom: 1.625em; color: #373737; background-color: #dddddd;"&gt;Hi Shaul,&lt;BR /&gt;thanks for your kind words, appreciated&lt;IMG alt=":-)" class="emoji wp-smiley jive-image" height="16" src="https://s1.wp.com/wp-content/mu-plugins/wpcom-smileys/simple-smile.svg" style="margin: 0 0.05em 0 0.1em !important; border-width: initial !important; border-style: none !important; padding: 0 !important; background: none !important;" width="16" /&gt;&lt;BR /&gt;– Where/how do you see that speed limit of 1200 baud? I’m not aware of such a thing.&lt;BR /&gt;– ‘Device’ vs. ‘Board’: I think you mean selection at project creation time? Yes, I have seen this, and this is a bug in the wizard to my knowledge. There should be a 3.0.1 update (Help &amp;gt; Install new software and then select the KDS site) to fix this. I had no time to verify this, but this is what I was told.&lt;BR /&gt;– ReadChar(&amp;amp;ch): yes, it blocks until it reads a character. Use first Term1_KeyPressed() to find out if there is a character present, and only then call Term1_ReadChar().&lt;BR /&gt;– As for CR-LF: this is an option in Termite to define what shall happen if you press key in the Termite input field.&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; margin-bottom: 1.625em; color: #373737; background-color: #dddddd;"&gt;I hope this helps,&lt;BR /&gt;Erich&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;David&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jun 2016 19:31:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/reading-terminal-using-processor-expert-component/m-p/516455#M6824</guid>
      <dc:creator>DavidS</dc:creator>
      <dc:date>2016-06-07T19:31:40Z</dc:date>
    </item>
    <item>
      <title>Re: reading terminal using processor expert component</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/reading-terminal-using-processor-expert-component/m-p/516456#M6825</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi David,&lt;/P&gt;&lt;P&gt;Thank you very much for your quick answer.&lt;/P&gt;&lt;P&gt;I tried to use first KeyPressed() then call ReadChar() but it still doesn't work. &lt;/P&gt;&lt;P&gt;I saw there was some kind of bug with the FRDM K64F and KDS, could it come from there ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jun 2016 09:35:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/reading-terminal-using-processor-expert-component/m-p/516456#M6825</guid>
      <dc:creator>martinboton</dc:creator>
      <dc:date>2016-06-08T09:35:06Z</dc:date>
    </item>
    <item>
      <title>Re: reading terminal using processor expert component</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/reading-terminal-using-processor-expert-component/m-p/516457#M6826</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Martin,&lt;/P&gt;&lt;P&gt;Yes I think something not right.&amp;nbsp; Not certain if hardware or software for K64.&amp;nbsp; The UART gets configured to use FIFO mode and I'm not sure the drivers are really set up to use them.&lt;/P&gt;&lt;P&gt;I have somewhat of a workaround for you to try.&lt;/P&gt;&lt;P&gt;I create a new KDS_3.0 PE project for frdm-k64f (attached).&amp;nbsp; Once I had the Components configured I then made edits to some of the PE files and can compile without having PE update the source.&lt;/P&gt;&lt;P&gt;Summary of changes (search for "//DES" :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_0.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/59305i7513A9ABDECE97AF/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_0.png" alt="pastedImage_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Before submitting a trouble ticket I want to test on other hardware and also get your feedback.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jun 2016 21:08:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/reading-terminal-using-processor-expert-component/m-p/516457#M6826</guid>
      <dc:creator>DavidS</dc:creator>
      <dc:date>2016-06-08T21:08:37Z</dc:date>
    </item>
    <item>
      <title>Re: reading terminal using processor expert component</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/reading-terminal-using-processor-expert-component/m-p/516458#M6827</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi David,&lt;/P&gt;&lt;P&gt;When I debug your project KDS replaces the files you modified in 'Generated_Code' folder with the originals I guess.&lt;/P&gt;&lt;P&gt;I am new to KDS and PE so I don't really what is going on...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jun 2016 09:41:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/reading-terminal-using-processor-expert-component/m-p/516458#M6827</guid>
      <dc:creator>martinboton</dc:creator>
      <dc:date>2016-06-09T09:41:42Z</dc:date>
    </item>
    <item>
      <title>Re: reading terminal using processor expert component</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/reading-terminal-using-processor-expert-component/m-p/516459#M6828</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Martin,&lt;/P&gt;&lt;P&gt;Yes it takes some time to get used to the tool.&lt;/P&gt;&lt;P&gt;I'm guessing that IMPORTing the project and then trying to compile might also re-build the PE source code.&amp;nbsp; On my side after I generated the PE code, I could then edit and compile the project without the PE code being regenerated.&lt;/P&gt;&lt;P&gt;You might need to re-peat those steps of re-generating the code, compile, debug/test....then go back and make the edits to source, re-compile (without generating PE code), then debug/test.&lt;/P&gt;&lt;P&gt;Attached is my cheat sheet of modified code you can use to copy-n-paste.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jun 2016 15:34:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/reading-terminal-using-processor-expert-component/m-p/516459#M6828</guid>
      <dc:creator>DavidS</dc:creator>
      <dc:date>2016-06-09T15:34:47Z</dc:date>
    </item>
    <item>
      <title>Re: reading terminal using processor expert component</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/reading-terminal-using-processor-expert-component/m-p/516460#M6829</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello David,&lt;/P&gt;&lt;P&gt;Indeed if I re-generate PE code then edit, compile and debug then go back the code remains and can be compiled without regenerating PE code. But I still can't read a char, Term1_ReadChar() is blocking. Does it work on your side ?&lt;/P&gt;&lt;P&gt;Regards, &lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jun 2016 08:27:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/reading-terminal-using-processor-expert-component/m-p/516460#M6829</guid>
      <dc:creator>martinboton</dc:creator>
      <dc:date>2016-06-10T08:27:20Z</dc:date>
    </item>
    <item>
      <title>Re: reading terminal using processor expert component</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/reading-terminal-using-processor-expert-component/m-p/516461#M6830</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Martin,&lt;/P&gt;&lt;P&gt;Yes I am getting characters back.&lt;/P&gt;&lt;P&gt;HELLO WORLD!!!&lt;/P&gt;&lt;P&gt;TERMINAL DEMO&lt;/P&gt;&lt;P&gt;HELLO WORLD!!!1&lt;/P&gt;&lt;P&gt;TERMINAL DEMO&lt;/P&gt;&lt;P&gt;HELLO WORLD!!!2&lt;/P&gt;&lt;P&gt;TERMINAL DEMO&lt;/P&gt;&lt;P&gt;HELLO WORLD!!!3&lt;/P&gt;&lt;P&gt;TERMINAL DEMO&lt;/P&gt;&lt;P&gt;HELLO WORLD!!!4&lt;/P&gt;&lt;P&gt;TERMINAL DEMO&lt;/P&gt;&lt;P&gt;HELLO WORLD!!!5&lt;/P&gt;&lt;P&gt;TERMINAL DEMO&lt;/P&gt;&lt;P&gt;HELLO WORLD!!!6&lt;/P&gt;&lt;P&gt;TERMINAL DEMO&lt;/P&gt;&lt;P&gt;HELLO WORLD!!!7&lt;/P&gt;&lt;P&gt;TERMINAL DEMO&lt;/P&gt;&lt;P&gt;HELLO WORLD!!!8&lt;/P&gt;&lt;P&gt;TERMINAL DEMO&lt;/P&gt;&lt;P&gt;HELLO WORLD!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above output is when I type "0 1 2 3 4 5 6 7 8" in the terminal window.&lt;/P&gt;&lt;P&gt;Note as mentioned in source code that first character not echoed back but rest of them are.&lt;/P&gt;&lt;P&gt;Slightly updated main().&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jun 2016 20:47:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/reading-terminal-using-processor-expert-component/m-p/516461#M6830</guid>
      <dc:creator>DavidS</dc:creator>
      <dc:date>2016-06-10T20:47:13Z</dc:date>
    </item>
    <item>
      <title>Re: reading terminal using processor expert component</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/reading-terminal-using-processor-expert-component/m-p/516462#M6831</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi David,&lt;/P&gt;&lt;P&gt;It still doesn't work for me... Which terminal software are you using ?&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jun 2016 08:10:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/reading-terminal-using-processor-expert-component/m-p/516462#M6831</guid>
      <dc:creator>martinboton</dc:creator>
      <dc:date>2016-06-20T08:10:08Z</dc:date>
    </item>
    <item>
      <title>Re: reading terminal using processor expert component</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/reading-terminal-using-processor-expert-component/m-p/516463#M6832</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Martin,&lt;/P&gt;&lt;P&gt;My apologizes.&amp;nbsp; I left one of my edits out of the previous text file with the modifications.&lt;/P&gt;&lt;P&gt;Here it is updated (i.e. attached).&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;P&gt;PS &lt;/P&gt;&lt;P&gt;I worked for my with Hercules, Tera Term, and Putty.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jun 2016 19:51:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/reading-terminal-using-processor-expert-component/m-p/516463#M6832</guid>
      <dc:creator>DavidS</dc:creator>
      <dc:date>2016-06-20T19:51:27Z</dc:date>
    </item>
    <item>
      <title>Re: reading terminal using processor expert component</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/reading-terminal-using-processor-expert-component/m-p/516464#M6833</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi David,&lt;/P&gt;&lt;P&gt;It does work now, thank you very much. &lt;/P&gt;&lt;P&gt;I noticed that it also works if I create a Processor Expert project with the microprocessor selected in the settings instead of the board itself. So the issue probably comes from KDS and project generation for the FRDM K64F.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jun 2016 12:03:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/reading-terminal-using-processor-expert-component/m-p/516464#M6833</guid>
      <dc:creator>martinboton</dc:creator>
      <dc:date>2016-06-21T12:03:48Z</dc:date>
    </item>
  </channel>
</rss>

