<?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: Clk2Cs parameter on Tresor issue in S32K</title>
    <link>https://community.nxp.com/t5/S32K/Clk2Cs-parameter-on-Tresor-issue/m-p/1955166#M40976</link>
    <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/204675"&gt;@MVR&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;What EB Tresos version do you use?&lt;/P&gt;
&lt;P&gt;I can set 1.0E-4 in Tresos 29.&lt;/P&gt;
&lt;P&gt;I imported this example:&lt;/P&gt;
&lt;P&gt;...\SW32K3_S32M27x_RTD_R21-11_4.0.0_HF01\eclipse\plugins\Spi_TS_T40D34M40I0R0\examples\EBT\S32K3XX\Spi_Transfer_S32K344&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;</description>
    <pubDate>Mon, 16 Sep 2024 11:37:30 GMT</pubDate>
    <dc:creator>danielmartynek</dc:creator>
    <dc:date>2024-09-16T11:37:30Z</dc:date>
    <item>
      <title>Clk2Cs parameter on Tresor issue</title>
      <link>https://community.nxp.com/t5/S32K/Clk2Cs-parameter-on-Tresor-issue/m-p/1953712#M40905</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;I'm trying to create a SPI code for S32K344 microcontroller using Tresos.&lt;/P&gt;&lt;P&gt;On RTD I was able to create without error (.mex file), but when I try to do the same configuration on Tresos, I got error.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MVR_0-1726175031768.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/298909iE0C1B9EA68F6E33A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MVR_0-1726175031768.png" alt="MVR_0-1726175031768.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The error shows that 1.0E-4 is out of range. But in the description it allow&amp;nbsp;&lt;SPAN&gt;from 30ns up to 0.01s.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Can someone help me to fix this problem, please?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;MVR&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Sep 2024 21:06:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Clk2Cs-parameter-on-Tresor-issue/m-p/1953712#M40905</guid>
      <dc:creator>MVR</dc:creator>
      <dc:date>2024-09-12T21:06:44Z</dc:date>
    </item>
    <item>
      <title>Re: Clk2Cs parameter on Tresor issue</title>
      <link>https://community.nxp.com/t5/S32K/Clk2Cs-parameter-on-Tresor-issue/m-p/1953717#M40906</link>
      <description>&lt;P&gt;Some other notes:&lt;/P&gt;&lt;P&gt;RTD configuration (here it works):&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MVR_0-1726175550934.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/298910i4551DB0BFD3F1860/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MVR_0-1726175550934.png" alt="MVR_0-1726175550934.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I'm using this version of AUTOSAR MCAL:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MVR_1-1726175606623.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/298911iB0170D840C05625A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MVR_1-1726175606623.png" alt="MVR_1-1726175606623.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Sep 2024 21:13:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Clk2Cs-parameter-on-Tresor-issue/m-p/1953717#M40906</guid>
      <dc:creator>MVR</dc:creator>
      <dc:date>2024-09-12T21:13:49Z</dc:date>
    </item>
    <item>
      <title>Re: Clk2Cs parameter on Tresor issue</title>
      <link>https://community.nxp.com/t5/S32K/Clk2Cs-parameter-on-Tresor-issue/m-p/1955166#M40976</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/204675"&gt;@MVR&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;What EB Tresos version do you use?&lt;/P&gt;
