<?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>T-SeriesのトピックConfigure UART for T4240RDB at Lauterbach Trace32 Script</title>
    <link>https://community.nxp.com/t5/T-Series/Configure-UART-for-T4240RDB-at-Lauterbach-Trace32-Script/m-p/852026#M2850</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using Lauterbach Trace32 Script for&amp;nbsp;&lt;STRONG&gt;UART&lt;/STRONG&gt; in &lt;STRONG&gt;t4240rdb&lt;/STRONG&gt; machine. But, I am not getting&lt;STRONG&gt; Uart baud rate&lt;/STRONG&gt; properly.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to you guys suggestion for configure&amp;nbsp;&lt;STRONG&gt;UART&lt;/STRONG&gt; register.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The script flow,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DO ~~~~/demo_set_rcw_rev1.cmm&lt;/P&gt;&lt;P&gt;;Calculation of UART settings for 115200Bd&lt;BR /&gt; &amp;amp;SYS_PLL_RAT="((data.long(ANC:iobase.address()+0xE0100)&amp;gt;&amp;gt;25.)&amp;amp;0x0000001F)" ;Get PLL ratio from RCW for&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;correct DUART settings&lt;BR /&gt; &amp;amp;UARTH=0x0&lt;BR /&gt; &amp;amp;UARTL=0x0&lt;BR /&gt; IF &amp;amp;SYS_PLL_RAT==0x4&lt;BR /&gt; &amp;amp;UARTL=0x48&lt;BR /&gt; ELSE IF &amp;amp;SYS_PLL_RAT==0x5&lt;BR /&gt; &amp;amp;UARTL=0x5A&lt;BR /&gt; ELSE IF &amp;amp;SYS_PLL_RAT==0x6&lt;BR /&gt; &amp;amp;UARTL=0x6D&lt;BR /&gt; ELSE IF &amp;amp;SYS_PLL_RAT==0x7&lt;BR /&gt; &amp;amp;UARTL=0x7F&lt;BR /&gt; ELSE IF &amp;amp;SYS_PLL_RAT==0x8&lt;BR /&gt; &amp;amp;UARTL=0x91&lt;BR /&gt; ELSE IF &amp;amp;SYS_PLL_RAT==0x9&lt;BR /&gt; &amp;amp;UARTL=0xA3&lt;BR /&gt; ELSE IF &amp;amp;SYS_PLL_RAT==0xA&lt;BR /&gt; &amp;amp;UARTL=0xB5&lt;BR /&gt; ELSE IF &amp;amp;SYS_PLL_RAT==0xB&lt;BR /&gt; &amp;amp;UARTL=0xC7&lt;BR /&gt; ELSE IF &amp;amp;SYS_PLL_RAT==0xC&lt;BR /&gt; &amp;amp;UARTL=0xD9&lt;BR /&gt; ELSE IF &amp;amp;SYS_PLL_RAT==0xD&lt;BR /&gt; &amp;amp;UARTL=0xEB&lt;BR /&gt; ELSE IF &amp;amp;SYS_PLL_RAT==0xE&lt;BR /&gt; &amp;amp;UARTL=0xFD&lt;BR /&gt; ELSE IF &amp;amp;SYS_PLL_RAT==0xF&lt;BR /&gt; &amp;amp;UARTL=0x10F&lt;BR /&gt; ELSE IF &amp;amp;SYS_PLL_RAT==0x10&lt;BR /&gt; &amp;amp;UARTL=0x121&lt;/P&gt;&lt;P&gt;ELSE&lt;BR /&gt; (&lt;BR /&gt; PRINT %ERROR "ERROR: invalid RCW SYS_PLL_RAT settings."&lt;BR /&gt; STOP&lt;BR /&gt; )&lt;/P&gt;&lt;P&gt;;configure DUART1 - UART1&lt;BR /&gt; Data.Set ANC:IOBASE()+0x11C501 %Byte 0x00&lt;BR /&gt; Data.Set ANC:IOBASE()+0x11C503 %Byte 0x83&lt;BR /&gt; Data.Set ANC:IOBASE()+0x11C500 %Byte 0x00&lt;BR /&gt; Data.Set ANC:IOBASE()+0x11C501 %Byte 0x00&lt;BR /&gt; Data.Set ANC:IOBASE()+0x11C503 %Byte 0x03&lt;BR /&gt; Data.Set ANC:IOBASE()+0x11C504 %Byte 0x03&lt;BR /&gt; Data.Set ANC:IOBASE()+0x11C502 %Byte 0x07&lt;BR /&gt; Data.Set ANC:IOBASE()+0x11C503 %Byte 0x83&lt;BR /&gt; Data.Set ANC:IOBASE()+0x11C500 %Byte &amp;amp;UARTL&lt;BR /&gt; Data.Set ANC:IOBASE()+0x11C501 %Byte &amp;amp;UARTH&lt;BR /&gt; Data.Set ANC:IOBASE()+0x11C503 %Byte 0x03&lt;/P&gt;&lt;P&gt;;configure DUART1 - UART2&lt;BR /&gt; Data.Set ANC:IOBASE()+0x11C601 %Byte 0x00&lt;BR /&gt; Data.Set ANC:IOBASE()+0x11C603 %Byte 0x83&lt;BR /&gt; Data.Set ANC:IOBASE()+0x11C600 %Byte 0x00&lt;BR /&gt; Data.Set ANC:IOBASE()+0x11C601 %Byte 0x00&lt;BR /&gt; Data.Set ANC:IOBASE()+0x11C603 %Byte 0x03&lt;BR /&gt; Data.Set ANC:IOBASE()+0x11C604 %Byte 0x03&lt;BR /&gt; Data.Set ANC:IOBASE()+0x11C602 %Byte 0x07&lt;BR /&gt; Data.Set ANC:IOBASE()+0x11C603 %Byte 0x83&lt;BR /&gt; Data.Set ANC:IOBASE()+0x11C600 %Byte &amp;amp;UARTL&lt;BR /&gt; Data.Set ANC:IOBASE()+0x11C601 %Byte &amp;amp;UARTH&lt;BR /&gt; Data.Set ANC:IOBASE()+0x11C603 %Byte 0x03&lt;/P&gt;&lt;P&gt;;configure DUART2 - UART1&lt;BR /&gt; Data.Set ANC:IOBASE()+0x11D501 %Byte 0x00&lt;BR /&gt; Data.Set ANC:IOBASE()+0x11D503 %Byte 0x83&lt;BR /&gt; Data.Set ANC:IOBASE()+0x11D500 %Byte 0x00&lt;BR /&gt; Data.Set ANC:IOBASE()+0x11D501 %Byte 0x00&lt;BR /&gt; Data.Set ANC:IOBASE()+0x11D503 %Byte 0x03&lt;BR /&gt; Data.Set ANC:IOBASE()+0x11D504 %Byte 0x03&lt;BR /&gt; Data.Set ANC:IOBASE()+0x11D502 %Byte 0x07&lt;BR /&gt; Data.Set ANC:IOBASE()+0x11D503 %Byte 0x83&lt;BR /&gt; Data.Set ANC:IOBASE()+0x11D500 %Byte &amp;amp;UARTL&lt;BR /&gt; Data.Set ANC:IOBASE()+0x11D501 %Byte &amp;amp;UARTH&lt;BR /&gt; Data.Set ANC:IOBASE()+0x11D503 %Byte 0x03&lt;/P&gt;&lt;P&gt;;configure DUART2 - UART2&lt;BR /&gt; Data.Set ANC:IOBASE()+0x11D601 %Byte 0x00&lt;BR /&gt; Data.Set ANC:IOBASE()+0x11D603 %Byte 0x83&lt;BR /&gt; Data.Set ANC:IOBASE()+0x11D600 %Byte 0x00&lt;BR /&gt; Data.Set ANC:IOBASE()+0x11D601 %Byte 0x00&lt;BR /&gt; Data.Set ANC:IOBASE()+0x11D603 %Byte 0x03&lt;/P&gt;&lt;P&gt;Data.Set ANC:IOBASE()+0x11D604 %Byte 0x03&lt;BR /&gt; Data.Set ANC:IOBASE()+0x11D602 %Byte 0x07&lt;BR /&gt; Data.Set ANC:IOBASE()+0x11D603 %Byte 0x83&lt;BR /&gt; Data.Set ANC:IOBASE()+0x11D600 %Byte &amp;amp;UARTL&lt;BR /&gt; Data.Set ANC:IOBASE()+0x11D601 %Byte &amp;amp;UARTH&lt;BR /&gt; Data.Set ANC:IOBASE()+0x11D603 %Byte 0x03&lt;/P&gt;&lt;P&gt;;print message DUART1 - UART1&lt;BR /&gt; Data.Out ANC:IOBASE()+0x11C500 %Byte 0x0D 0x0A&lt;BR /&gt; Data.Out ANC:IOBASE()+0x11C500 %Byte 0x0D 0x0A&lt;BR /&gt; Data.Out ANC:IOBASE()+0x11C500 %Byte "This text is printed via the TRACE32 configuration script for T4240QDS" 0x0D 0x0A&lt;BR /&gt; Data.Out ANC:IOBASE()+0x11C500 %Byte "===================================================================" 0x0D 0x0A&lt;BR /&gt; Data.Out ANC:IOBASE()+0x11C500 %Byte 0x0D 0x0A&lt;BR /&gt; Data.Out ANC:IOBASE()+0x11C500 %Byte 0x0D 0x0A&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 for All Your Help..........!&lt;/P&gt;&lt;P&gt;Regards, VinothS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Jan 2019 13:55:13 GMT</pubDate>
    <dc:creator>vinothkumars</dc:creator>
    <dc:date>2019-01-03T13:55:13Z</dc:date>
    <item>
      <title>Configure UART for T4240RDB at Lauterbach Trace32 Script</title>
      <link>https://community.nxp.com/t5/T-Series/Configure-UART-for-T4240RDB-at-Lauterbach-Trace32-Script/m-p/852026#M2850</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using Lauterbach Trace32 Script for&amp;nbsp;&lt;STRONG&gt;UART&lt;/STRONG&gt; in &lt;STRONG&gt;t4240rdb&lt;/STRONG&gt; machine. But, I am not getting&lt;STRONG&gt; Uart baud rate&lt;/STRONG&gt; properly.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to you guys suggestion for configure&amp;nbsp;&lt;STRONG&gt;UART&lt;/STRONG&gt; register.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The script flow,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DO ~~~~/demo_set_rcw_rev1.cmm&lt;/P&gt;&lt;P&gt;;Calculation of UART settings for 115200Bd&lt;BR /&gt; &amp;amp;SYS_PLL_RAT="((data.long(ANC:iobase.address()+0xE0100)&amp;gt;&amp;gt;25.)&amp;amp;0x0000001F)" ;Get PLL ratio from RCW for&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;correct DUART settings&lt;BR /&gt; &amp;amp;UARTH=0x0&lt;BR /&gt; &amp;amp;UARTL=0x0&lt;BR /&gt; IF &amp;amp;SYS_PLL_RAT==0x4&lt;BR /&gt; &amp;amp;UARTL=0x48&lt;BR /&gt; ELSE IF &amp;amp;SYS_PLL_RAT==0x5&lt;BR /&gt; &amp;amp;UARTL=0x5A&lt;BR /&gt; ELSE IF &amp;amp;SYS_PLL_RAT==0x6&lt;BR /&gt; &amp;amp;UARTL=0x6D&lt;BR /&gt; ELSE IF &amp;amp;SYS_PLL_RAT==0x7&lt;BR /&gt; &amp;amp;UARTL=0x7F&lt;BR /&gt; ELSE IF &amp;amp;SYS_PLL_RAT==0x8&lt;BR /&gt; &amp;amp;UARTL=0x91&lt;BR /&gt; ELSE IF &amp;amp;SYS_PLL_RAT==0x9&lt;BR /&gt; &amp;amp;UARTL=0xA3&lt;BR /&gt; ELSE IF &amp;amp;SYS_PLL_RAT==0xA&lt;BR /&gt; &amp;amp;UARTL=0xB5&lt;BR /&gt; ELSE IF &amp;amp;SYS_PLL_RAT==0xB&lt;BR /&gt; &amp;amp;UARTL=0xC7&lt;BR /&gt; ELSE IF &amp;amp;SYS_PLL_RAT==0xC&lt;BR /&gt; &amp;amp;UARTL=0xD9&lt;BR /&gt; ELSE IF &amp;amp;SYS_PLL_RAT==0xD&lt;BR /&gt; &amp;amp;UARTL=0xEB&lt;BR /&gt; ELSE IF &amp;amp;SYS_PLL_RAT==0xE&lt;BR /&gt; &amp;amp;UARTL=0xFD&lt;BR /&gt; ELSE IF &amp;amp;SYS_PLL_RAT==0xF&lt;BR /&gt; &amp;amp;UARTL=0x10F&lt;BR /&gt; ELSE IF &amp;amp;SYS_PLL_RAT==0x10&lt;BR /&gt; &amp;amp;UARTL=0x121&lt;/P&gt;&lt;P&gt;ELSE&lt;BR /&gt; (&lt;BR /&gt; PRINT %ERROR "ERROR: invalid RCW SYS_PLL_RAT settings."&lt;BR /&gt; STOP&lt;BR /&gt; )&lt;/P&gt;&lt;P&gt;;configure DUART1 - UART1&lt;BR /&gt; Data.Set ANC:IOBASE()+0x11C501 %Byte 0x00&lt;BR /&gt; Data.Set ANC:IOBASE()+0x11C503 %Byte 0x83&lt;BR /&gt; Data.Set ANC:IOBASE()+0x11C500 %Byte 0x00&lt;BR /&gt; Data.Set ANC:IOBASE()+0x11C501 %Byte 0x00&lt;BR /&gt; Data.Set ANC:IOBASE()+0x11C503 %Byte 0x03&lt;BR /&gt; Data.Set ANC:IOBASE()+0x11C504 %Byte 0x03&lt;BR /&gt; Data.Set ANC:IOBASE()+0x11C502 %Byte 0x07&lt;BR /&gt; Data.Set ANC:IOBASE()+0x11C503 %Byte 0x83&lt;BR /&gt; Data.Set ANC:IOBASE()+0x11C500 %Byte &amp;amp;UARTL&lt;BR /&gt; Data.Set ANC:IOBASE()+0x11C501 %Byte &amp;amp;UARTH&lt;BR /&gt; Data.Set ANC:IOBASE()+0x11C503 %Byte 0x03&lt;/P&gt;&lt;P&gt;;configure DUART1 - UART2&lt;BR /&gt; Data.Set ANC:IOBASE()+0x11C601 %Byte 0x00&lt;BR /&gt; Data.Set ANC:IOBASE()+0x11C603 %Byte 0x83&lt;BR /&gt; Data.Set ANC:IOBASE()+0x11C600 %Byte 0x00&lt;BR /&gt; Data.Set ANC:IOBASE()+0x11C601 %Byte 0x00&lt;BR /&gt; Data.Set ANC:IOBASE()+0x11C603 %Byte 0x03&lt;BR /&gt; Data.Set ANC:IOBASE()+0x11C604 %Byte 0x03&lt;BR /&gt; Data.Set ANC:IOBASE()+0x11C602 %Byte 0x07&lt;BR /&gt; Data.Set ANC:IOBASE()+0x11C603 %Byte 0x83&lt;BR /&gt; Data.Set ANC:IOBASE()+0x11C600 %Byte &amp;amp;UARTL&lt;BR /&gt; Data.Set ANC:IOBASE()+0x11C601 %Byte &amp;amp;UARTH&lt;BR /&gt; Data.Set ANC:IOBASE()+0x11C603 %Byte 0x03&lt;/P&gt;&lt;P&gt;;configure DUART2 - UART1&lt;BR /&gt; Data.Set ANC:IOBASE()+0x11D501 %Byte 0x00&lt;BR /&gt; Data.Set ANC:IOBASE()+0x11D503 %Byte 0x83&lt;BR /&gt; Data.Set ANC:IOBASE()+0x11D500 %Byte 0x00&lt;BR /&gt; Data.Set ANC:IOBASE()+0x11D501 %Byte 0x00&lt;BR /&gt; Data.Set ANC:IOBASE()+0x11D503 %Byte 0x03&lt;BR /&gt; Data.Set ANC:IOBASE()+0x11D504 %Byte 0x03&lt;BR /&gt; Data.Set ANC:IOBASE()+0x11D502 %Byte 0x07&lt;BR /&gt; Data.Set ANC:IOBASE()+0x11D503 %Byte 0x83&lt;BR /&gt; Data.Set ANC:IOBASE()+0x11D500 %Byte &amp;amp;UARTL&lt;BR /&gt; Data.Set ANC:IOBASE()+0x11D501 %Byte &amp;amp;UARTH&lt;BR /&gt; Data.Set ANC:IOBASE()+0x11D503 %Byte 0x03&lt;/P&gt;&lt;P&gt;;configure DUART2 - UART2&lt;BR /&gt; Data.Set ANC:IOBASE()+0x11D601 %Byte 0x00&lt;BR /&gt; Data.Set ANC:IOBASE()+0x11D603 %Byte 0x83&lt;BR /&gt; Data.Set ANC:IOBASE()+0x11D600 %Byte 0x00&lt;BR /&gt; Data.Set ANC:IOBASE()+0x11D601 %Byte 0x00&lt;BR /&gt; Data.Set ANC:IOBASE()+0x11D603 %Byte 0x03&lt;/P&gt;&lt;P&gt;Data.Set ANC:IOBASE()+0x11D604 %Byte 0x03&lt;BR /&gt; Data.Set ANC:IOBASE()+0x11D602 %Byte 0x07&lt;BR /&gt; Data.Set ANC:IOBASE()+0x11D603 %Byte 0x83&lt;BR /&gt; Data.Set ANC:IOBASE()+0x11D600 %Byte &amp;amp;UARTL&lt;BR /&gt; Data.Set ANC:IOBASE()+0x11D601 %Byte &amp;amp;UARTH&lt;BR /&gt; Data.Set ANC:IOBASE()+0x11D603 %Byte 0x03&lt;/P&gt;&lt;P&gt;;print message DUART1 - UART1&lt;BR /&gt; Data.Out ANC:IOBASE()+0x11C500 %Byte 0x0D 0x0A&lt;BR /&gt; Data.Out ANC:IOBASE()+0x11C500 %Byte 0x0D 0x0A&lt;BR /&gt; Data.Out ANC:IOBASE()+0x11C500 %Byte "This text is printed via the TRACE32 configuration script for T4240QDS" 0x0D 0x0A&lt;BR /&gt; Data.Out ANC:IOBASE()+0x11C500 %Byte "===================================================================" 0x0D 0x0A&lt;BR /&gt; Data.Out ANC:IOBASE()+0x11C500 %Byte 0x0D 0x0A&lt;BR /&gt; Data.Out ANC:IOBASE()+0x11C500 %Byte 0x0D 0x0A&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 for All Your Help..........!&lt;/P&gt;&lt;P&gt;Regards, VinothS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jan 2019 13:55:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/T-Series/Configure-UART-for-T4240RDB-at-Lauterbach-Trace32-Script/m-p/852026#M2850</guid>
      <dc:creator>vinothkumars</dc:creator>
      <dc:date>2019-01-03T13:55:13Z</dc:date>
    </item>
    <item>
      <title>Re: Configure UART for T4240RDB at Lauterbach Trace32 Script</title>
      <link>https://community.nxp.com/t5/T-Series/Configure-UART-for-T4240RDB-at-Lauterbach-Trace32-Script/m-p/852027#M2851</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I do not see anything obviously incorrect in your script. This part:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;ELSE IF &amp;amp;SYS_PLL_RAT==0xA&lt;BR /&gt; &amp;amp;UARTL=0xB5&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Is correctly set, in accordance with Table 17-3 of T4240 Reference Manual.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please dump actual register settings to verify these values were correctly set.&lt;/P&gt;&lt;P&gt;Please verify resulting transmission frequency by scope, how it differs from calculated frequency.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Alexander&lt;BR /&gt;TIC&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, 04 Jan 2019 10:24:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/T-Series/Configure-UART-for-T4240RDB-at-Lauterbach-Trace32-Script/m-p/852027#M2851</guid>
      <dc:creator>alexander_yakov</dc:creator>
      <dc:date>2019-01-04T10:24:04Z</dc:date>
    </item>
  </channel>
</rss>

