<?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 Problems serial communication with frdm-k64f in Simulink in Embedded Software and Tools Clinic</title>
    <link>https://community.nxp.com/t5/Embedded-Software-and-Tools/Problems-serial-communication-with-frdm-k64f-in-Simulink/m-p/1094400#M54</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good Evening, I experienced problem in simulink about the serial communication for the nxp frdm-k64f.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Software Description: In Particular I would like to exploit the "Uart0" to make the board and the computer exchange data. So I made two simulink files: the firmware for the board and the debug file. Fist of all the "Hardware model board" is set only in the firmware. I receive the data in the firmware with the block "Serial transmit" of the library "Simulink coder support package for NXP FRDM-K64F Board" which is connected to a "Digital write" which should turn on a LED. This file will be deploied to the board. On the other file I inserted a "Serial send" from the library "Instrument Control Toolbox" and even a "Serial configuration" block to make it work. And I sent a uint8 constant with value "1". This last program will be just run afted the deploy of the other program. I even inserted blocks to send data from the board to the computer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Behave: I am able to send data from micro to computer without problem with Uart0 using the pin "PTB17", in fact when I run the debug file the green serial communication led on the board ( the one next to the SDA USB) strarts blinking very fast. If I remove the the serial send, and doing so the board will only receive the data from the computer and after the deploy of the firmware, if I run the debug file, I see the green serial send light blinking but no command is passed to the user LED. When in the firmware I enable the blocking mode in the serial receive, when I run the debug file I see the serial communication led is switched on fixed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance for your attention.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 17 May 2020 17:07:43 GMT</pubDate>
    <dc:creator>alberto1_paolin</dc:creator>
    <dc:date>2020-05-17T17:07:43Z</dc:date>
    <item>
      <title>Problems serial communication with frdm-k64f in Simulink</title>
      <link>https://community.nxp.com/t5/Embedded-Software-and-Tools/Problems-serial-communication-with-frdm-k64f-in-Simulink/m-p/1094400#M54</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good Evening, I experienced problem in simulink about the serial communication for the nxp frdm-k64f.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Software Description: In Particular I would like to exploit the "Uart0" to make the board and the computer exchange data. So I made two simulink files: the firmware for the board and the debug file. Fist of all the "Hardware model board" is set only in the firmware. I receive the data in the firmware with the block "Serial transmit" of the library "Simulink coder support package for NXP FRDM-K64F Board" which is connected to a "Digital write" which should turn on a LED. This file will be deploied to the board. On the other file I inserted a "Serial send" from the library "Instrument Control Toolbox" and even a "Serial configuration" block to make it work. And I sent a uint8 constant with value "1". This last program will be just run afted the deploy of the other program. I even inserted blocks to send data from the board to the computer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Behave: I am able to send data from micro to computer without problem with Uart0 using the pin "PTB17", in fact when I run the debug file the green serial communication led on the board ( the one next to the SDA USB) strarts blinking very fast. If I remove the the serial send, and doing so the board will only receive the data from the computer and after the deploy of the firmware, if I run the debug file, I see the green serial send light blinking but no command is passed to the user LED. When in the firmware I enable the blocking mode in the serial receive, when I run the debug file I see the serial communication led is switched on fixed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance for your attention.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 17 May 2020 17:07:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Embedded-Software-and-Tools/Problems-serial-communication-with-frdm-k64f-in-Simulink/m-p/1094400#M54</guid>
      <dc:creator>alberto1_paolin</dc:creator>
      <dc:date>2020-05-17T17:07:43Z</dc:date>
    </item>
  </channel>
</rss>