&lt;P&gt;I can set 1.0E-4 in Tresos 29.&lt;/P&gt;
&lt;P&gt;I imported this example:&lt;/P&gt;
&lt;P&gt;...\SW32K3_S32M27x_RTD_R21-11_4.0.0_HF01\eclipse\plugins\Spi_TS_T40D34M40I0R0\examples\EBT\S32K3XX\Spi_Transfer_S32K344&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;</description>
      <pubDate>Mon, 16 Sep 2024 11:37:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Clk2Cs-parameter-on-Tresor-issue/m-p/1955166#M40976</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2024-09-16T11:37:30Z</dc:date>
    </item>
    <item>
      <title>Re: Clk2Cs parameter on Tresor issue</title>
      <link>https://community.nxp.com/t5/S32K/Clk2Cs-parameter-on-Tresor-issue/m-p/1955181#M40979</link>
      <description>&lt;P&gt;I'm using 29 as well. That's strange...&lt;/P&gt;</description>
      <pubDate>Mon, 16 Sep 2024 12:27:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Clk2Cs-parameter-on-Tresor-issue/m-p/1955181#M40979</guid>
      <dc:creator>MVR</dc:creator>
      <dc:date>2024-09-16T12:27:12Z</dc:date>
    </item>
    <item>
      <title>Re: Clk2Cs parameter on Tresor issue</title>
      <link>https://community.nxp.com/t5/S32K/Clk2Cs-parameter-on-Tresor-issue/m-p/1955233#M40981</link>
      <description>&lt;P&gt;I see now, I can reproduce it.&lt;/P&gt;
&lt;P&gt;The range that the tool reports depends on the selected clock and baudrate.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="danielmartynek_0-1726494688395.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/299320iD9EA04B39E2BF878/image-size/medium?v=v2&amp;amp;px=400" role="button" title="danielmartynek_0-1726494688395.png" alt="danielmartynek_0-1726494688395.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;So, if you change the baudrate, you should see that the range moves.&lt;/P&gt;
&lt;P&gt;The delay is configurable in the CCR register and it depends on TCR[PRESCALE].&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="danielmartynek_1-1726494830977.png" style="width: 524px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/299321i0E64BF989ED93337/image-dimensions/524x353?v=v2" width="524" height="353" role="button" title="danielmartynek_1-1726494830977.png" alt="danielmartynek_1-1726494830977.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;</description>
      <pubDate>Mon, 16 Sep 2024 13:55:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Clk2Cs-parameter-on-Tresor-issue/m-p/1955233#M40981</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2024-09-16T13:55:09Z</dc:date>
    </item>
    <item>
      <title>Re: Clk2Cs parameter on Tresor issue</title>
      <link>https://community.nxp.com/t5/S32K/Clk2Cs-parameter-on-Tresor-issue/m-p/1964551#M41476</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/160001"&gt;@danielmartynek&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It makes sense. But I set the same configuration (clock and baudrate) that I set on RTD (.mex file) but I can't define the same range, do you know why?&lt;/P&gt;&lt;P&gt;I'm trying to set&amp;nbsp;1.0E-5 in LPSPI_1, using 4.0E7 of clock (AIPS_SLOW_CLK) and 500000.0 of baudate.&lt;/P&gt;&lt;P&gt;Why on S32DS tool it works but on Tresos it doesn't work?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Sep 2024 14:26:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Clk2Cs-parameter-on-Tresor-issue/m-p/1964551#M41476</guid>
      <dc:creator>MVR</dc:creator>
      <dc:date>2024-09-30T14:26:43Z</dc:date>
    </item>
    <item>
      <title>Re: Clk2Cs parameter on Tresor issue</title>
      <link>https://community.nxp.com/t5/S32K/Clk2Cs-parameter-on-Tresor-issue/m-p/1964595#M41479</link>
      <description>&lt;P&gt;Take a look the error:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MVR_1-1727713820169.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/302033iB4A30F5AB7B5A31B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MVR_1-1727713820169.png" alt="MVR_1-1727713820169.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;And this is the clock configured:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MVR_2-1727713833135.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/302034iEF2DA7C190AFED25/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MVR_2-1727713833135.png" alt="MVR_2-1727713833135.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Sep 2024 16:31:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Clk2Cs-parameter-on-Tresor-issue/m-p/1964595#M41479</guid>
      <dc:creator>MVR</dc:creator>
      <dc:date>2024-09-30T16:31:06Z</dc:date>
    </item>
    <item>
      <title>Re: Clk2Cs parameter on Tresor issue</title>
      <link>https://community.nxp.com/t5/S32K/Clk2Cs-parameter-on-Tresor-issue/m-p/1965146#M41504</link>
      <description>&lt;P&gt;Can someone help me, please? I closed the ticket but I found a new issue.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Oct 2024 11:35:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Clk2Cs-parameter-on-Tresor-issue/m-p/1965146#M41504</guid>
      <dc:creator>MVR</dc:creator>
      <dc:date>2024-10-01T11:35:27Z</dc:date>
    </item>
    <item>
      <title>Re: Clk2Cs parameter on Tresor issue</title>
      <link>https://community.nxp.com/t5/S32K/Clk2Cs-parameter-on-Tresor-issue/m-p/1965585#M41527</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/204675"&gt;@MVR&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;It has been reported to the RTD development team.&lt;/P&gt;
