<?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: ticket in Digital Signal Controllers</title>
    <link>https://community.nxp.com/t5/Digital-Signal-Controllers/ticket/m-p/895511#M1617</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;could you share your project to reproduce the issue?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Lukas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 May 2019 09:00:39 GMT</pubDate>
    <dc:creator>lukaszadrapa</dc:creator>
    <dc:date>2019-05-02T09:00:39Z</dc:date>
    <item>
      <title>ticket</title>
      <link>https://community.nxp.com/t5/Digital-Signal-Controllers/ticket/m-p/895510#M1616</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a problem about the baud rate of linflexd_uart in MPC5746R.&lt;/P&gt;&lt;P&gt;I set the baud rate at 9600 but i can't get the 9600 baud rate information in Oscilloscope.&lt;/P&gt;&lt;P&gt;I didn't know what's problem with this. Can you help me ?&lt;/P&gt;&lt;P&gt;I want to send the date by MPC5746R and&amp;nbsp; receive the date by the computer.&lt;/P&gt;&lt;P&gt;This is my code about uart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;int main(void)&lt;BR /&gt;{&lt;BR /&gt; /* Write your local variable definition here */&lt;/P&gt;&lt;P&gt;#define BUF_LEN 1U&lt;/P&gt;&lt;P&gt;uint8_t test_mode[BUF_LEN];&lt;BR /&gt;uint8_t rxBuff[BUF_LEN + 1];&lt;BR /&gt;uint16_t RX_ok = 0x23U;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* Store configuration into structure */&lt;BR /&gt;CLOCK_SYS_Init(g_clockManConfigsArr, CLOCK_MANAGER_CONFIG_CNT, g_clockManCallbacksArr, CLOCK_MANAGER_CALLBACK_CNT);&lt;BR /&gt;/* Change clock settings */&lt;BR /&gt;CLOCK_SYS_UpdateConfiguration(0U, CLOCK_MANAGER_POLICY_AGREEMENT);&lt;BR /&gt;/* Initialize Pin Settings */&lt;BR /&gt;PINS_DRV_Init(NUM_OF_CONFIGURED_PINS, g_pin_mux_InitConfigArr);&lt;BR /&gt;/* Initialize Uart */&lt;BR /&gt;LINFLEXD_UART_DRV_Init(INST_LINFLEXD_UART1, &amp;amp;linflexd_uart1_State, &amp;amp;linflexd_uart1_InitConfig0);&lt;BR /&gt;LINFLEXD_UART_DRV_Init(INST_LINFLEXD_UART2, &amp;amp;linflexd_uart2_State, &amp;amp;linflexd_uart2_InitConfig0);&lt;/P&gt;&lt;P&gt;LINFLEXD_UART_DRV_SetBaudRate(INST_LINFLEXD_UART1,9600);&lt;BR /&gt;LINFLEXD_UART_DRV_SetBaudRate(INST_LINFLEXD_UART2,9600);&lt;BR /&gt;while(1) {&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;// LINFLEXD_UART_DRV_ReceiveDataBlocking(INST_LINFLEXD_UART1, (uint8_t*)rxBuff, BUF_LEN, 300U);&lt;/P&gt;&lt;P&gt;// test_mode[0]=rxBuff[0]+1;&lt;BR /&gt; test_mode[0]=0x61;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;// LINFLEXD_UART_DRV_SendDataBlocking(INST_LINFLEXD_UART2,(uint8_t*)test_mode, BUF_LEN,300U);&lt;BR /&gt; LINFLEXD_UART_DRV_SendData(INST_LINFLEXD_UART2, (uint8_t*)test_mode, BUF_LEN);&lt;BR /&gt;// if ( rxBuff[0] == 1)&lt;BR /&gt;// {&lt;BR /&gt;// RX_ok = 1;&lt;BR /&gt;// }&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&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/71746i7889EEAF96DB2626/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/71991iE2AABA9E8A2A58CB/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_3.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/71993i64F3E531C3E3B12F/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_3.png" alt="pastedImage_3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;My rose =0 , LINIBRR = 0x068 (Hex) = 104 d ,LIN_clk = 16Mhz.&lt;/P&gt;&lt;P&gt;baud rate = 16M/(16*104) = 9615 bit/s.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_4.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/71995i9D8BF711C7DABF12/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_4.png" alt="pastedImage_4.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;the width of date is 16.8us but 9600 baud rate is 104us.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Apr 2019 01:25:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Digital-Signal-Controllers/ticket/m-p/895510#M1616</guid>
      <dc:creator>dreamtea81125</dc:creator>
      <dc:date>2019-04-30T01:25:33Z</dc:date>
    </item>
    <item>
      <title>Re: ticket</title>
      <link>https://community.nxp.com/t5/Digital-Signal-Controllers/ticket/m-p/895511#M1617</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;could you share your project to reproduce the issue?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Lukas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 May 2019 09:00:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Digital-Signal-Controllers/ticket/m-p/895511#M1617</guid>
      <dc:creator>lukaszadrapa</dc:creator>
      <dc:date>2019-05-02T09:00:39Z</dc:date>
    </item>
    <item>
      <title>Re: ticket</title>
      <link>https://community.nxp.com/t5/Digital-Signal-Controllers/ticket/m-p/895512#M1618</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I investigated the issue and indeed there seems to be a confusion in the clock configuration.&lt;/P&gt;&lt;P&gt;According to the reference manual:&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/81614i5D8145E4122E04F5/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;LINFLEXD clock source can be changed through Device Configuration records, which are write-once and not configurable through the SDK. Nevertheless, the SDK only considers one of the two options, which apparently is not the&amp;nbsp;correct one on your side.&lt;/P&gt;&lt;P&gt;In your case, the LIN peripheral clock must be SYS_CLK.&lt;/P&gt;&lt;P&gt;As a workaround to get the desired baudrate you need to have the same frequency configured for SYS_CLK and LINFLEX instances (either change LIN clock source to PLL or change sys_clk source to IRCOSC):&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/81565i26906F7238EE70ED/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_3.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/81615i5C0923904443DA68/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_3.png" alt="pastedImage_3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;(in the latter case you'll get a warning, as LIN peripheral clock is supposed to be less than 80MHz).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another solution (a bit more complicated) would be to write the appropriate DCF entry to switch to the other LINFLEX clocking option (please check section&amp;nbsp;57.4.7.8 in the reference manual).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vlad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 May 2019 11:49:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Digital-Signal-Controllers/ticket/m-p/895512#M1618</guid>
      <dc:creator>B46399</dc:creator>
      <dc:date>2019-05-17T11:49:58Z</dc:date>
    </item>
  </channel>
</rss>

