<?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>Kinetis MicrocontrollersのトピックSendBlock funtion doesn´t send correct data</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/SendBlock-funtion-doesn-t-send-correct-data/m-p/602837#M35435</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I´m new with freescale microcontrollers and I am testing a board with&lt;/P&gt;&lt;P&gt;MK20DX256VLH7 microcontroller. I have startedwith a Project developed with&lt;/P&gt;&lt;P&gt;the Processor Expert tool. In order to develop the application I have&lt;/P&gt;&lt;P&gt;followed step by step "the Processor Expert Software &amp;#150; Microcontrollers&lt;/P&gt;&lt;P&gt;Driver Suite Getting Started Guide" tutorial. Then when I had to test&lt;/P&gt;&lt;P&gt;debugging I saw that the LED was flashing well with the correct frequency,&lt;/P&gt;&lt;P&gt;but I checked that the message sent to Tera Term Application by UART wasn't&lt;/P&gt;&lt;P&gt;correct. Tera Term has received something but there are some strange&lt;/P&gt;&lt;P&gt;characters. The string that I send is "Hello World". The direction where is&lt;/P&gt;&lt;P&gt;stored the string is 0xfc0 allways, although I change the string, and I saw&lt;/P&gt;&lt;P&gt;that all characters are stored in them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&amp;lt;https://community.nxp.com/servlet/JiveServlet/showImage/2-889025-179793/str&lt;/P&gt;&lt;P&gt;ange_characters.png&amp;gt; Descripción: Strange characters recrived in Tera Term&lt;/P&gt;&lt;P&gt;Application&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The configuration is the same in Tera and in AS1 component, the baud rate is&lt;/P&gt;&lt;P&gt;9600, no parity, stop bit, 8 bits, and no control flow. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&amp;lt;https://community.nxp.com/servlet/JiveServlet/showImage/2-889025-179779/Ter&lt;/P&gt;&lt;P&gt;a&lt;EM&gt;Term&lt;/EM&gt;Configuration.png&amp;gt; Descripción: Tera Term Configuration&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&amp;lt;https://community.nxp.com/servlet/JiveServlet/showImage/2-889025-179792/UAR&lt;/P&gt;&lt;P&gt;T_Component_Configuration.png&amp;gt; Descripción: UART Component Configuration&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I execute step by step inside the "AS1_SendBlock" function, I can see&lt;/P&gt;&lt;P&gt;how the characters are saved. For example the character that I can see in&lt;/P&gt;&lt;P&gt;*DeviceDataPrv-&amp;gt;OutDataPtr is 0x48h, that is the hexadecimal character of&lt;/P&gt;&lt;P&gt;first letter "H". Then later it is executed the next line:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UART_PDD_EnableInterrupt(UART2_BASE_PTR, UART_PDD_INTERRUPT_TRANSMITTER);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here I think it´s the sending order. Why don´t send the string correctly?&lt;/P&gt;&lt;P&gt;There are something in the configuration? The configuration should be&lt;/P&gt;&lt;P&gt;different with MK20DX256VLH7? The baud rate is ok?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my application &amp;#147;AS1_SendBlock&amp;#148; function  is executed step by step like it&lt;/P&gt;&lt;P&gt;should be, but when I want to see where the data are sent (in which output&lt;/P&gt;&lt;P&gt;registers) when the transmission interrupt is enable, I don&amp;#146;t know where&lt;/P&gt;&lt;P&gt;because they are unknown for me. Do you Know the registers in which appears&lt;/P&gt;&lt;P&gt;the UART output transmission data or the UART output buffer for&lt;/P&gt;&lt;P&gt;mK20dx256vlh7 microcontroller?? I´m reading in the datasheet and I don´t&lt;/P&gt;&lt;P&gt;find any registers related on them. I want to see if the transmission data&lt;/P&gt;&lt;P&gt;in these registers are the same that I want to transmit and also in order to&lt;/P&gt;&lt;P&gt;compare with data that arrive to Tera application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would be very grateful for your help,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Arturo Arteaga&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 Mar 2017 16:58:33 GMT</pubDate>
    <dc:creator>arturoarteaga</dc:creator>
    <dc:date>2017-03-21T16:58:33Z</dc:date>
    <item>
      <title>SendBlock funtion doesn´t send correct data</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/SendBlock-funtion-doesn-t-send-correct-data/m-p/602837#M35435</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I´m new with freescale microcontrollers and I am testing a board with&lt;/P&gt;&lt;P&gt;MK20DX256VLH7 microcontroller. I have startedwith a Project developed with&lt;/P&gt;&lt;P&gt;the Processor Expert tool. In order to develop the application I have&lt;/P&gt;&lt;P&gt;followed step by step "the Processor Expert Software &amp;#150; Microcontrollers&lt;/P&gt;&lt;P&gt;Driver Suite Getting Started Guide" tutorial. Then when I had to test&lt;/P&gt;&lt;P&gt;debugging I saw that the LED was flashing well with the correct frequency,&lt;/P&gt;&lt;P&gt;but I checked that the message sent to Tera Term Application by UART wasn't&lt;/P&gt;&lt;P&gt;correct. Tera Term has received something but there are some strange&lt;/P&gt;&lt;P&gt;characters. The string that I send is "Hello World". The direction where is&lt;/P&gt;&lt;P&gt;stored the string is 0xfc0 allways, although I change the string, and I saw&lt;/P&gt;&lt;P&gt;that all characters are stored in them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&amp;lt;https://community.nxp.com/servlet/JiveServlet/showImage/2-889025-179793/str&lt;/P&gt;&lt;P&gt;ange_characters.png&amp;gt; Descripción: Strange characters recrived in Tera Term&lt;/P&gt;&lt;P&gt;Application&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The configuration is the same in Tera and in AS1 component, the baud rate is&lt;/P&gt;&lt;P&gt;9600, no parity, stop bit, 8 bits, and no control flow. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&amp;lt;https://community.nxp.com/servlet/JiveServlet/showImage/2-889025-179779/Ter&lt;/P&gt;&lt;P&gt;a&lt;EM&gt;Term&lt;/EM&gt;Configuration.png&amp;gt; Descripción: Tera Term Configuration&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&amp;lt;https://community.nxp.com/servlet/JiveServlet/showImage/2-889025-179792/UAR&lt;/P&gt;&lt;P&gt;T_Component_Configuration.png&amp;gt; Descripción: UART Component Configuration&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I execute step by step inside the "AS1_SendBlock" function, I can see&lt;/P&gt;&lt;P&gt;how the characters are saved. For example the character that I can see in&lt;/P&gt;&lt;P&gt;*DeviceDataPrv-&amp;gt;OutDataPtr is 0x48h, that is the hexadecimal character of&lt;/P&gt;&lt;P&gt;first letter "H". Then later it is executed the next line:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UART_PDD_EnableInterrupt(UART2_BASE_PTR, UART_PDD_INTERRUPT_TRANSMITTER);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here I think it´s the sending order. Why don´t send the string correctly?&lt;/P&gt;&lt;P&gt;There are something in the configuration? The configuration should be&lt;/P&gt;&lt;P&gt;different with MK20DX256VLH7? The baud rate is ok?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my application &amp;#147;AS1_SendBlock&amp;#148; function  is executed step by step like it&lt;/P&gt;&lt;P&gt;should be, but when I want to see where the data are sent (in which output&lt;/P&gt;&lt;P&gt;registers) when the transmission interrupt is enable, I don&amp;#146;t know where&lt;/P&gt;&lt;P&gt;because they are unknown for me. Do you Know the registers in which appears&lt;/P&gt;&lt;P&gt;the UART output transmission data or the UART output buffer for&lt;/P&gt;&lt;P&gt;mK20dx256vlh7 microcontroller?? I´m reading in the datasheet and I don´t&lt;/P&gt;&lt;P&gt;find any registers related on them. I want to see if the transmission data&lt;/P&gt;&lt;P&gt;in these registers are the same that I want to transmit and also in order to&lt;/P&gt;&lt;P&gt;compare with data that arrive to Tera application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would be very grateful for your help,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Arturo Arteaga&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Mar 2017 16:58:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/SendBlock-funtion-doesn-t-send-correct-data/m-p/602837#M35435</guid>
      <dc:creator>arturoarteaga</dc:creator>
      <dc:date>2017-03-21T16:58:33Z</dc:date>
    </item>
    <item>
      <title>Re: SendBlock funtion doesn´t send correct data</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/SendBlock-funtion-doesn-t-send-correct-data/m-p/602838#M35436</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Arturo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- You can check the register for&amp;nbsp; UARTx_D on the Reference manual , not datasheet .&lt;/P&gt;&lt;P&gt;You can also can change another terminal to have a try.&lt;/P&gt;&lt;P&gt;-If still can not work , please share your project to me , I will check the code on my side.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Alice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Mar 2017 08:48:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/SendBlock-funtion-doesn-t-send-correct-data/m-p/602838#M35436</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2017-03-22T08:48:13Z</dc:date>
    </item>
    <item>
      <title>Re: SendBlock funtion doesn´t send correct data</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/SendBlock-funtion-doesn-t-send-correct-data/m-p/602839#M35437</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alice,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Firstly thanks for your help,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have managed to send a message to PC, but I want to receive data from PC to microcontroller and to re-send from microcontroller to PC the same data. It´s for testing to inizialite a future new applicationin the company.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have attached my proyect in this mail. I think “AS1_OnBlockReceived” function should be called when a data is received but this function isn´t called when I send data from PC to microcontroller by writing from a keyboard in Tera application. In this function I use “SendBlock” function (it´s just functional) and also I use “GPIO1_ToggleFieldBits” (this function makes a toggle in a led) in order to check if the function is really called&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why the function isn´t called?? This function is enabled in AS1 component and also it appears as enabled in “AS1.h” file from the project. Also you can see “PE_ISR(AS1_Interrupt)” function in “AS1.c” file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to configure something more?? I can just send but is there a lack to manage the reception data and sending data at the same time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you again for your effort,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a nice day,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Arturo Arteaga&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;De: Alice_Yang  &lt;/P&gt;&lt;P&gt;Enviado el: miércoles, 22 de marzo de 2017 9:49&lt;/P&gt;&lt;P&gt;Para: Arturo Arteaga&lt;/P&gt;&lt;P&gt;Asunto: Re:  - Re: SendBlock funtion doesn´t send correct data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &amp;lt;https://community.freescale.com/resources/statics/1000/35400-NXP-Community-Email-banner-600x75.jpg&amp;gt; NXP Community &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Re: SendBlock funtion doesn´t send correct data &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reply from Alice_Yang &amp;lt;https://community.nxp.com/people/Alice_Yang?et=watches.email.thread&amp;gt;  in Kinetis Microcontrollers - View the full discussion &amp;lt;https://community.nxp.com/message/889450?commentID=889450&amp;amp;et=watches.email.thread#comment-889450&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Mar 2017 11:59:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/SendBlock-funtion-doesn-t-send-correct-data/m-p/602839#M35437</guid>
      <dc:creator>arturoarteaga</dc:creator>
      <dc:date>2017-03-22T11:59:02Z</dc:date>
    </item>
    <item>
      <title>Re: SendBlock funtion doesn´t send correct data</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/SendBlock-funtion-doesn-t-send-correct-data/m-p/602840#M35438</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Arturo,&lt;/P&gt;&lt;P&gt;As to there is error when build your project on my side , so I create a new project for you.&lt;/P&gt;&lt;P&gt;I refer to the "Typical Usage" of the component, please check the attachment .&lt;/P&gt;&lt;P&gt;Send a character 'e' on terminal on PC, when k20 board receive it , it will send "Hello world" to terminal .&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/16200i3962F1D916155177/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;(Sorry for I haven't a good terminal software of English language , so please ignore the words on my terminal )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Alice Yang&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Mar 2017 03:52:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/SendBlock-funtion-doesn-t-send-correct-data/m-p/602840#M35438</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2017-03-24T03:52:11Z</dc:date>
    </item>
  </channel>
</rss>