&lt;P&gt;I will update the thread once I have some feedback.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR, Daniel&lt;/P&gt;</description>
      <pubDate>Wed, 02 Oct 2024 09:23:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Clk2Cs-parameter-on-Tresor-issue/m-p/1965585#M41527</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2024-10-02T09:23:16Z</dc:date>
    </item>
    <item>
      <title>Re: Clk2Cs parameter on Tresor issue</title>
      <link>https://community.nxp.com/t5/S32K/Clk2Cs-parameter-on-Tresor-issue/m-p/1968042#M41710</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/160001"&gt;@danielmartynek&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Should I open a new topic? Thank you.&lt;/P&gt;&lt;P&gt;MVR&lt;/P&gt;</description>
      <pubDate>Mon, 07 Oct 2024 17:11:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Clk2Cs-parameter-on-Tresor-issue/m-p/1968042#M41710</guid>
      <dc:creator>MVR</dc:creator>
      <dc:date>2024-10-07T17:11:09Z</dc:date>
    </item>
    <item>
      <title>Re: Clk2Cs parameter on Tresor issue</title>
      <link>https://community.nxp.com/t5/S32K/Clk2Cs-parameter-on-Tresor-issue/m-p/1968552#M41748</link>
      <description>&lt;P&gt;Hello &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/204675"&gt;@MVR&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;No need for a new thread.&lt;/P&gt;
&lt;P&gt;But this case is currently pending on the RTD team, and it might take some time before it is analyzed by them and even longer to update the SW if needed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Oct 2024 06:32:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Clk2Cs-parameter-on-Tresor-issue/m-p/1968552#M41748</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2024-10-08T06:32:21Z</dc:date>
    </item>
    <item>
      <title>Re: Clk2Cs parameter on Tresor issue</title>
      <link>https://community.nxp.com/t5/S32K/Clk2Cs-parameter-on-Tresor-issue/m-p/1969525#M41820</link>
      <description>&lt;P&gt;Hi &lt;SPAN&gt;MVR&lt;/SPAN&gt;,&lt;/P&gt;
