<?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>MPC5xxx中的主题 Re: MPC5744P dev board - uart example does not work, why?</title>
    <link>https://community.nxp.com/t5/MPC5xxx/MPC5744P-dev-board-uart-example-does-not-work-why/m-p/1090590#M16428</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;most probably the exception will be called due to clock gated on LINFlex_0. Add below line to&amp;nbsp;peri_clock_gating()&lt;/P&gt;&lt;P&gt;MC_ME.PCTL204.B.RUN_CFG = 0x1; //LINFlexD_0: Select peripheral config RUN_PC[1]&lt;/P&gt;&lt;P&gt;Then use LINFlex0 functions&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;initLINFlexD_0(80,19200);&lt;/P&gt;&lt;P&gt;testLINFlexD_0(); /* Send test message to PC terminal.*/&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for(;;)&lt;BR /&gt; {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; echoLINFlexD_0();&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR, Petr&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 30 Jul 2020 07:45:03 GMT</pubDate>
    <dc:creator>PetrS</dc:creator>
    <dc:date>2020-07-30T07:45:03Z</dc:date>
    <item>
      <title>MPC5744P dev board - uart example does not work, why?</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5744P-dev-board-uart-example-does-not-work-why/m-p/1090589#M16427</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have the above mentioned board and tried the builtin uart demo which use LINFlexD and I using Termite as terminal setting the baud rate to 19200 just as it was set in the source code, but when I run it with debuger in S32DS then nothing will be printed to the terminal. Tested the terminal software, it is working with an arduino UNO so the problem should be elsewhere.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I found out that my board is a revision E which somewhat differ from B. There is a documentation which even mention the following " &lt;SPAN class=""&gt;USB/serial/OpenSDA is connected to LIN0 (LIN1 on Rev.B)&lt;/SPAN&gt;&amp;nbsp;". It could be that the original program was written to the B version? I can't verify this since I'm quite a beginner with this board and not sure what exactly going on in the source.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The example name is "LINFlexD_UART_MPC5744P" by the way&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UPDATE: So my assumption is that if with rev E the serial is connected to LIN0 (&lt;SPAN&gt;LINFlexD_0)&lt;/SPAN&gt;, then I should call thats initialization function, because its exists there, it just unused. But as soon as the control enter to that function it will run into an interrupt IVOR1_Vector where it stays for ever (like a trap mechanism in TriCore I assume), but I am unsure what the meaning of this "trap".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 26 Jul 2020 13:06:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5744P-dev-board-uart-example-does-not-work-why/m-p/1090589#M16427</guid>
      <dc:creator>szabodavidferen</dc:creator>
      <dc:date>2020-07-26T13:06:04Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5744P dev board - uart example does not work, why?</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5744P-dev-board-uart-example-does-not-work-why/m-p/1090590#M16428</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;most probably the exception will be called due to clock gated on LINFlex_0. Add below line to&amp;nbsp;peri_clock_gating()&lt;/P&gt;&lt;P&gt;MC_ME.PCTL204.B.RUN_CFG = 0x1; //LINFlexD_0: Select peripheral config RUN_PC[1]&lt;/P&gt;&lt;P&gt;Then use LINFlex0 functions&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;initLINFlexD_0(80,19200);&lt;/P&gt;&lt;P&gt;testLINFlexD_0(); /* Send test message to PC terminal.*/&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for(;;)&lt;BR /&gt; {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; echoLINFlexD_0();&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR, Petr&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jul 2020 07:45:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5744P-dev-board-uart-example-does-not-work-why/m-p/1090590#M16428</guid>
      <dc:creator>PetrS</dc:creator>
      <dc:date>2020-07-30T07:45:03Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5744P dev board - uart example does not work, why?</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5744P-dev-board-uart-example-does-not-work-why/m-p/1198091#M16832</link>
      <description>&lt;P&gt;Just wanted to share my experience after first 8 hours using Revision E board..&lt;/P&gt;&lt;P&gt;I now have the UART example working for LINFlexD_0 and LINFlexD_1.&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;LinFlexD_0&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;In addition to correcting the peripheral clock as described by&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/52961"&gt;@PetrS&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The example still crashes. This is because the code for&amp;nbsp;testLINFlexD_0 makes a reference to LINFlex1 for RX.&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;void testLINFlexD_0( void ) { /* Display message to terminal */&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;int i, size, j;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;uint8_t result[sizeof(message_0)-1] = {0};&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;size = sizeof(message_0);&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;/* Send to LINFlex_1. */&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;for (i = 0; i &amp;lt; size; i++) {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;txLINFlexD_0(message_0[i]); //Send from LINFlex_0&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;result[i] = &lt;STRONG&gt;rxLINFlexD_1()&lt;/STRONG&gt;; //Get the character from LINFlex_0&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Once this is also corrected, the example works. Note, that the example will only transmit one character then expects to receive a character.&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;LinFlexD_1&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;If using the default example, then the UART is not connected to the open SDA debug chip. Therefore you will have to use your own serial cable to connect to the terminal program. The signals will come out of connector J3.&amp;nbsp;However - what got me here was not realising that the board ships with Jumper J175 set to rout the signals to the end LIN connector. - This is 12v and not TTL RS232.&lt;/P&gt;&lt;P&gt;Swap jumper J175 and use signals from connector J3.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps someone else, as it took me a while to figure all these small issues out. I only found this post, when I tried to make a similar post.&amp;nbsp;&lt;/P&gt;&lt;P&gt;It is disappointing that the examples contain bugs and missing code. Especially as the examples I refer to were downloaded for the Revision E board (From the getting started web page). These should be updated to just work on the Revision E board, and a few comments relevant to the dev board would of made this a 10 minute task.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Dec 2020 12:47:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5744P-dev-board-uart-example-does-not-work-why/m-p/1198091#M16832</guid>
      <dc:creator>QES</dc:creator>
      <dc:date>2020-12-11T12:47:36Z</dc:date>
    </item>
  </channel>
</rss>