&lt;P&gt;I'm Nam from NXP RTD, i'm in charge of topic from Daniel so i comment directly here to discuss easier.&lt;/P&gt;
&lt;P&gt;I saw the error came from Generate code, not Configure tool. The Configuration not report error, but the Generate value is not in range of delay time in PrescaledClock&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="NamLee_0-1728449262171.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/303619i10C4D298FA413790/image-size/medium?v=v2&amp;amp;px=400" role="button" title="NamLee_0-1728449262171.png" alt="NamLee_0-1728449262171.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;About the value of TimeClk2Cs, it's the value of delay time in SCKPCS field, in range of 1~255 clock cycle which calculated with Prescaler as the field in TCR register.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="NamLee_1-1728449452611.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/303620i6ABF04A2511AA052/image-size/medium?v=v2&amp;amp;px=400" role="button" title="NamLee_1-1728449452611.png" alt="NamLee_1-1728449452611.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The clock be calculated from Bus clock (which is 40M Hz if you not choosing Dual Clock of SPI), and the PrescalerValue is 2^(Prescaler) which calculated here:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="NamLee_2-1728449666330.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/303621i55BBB1B5CED9921B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="NamLee_2-1728449666330.png" alt="NamLee_2-1728449666330.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;With Busclock as 40M and DesiredBaudrate as 500K, the devide value should be 80, which mean the PrescalerValue is 1 (as 2^0) and the SckDiv will be 78.&lt;/P&gt;
&lt;P&gt;I tried to enable the DesiredBaudrateConfig with corresponding values, confirmed it's correct.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="NamLee_3-1728449852107.png" style="width: 349px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/303622i57CAFA56F0E62830/image-dimensions/349x160?v=v2" width="349" height="160" role="button" title="NamLee_3-1728449852107.png" alt="NamLee_3-1728449852107.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="NamLee_4-1728449896923.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/303623i8FFFF76A4F911FFA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="NamLee_4-1728449896923.png" alt="NamLee_4-1728449896923.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;So with PrescalerValue as 1, the PrescaledClock will equal with BusClock which is 40M Hz, and the Delaytime will have to in range of 2.5E-8 ~ 6.4E-6&lt;/P&gt;
&lt;P&gt;As my view, i don't see problem with EB Config in my side, compare with RM of SPI.&lt;/P&gt;
&lt;P&gt;I'm doubting about your configuration in DS (.mex file) in 2 points:&lt;/P&gt;
&lt;P&gt;- Do you use DesiredBaudrateConfig and apply another Baudrate different with 500K? This might change the value of PrescalerValue.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="NamLee_5-1728450323203.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/303625i23C0DF45A67E3EF6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="NamLee_5-1728450323203.png" alt="NamLee_5-1728450323203.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;- Your clock of SPI be changed somewhere.&lt;/P&gt;
&lt;P&gt;Normally, the BusClock will be the reference clock which configured in this node, refered to Mcu&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="NamLee_6-1728450567232.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/303626iF30186D894ACA768/image-size/medium?v=v2&amp;amp;px=400" role="button" title="NamLee_6-1728450567232.png" alt="NamLee_6-1728450567232.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;In case you enable DualClock mode, the BusClock will be&amp;nbsp;&lt;SPAN&gt;BusClockAlternate&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="NamLee_7-1728450761608.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/303627iAF4D33F362BFBF9F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="NamLee_7-1728450761608.png" alt="NamLee_7-1728450761608.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;You should not enable the AlternateClockRef node.&lt;/P&gt;
&lt;P&gt;Can you help me check these 2 points?&lt;/P&gt;
&lt;P&gt;I have few questions with your DS tool configuration:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- Do you use the same package RTD 4.0.0 HF01 in DS?&lt;/P&gt;
&lt;P&gt;- In DS when you configure the value of Clk2Cs, can you give me the range of this node (in DS) in this time?&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;- In generated code, can you give me value of LPSPI_CCR_SCKPCS?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thank you,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Nam.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Oct 2024 05:20:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Clk2Cs-parameter-on-Tresor-issue/m-p/1969525#M41820</guid>
      <dc:creator>NamLee</dc:creator>
      <dc:date>2024-10-09T05:20:03Z</dc:date>
    </item>
    <item>
      <title>Re: Clk2Cs parameter on Tresor issue</title>
      <link>https://community.nxp.com/t5/S32K/Clk2Cs-parameter-on-Tresor-issue/m-p/1969939#M41850</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/217474"&gt;@NamLee&lt;/a&gt;&amp;nbsp;, thank you by your support.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;First of all, I'm facing error before to generate the code on Tresos:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MVR_0-1728475125528.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/303748i42E9649B1F3FDDA9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MVR_0-1728475125528.png" alt="MVR_0-1728475125528.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Note:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;- I attached the SPI and MCU modules configuration.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;And answering your questions:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;- Do you use DesiredBaudrateConfig and apply another Baudrate different with 500K? This might change the value of PrescalerValue.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;R: I didn't use.&lt;/P&gt;&lt;P&gt;&lt;EM&gt;- In case you enable DualClock mode, the BusClock will be&amp;nbsp;BusClockAlternate&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;R: I didn't enabled this option&lt;/P&gt;&lt;P&gt;&lt;EM&gt;- Do you use the same package RTD 4.0.0 HF01 in DS?&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;R: Yes and also I tested with the lastest version "4.00 HF02_D2407", which I get the same error.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;- In DS when you configure the value of Clk2Cs, can you give me the range of this node (in DS) in this time?&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;R: Is it your request? -&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MVR_1-1728476156847.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/303750iBBFEBA2906CAB452/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MVR_1-1728476156847.png" alt="MVR_1-1728476156847.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;- In generated code, can you give me value of LPSPI_CCR_SCKPCS?&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;R:&lt;/P&gt;&lt;P&gt;Configuration that works (Generated by DS tool):&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MVR_2-1728476275975.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/303751i614EBD682C8F4CCA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MVR_2-1728476275975.png" alt="MVR_2-1728476275975.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Configuration that doesn't work for me (generated by Tresos, with &lt;LI-EMOJI id="lia_disappointed-face" title=":disappointed_face:"&gt;&lt;/LI-EMOJI&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MVR_3-1728476438676.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/303753iF5D7AFCF249BB580/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MVR_3-1728476438676.png" alt="MVR_3-1728476438676.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;MVR&lt;/P&gt;</description>
      <pubDate>Wed, 09 Oct 2024 12:22:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Clk2Cs-parameter-on-Tresor-issue/m-p/1969939#M41850</guid>
      <dc:creator>MVR</dc:creator>
      <dc:date>2024-10-09T12:22:26Z</dc:date>
    </item>
    <item>
      <title>Re: Clk2Cs parameter on Tresor issue</title>
      <link>https://community.nxp.com/t5/S32K/Clk2Cs-parameter-on-Tresor-issue/m-p/1969944#M41851</link>
      <description>Only complementing (I can't edit what I sent):&lt;BR /&gt;- Do you use DesiredBaudrateConfig and apply another Baudrate different with 500K? This might change the value of PrescalerValue.&lt;BR /&gt;&lt;BR /&gt;R: I didn't use "DesiredBaudrateConfig" and also I didn't try to apply another baudrate.</description>
      <pubDate>Wed, 09 Oct 2024 12:26:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Clk2Cs-parameter-on-Tresor-issue/m-p/1969944#M41851</guid>
      <dc:creator>MVR</dc:creator>
      <dc:date>2024-10-09T12:26:03Z</dc:date>
    </item>
    <item>
      <title>Re: Clk2Cs parameter on Tresor issue</title>
      <link>https://community.nxp.com/t5/S32K/Clk2Cs-parameter-on-Tresor-issue/m-p/1971297#M41895</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;MVR,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thank you so much for your detailed answers.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;It's not a configure tool issue because the value of node still in range, but invalid corresponding to the Clock and Baudrate.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="NamLee_0-1728543054753.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/303952i6D3FB71C3B7C940E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="NamLee_0-1728543054753.png" alt="NamLee_0-1728543054753.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Maybe in EB Tresos enable the feature Verify configuration everytime you change a node. It'll report errors before you hit generate.&lt;/P&gt;
&lt;P&gt;But it doesn't matter. The root cause is the delay time is longer than maximum range.&lt;/P&gt;
&lt;P&gt;I saw the value of CCR register, specially&amp;nbsp;&lt;EM&gt;LPSPI_CCR_SCKPCS:&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;-&amp;nbsp;&lt;/EM&gt;The SCKDIV is 78, which confirm that the calculation of ScalerValue is correct here. Your configuration is fine.&lt;/P&gt;
&lt;P&gt;- The SCKPCS/PCSSCK/DBT field is 255. Which is maximum of the range.&lt;/P&gt;
&lt;P&gt;From my guess, in DS, if the configured delay value is higher than the possible delay time amount, then the code gen will set 255 as maximum value for those delay times.&lt;/P&gt;
&lt;P&gt;I'll check the DS driver and code gen about this point.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;In additionally&lt;/STRONG&gt;, can you set the value of&amp;nbsp;SpiTimeClk2Cs in EB to 6.4E-6? I suppose the generated code will be the same (with the code from DS), and all sequences will run normally.&lt;/P&gt;
&lt;P&gt;Please help me to try this workaround. I'll also try in DS.&lt;/P&gt;
&lt;P&gt;Thank you,&lt;BR /&gt;Nam.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Oct 2024 10:40:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Clk2Cs-parameter-on-Tresor-issue/m-p/1971297#M41895</guid>
      <dc:creator>NamLee</dc:creator>
      <dc:date>2024-10-10T10:40:51Z</dc:date>
    </item>
    <item>
      <title>Re: Clk2Cs parameter on Tresor issue</title>
      <link>https://community.nxp.com/t5/S32K/Clk2Cs-parameter-on-Tresor-issue/m-p/1971334#M41897</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/217474"&gt;@NamLee&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;It makes sense, as soon as possible I will try with&amp;nbsp;&lt;SPAN&gt;6.4E-6. Now I don't have more the hardware because it is being used in other place. But when I get back it I will test.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Also I will try to measure it.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;MVR&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Oct 2024 11:42:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Clk2Cs-parameter-on-Tresor-issue/m-p/1971334#M41897</guid>
      <dc:creator>MVR</dc:creator>
      <dc:date>2024-10-10T11:42:02Z</dc:date>
    </item>
    <item>
      <title>Re: Clk2Cs parameter on Tresor issue</title>
      <link>https://community.nxp.com/t5/S32K/Clk2Cs-parameter-on-Tresor-issue/m-p/1973941#M42073</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;MVR,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I checked with RTD K3 4.0.0 RTM&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The flow quite the same, when the SpiTimeClkCs value as input for&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;GenerateExternalDeviceInfo function&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="NamLee_0-1728973719911.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/304676i26548BB4331C9D35/image-size/medium?v=v2&amp;amp;px=400" role="button" title="NamLee_0-1728973719911.png" alt="NamLee_0-1728973719911.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;And we have the same flow of generate value, as when the time is too high or too low, than the error be loged out.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="NamLee_1-1728973750771.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/304677iA07BF83221466D2F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="NamLee_1-1728973750771.png" alt="NamLee_1-1728973750771.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;In DS, when i set value Clk2Cs as 1.0E-5, the error reported. Because the range is maximum as 6.4E-6 (as calculation before)&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="NamLee_0-1728975092559.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/304681i6C3A1F5E79AD5CAB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="NamLee_0-1728975092559.png" alt="NamLee_0-1728975092559.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Same flow with Cs2Clk. when i put it as 1.0E-6, value is in range and no errors reported.&lt;/P&gt;
&lt;P&gt;To confirm about this, the generated values are matching with expectation&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="NamLee_2-1728974305810.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/304679i4DCD615C9B08E00A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="NamLee_2-1728974305810.png" alt="NamLee_2-1728974305810.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;1&amp;gt; The SCKDIV is 78 -&amp;gt; as Scaler is 78 as calculation before. I'm using SLOW_CLK as 40M Hz for LPSPI2 channel&lt;/P&gt;
&lt;P&gt;2&amp;gt; PCSSCK is 39 -&amp;gt; the delay time is 1/40M x (39 + 1) = 1.0E-6&lt;/P&gt;
&lt;P&gt;3&amp;gt; SCKPCS is 0 as initialized value of Device.&lt;SPAN&gt;OptimalSCKPCS&lt;/SPAN&gt;, only error log be updated.&lt;/P&gt;
&lt;P&gt;From my view, there's no problem with driver in both EB Tresos and DS tool.&lt;/P&gt;
&lt;P&gt;Thank you,&lt;/P&gt;
&lt;P&gt;Nam.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Oct 2024 06:51:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Clk2Cs-parameter-on-Tresor-issue/m-p/1973941#M42073</guid>
      <dc:creator>NamLee</dc:creator>
      <dc:date>2024-10-15T06:51:44Z</dc:date>
    </item>
    <item>
      <title>Re: Clk2Cs parameter on Tresor issue</title>
      <link>https://community.nxp.com/t5/S32K/Clk2Cs-parameter-on-Tresor-issue/m-p/1974475#M42101</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/217474"&gt;@NamLee&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;The SDK that I'm using is "S32K3_RTD_2_0_1_D2207_ASR_REL_4_4_REV_0000_20220707". So maybe this version has this problem, right?&lt;/P&gt;&lt;P&gt;So in the end, what value do these "255" represent?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MVR_0-1729011686838.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/304850i2EEAF8F2373B65AA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MVR_0-1729011686838.png" alt="MVR_0-1729011686838.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I know that this is the maximum value, but&amp;nbsp;how is the reverse calculation so I can find out the correct value to configure in Tresos?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;MVR&lt;/P&gt;</description>
      <pubDate>Tue, 15 Oct 2024 17:02:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Clk2Cs-parameter-on-Tresor-issue/m-p/1974475#M42101</guid>
      <dc:creator>MVR</dc:creator>
      <dc:date>2024-10-15T17:02:43Z</dc:date>
    </item>
    <item>
      <title>Re: Clk2Cs parameter on Tresor issue</title>
      <link>https://community.nxp.com/t5/S32K/Clk2Cs-parameter-on-Tresor-issue/m-p/1974742#M42123</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi MVR,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;In my tested RTM 4.0.0, the error will be reported as i explained. I thought you're using RTD 4.0.0 also? Which is RTD_updatesite version that you're using right now? I'm using&amp;nbsp;&lt;STRONG&gt;SW32K3_S32M27x_RTD_R21-11_4.0.0_D2311_DS_updatesite&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;One more point, please help me to check the implementation of&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;SpiTimeClk2Cs code gen. It should be located in file&amp;nbsp;&lt;STRONG&gt;C:\NXP\S32DS.3.5\eclipse\mcu_data\components\PlatformSDK_S32K3\Spi\Lpspi_Ip_PBcfg.c&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I think you're using an old version, and the design at that time as i said, when you put a value higher than maximum then the register value will be set as 255, as in possible range.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The number stands for delay time required between Clock and Cs signal.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;E.g: in my test, PCSSCK is 39 -&amp;gt; the delay time is 1/40M x (39 + 1) = 1.0E-6&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;With Busclock for LPSPI2 is 40M Hz.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;So in 4.0.0, if you wanna keep the maximum delay time (as current sequence) then you just put the maximum value for those nodes (as &lt;STRONG&gt;6.4E-6&lt;/STRONG&gt;)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;My point is, this is correct implementation in current design driver.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thank you,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Nam.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Oct 2024 02:37:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Clk2Cs-parameter-on-Tresor-issue/m-p/1974742#M42123</guid>
      <dc:creator>NamLee</dc:creator>
      <dc:date>2024-10-16T02:37:31Z</dc:date>
    </item>
    <item>
      <title>Re: Clk2Cs parameter on Tresor issue</title>
      <link>https://community.nxp.com/t5/S32K/Clk2Cs-parameter-on-Tresor-issue/m-p/1975460#M42174</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/217474"&gt;@NamLee&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using SW32K3_RTD_4.4_2.0.1_DS_updatesite_D2207.&lt;/P&gt;&lt;P&gt;The problem is that when I define&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;1.0E-6, my application doesn't work... But when I define&amp;nbsp;&amp;nbsp;1.0E-5 like the picture, it works but the SSCK is 255...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;As I could understand with this old version, when selected a value out of range it is automatically set 255, right? So in the new version, which value should I set for my application works? Should be&amp;nbsp;1/40M x (255 + 1) = 6.4E-6?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I still doesn't have the hardware to test, but as soon as I receive back the hardware, I will test again.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;MVR.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Oct 2024 20:17:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Clk2Cs-parameter-on-Tresor-issue/m-p/1975460#M42174</guid>
      <dc:creator>MVR</dc:creator>
      <dc:date>2024-10-16T20:17:47Z</dc:date>
    </item>
  </channel>
</rss>

