<?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: bug in s32k processor expert flexcan clocks in S32 SDK</title>
    <link>https://community.nxp.com/t5/S32-SDK/bug-in-s32k-processor-expert-flexcan-clocks/m-p/721997#M243</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;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/AnaAldescu"&gt;AnaAldescu&lt;/A&gt;‌ and @&lt;SPAN class=""&gt;&lt;A _jive_internal="true" data-userid="211729" data-username="PetrS" href="https://community.nxp.com/people/PetrS"&gt;Petr Stancik&lt;/A&gt; &lt;span class="lia-inline-image-display-wrapper" image-alt="Mitarbeiter"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/123335i54FA9341C6A9F58F/image-size/large?v=v2&amp;amp;px=999" role="button" title="Mitarbeiter" alt="Mitarbeiter" /&gt;&lt;/span&gt; can you comment on this?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;thx&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 28 May 2018 09:55:35 GMT</pubDate>
    <dc:creator>momo12</dc:creator>
    <dc:date>2018-05-28T09:55:35Z</dc:date>
    <item>
      <title>bug in s32k processor expert flexcan clocks</title>
      <link>https://community.nxp.com/t5/S32-SDK/bug-in-s32k-processor-expert-flexcan-clocks/m-p/721994#M240</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I took the example code from flexcan_encrypted_s32k144 and got it running on s32k144 eval board. It works fine. 500 kbaud.&lt;/P&gt;&lt;P&gt;Then I tried to modify the project and chnged the PE clock source from SOSCDIV2 to SYS CLOCK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I get an error in Vector CANOE sayinbg bit error , error position 84.&lt;/P&gt;&lt;P&gt;Any idea why?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 May 2018 12:11:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-SDK/bug-in-s32k-processor-expert-flexcan-clocks/m-p/721994#M240</guid>
      <dc:creator>momo12</dc:creator>
      <dc:date>2018-05-25T12:11:26Z</dc:date>
    </item>
    <item>
      <title>Re: bug in s32k processor expert flexcan clocks</title>
      <link>https://community.nxp.com/t5/S32-SDK/bug-in-s32k-processor-expert-flexcan-clocks/m-p/721995#M241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, did you regenerate the new cbt segments from driver configuration with the new clock value ?!&lt;/P&gt;&lt;P&gt;Did you used pex for this or only in the register you modified the clock for PE ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 May 2018 14:04:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-SDK/bug-in-s32k-processor-expert-flexcan-clocks/m-p/721995#M241</guid>
      <dc:creator>alexandrunan</dc:creator>
      <dc:date>2018-05-25T14:04:07Z</dc:date>
    </item>
    <item>
      <title>Re: bug in s32k processor expert flexcan clocks</title>
      <link>https://community.nxp.com/t5/S32-SDK/bug-in-s32k-processor-expert-flexcan-clocks/m-p/721996#M242</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;i just switched SOSCDIV2 to SYS CLOCK in the component view of processor expert, regenerated all the files and compiled it. So I didnt change the code by hand myself.&lt;/P&gt;&lt;P&gt;Isnt this a bug in processor expert and the can library? Processor expert provides choices which will not work.&lt;/P&gt;&lt;P&gt;Could some one from nxp comment on this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 May 2018 11:38:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-SDK/bug-in-s32k-processor-expert-flexcan-clocks/m-p/721996#M242</guid>
      <dc:creator>momo12</dc:creator>
      <dc:date>2018-05-26T11:38:31Z</dc:date>
    </item>
    <item>
      <title>Re: bug in s32k processor expert flexcan clocks</title>
      <link>https://community.nxp.com/t5/S32-SDK/bug-in-s32k-processor-expert-flexcan-clocks/m-p/721997#M243</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;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/AnaAldescu"&gt;AnaAldescu&lt;/A&gt;‌ and @&lt;SPAN class=""&gt;&lt;A _jive_internal="true" data-userid="211729" data-username="PetrS" href="https://community.nxp.com/people/PetrS"&gt;Petr Stancik&lt;/A&gt; &lt;span class="lia-inline-image-display-wrapper" image-alt="Mitarbeiter"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/123335i54FA9341C6A9F58F/image-size/large?v=v2&amp;amp;px=999" role="button" title="Mitarbeiter" alt="Mitarbeiter" /&gt;&lt;/span&gt; can you comment on this?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;thx&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 May 2018 09:55:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-SDK/bug-in-s32k-processor-expert-flexcan-clocks/m-p/721997#M243</guid>
      <dc:creator>momo12</dc:creator>
      <dc:date>2018-05-28T09:55:35Z</dc:date>
    </item>
    <item>
      <title>Re: bug in s32k processor expert flexcan clocks</title>
      <link>https://community.nxp.com/t5/S32-SDK/bug-in-s32k-processor-expert-flexcan-clocks/m-p/721998#M244</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you provide exact values for Sys Clock and baud rate for CAN from your use case that not worked ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tested with other baud like 250K and 100K with sys clock at 48Mhz and worked ok, in same cases the frame was wrong decoded but the SYS clock is not precise like OSC Clock and can introduce some drifts. I not used CANoe, I have used another Logic Analyzer to scope and decode signal.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 May 2018 12:08:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-SDK/bug-in-s32k-processor-expert-flexcan-clocks/m-p/721998#M244</guid>
      <dc:creator>alexandrunan</dc:creator>
      <dc:date>2018-05-29T12:08:03Z</dc:date>
    </item>
    <item>
      <title>Re: bug in s32k processor expert flexcan clocks</title>
      <link>https://community.nxp.com/t5/S32-SDK/bug-in-s32k-processor-expert-flexcan-clocks/m-p/721999#M245</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;baudrate is 500k, sys clk , module clk and PE clock are all 48 MHz,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 May 2018 12:39:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-SDK/bug-in-s32k-processor-expert-flexcan-clocks/m-p/721999#M245</guid>
      <dc:creator>momo12</dc:creator>
      <dc:date>2018-05-29T12:39:04Z</dc:date>
    </item>
    <item>
      <title>Re: bug in s32k processor expert flexcan clocks</title>
      <link>https://community.nxp.com/t5/S32-SDK/bug-in-s32k-processor-expert-flexcan-clocks/m-p/722000#M246</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have tested and worked ok with the parameters from your case, as I added at some frames is failing to decode correctly !&amp;nbsp;&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/8535i2B884D67C1EDD2D2/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;&lt;/P&gt;&lt;P&gt;And Decoded Frame !&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/21665i0961A03454DCACED/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;As I sad the drift freq is about 10% calculated in bit-time. The Sys Clock is derived from FIRC clock.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 May 2018 12:57:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-SDK/bug-in-s32k-processor-expert-flexcan-clocks/m-p/722000#M246</guid>
      <dc:creator>alexandrunan</dc:creator>
      <dc:date>2018-05-29T12:57:47Z</dc:date>
    </item>
    <item>
      <title>Re: bug in s32k processor expert flexcan clocks</title>
      <link>https://community.nxp.com/t5/S32-SDK/bug-in-s32k-processor-expert-flexcan-clocks/m-p/722001#M247</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;which version of EAR SDK are you using? &lt;/P&gt;&lt;P&gt;The second screen shot: what is the name of the program?&lt;/P&gt;&lt;P&gt;So basically you are sayinf when using can and internal clock, there will be 10% drift?&lt;/P&gt;&lt;P&gt;Is this a constant drift? Any way to compensate that?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 May 2018 13:53:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-SDK/bug-in-s32k-processor-expert-flexcan-clocks/m-p/722001#M247</guid>
      <dc:creator>momo12</dc:creator>
      <dc:date>2018-05-29T13:53:06Z</dc:date>
    </item>
    <item>
      <title>Re: bug in s32k processor expert flexcan clocks</title>
      <link>https://community.nxp.com/t5/S32-SDK/bug-in-s32k-processor-expert-flexcan-clocks/m-p/722002#M248</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have used S32 SDK S32K14x BETA 1.9.0.&lt;/P&gt;&lt;P&gt;The program is DigiView, and is a Logic Analyzer(HW component).&amp;nbsp;&lt;/P&gt;&lt;P&gt;To compensate you need to check if&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;cbt segments are the best combination. You can set the time segments by hand for best matching by uncheck the option from PEX "Bitrate to time segments".&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 May 2018 14:31:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-SDK/bug-in-s32k-processor-expert-flexcan-clocks/m-p/722002#M248</guid>
      <dc:creator>alexandrunan</dc:creator>
      <dc:date>2018-05-29T14:31:25Z</dc:date>
    </item>
    <item>
      <title>Re: bug in s32k processor expert flexcan clocks</title>
      <link>https://community.nxp.com/t5/S32-SDK/bug-in-s32k-processor-expert-flexcan-clocks/m-p/722003#M249</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;&lt;EM&gt;&lt;STRONG&gt;1. I modified the project and in cancom1:flexcan component changed the PE clock source from SOSCDIV2 to SYS CLOCK. I regenerated all the source files with processor expert and flashed new firmware. &lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;My CAN interface from Vector reports an error: bit error , error position 84. &lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;Why? Processor expert should not provide options which will break CAN communication right? &lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As it was mentioned above about clock accuracy, &lt;SPAN style="font-size: 11.0pt;"&gt;I do not recommend you use bus clock for CAN-FD or CAN. &lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;The crystal oscillator clock should be selected whenever a tight tolerance (up to 0.1%) is required in the CAN bus timing. The crystal oscillator clock has better jitter performance than PLL-generated clocks.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;2. I started over again with flexcan_encrypted_s32k144 example project. 500 kbaud, every thign was fine. I modified the project and in cancom1:flexcan component changed the PE clock source from SOSCDIV2 to SYS CLOCK. Additionaly I disabled CAN FD and set the baudrate to 125k in cancom1:flexcan and in sbc_uja11691. I regenerated the files. &lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;Again vector canoe would show error frames only. I managed to get rid of the bug, by manually modifiying bitrate.preDivider from 23 to 22. The value value calculated by processor expert leads errornous frames. It seems that the calculation of .preDivider is wrong here. &lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;Would you please comment on this?&lt;/STRONG&gt; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will ask someone from SDK development team to provide some feedback to this question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 May 2018 12:20:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-SDK/bug-in-s32k-processor-expert-flexcan-clocks/m-p/722003#M249</guid>
      <dc:creator>martin_kovar</dc:creator>
      <dc:date>2018-05-30T12:20:07Z</dc:date>
    </item>
    <item>
      <title>Re: bug in s32k processor expert flexcan clocks</title>
      <link>https://community.nxp.com/t5/S32-SDK/bug-in-s32k-processor-expert-flexcan-clocks/m-p/722004#M250</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;here is feedback from SDK development team:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;As I mention some times the clock is not exact the value from the pex, in this case can have a little drift.&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Another mention is that the algorithm that generate the CBT segments from desired baud rate as input the frequency clock of PE engine is a general one, and some times can’t offer the best match values. Which in this case the user should check the CBT segments values.&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Wi will add a disclaimer related to the calculator in the documentation\release note.&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jun 2018 11:38:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-SDK/bug-in-s32k-processor-expert-flexcan-clocks/m-p/722004#M250</guid>
      <dc:creator>martin_kovar</dc:creator>
      <dc:date>2018-06-08T11:38:46Z</dc:date>
    </item>
    <item>
      <title>Re: bug in s32k processor expert flexcan clocks</title>
      <link>https://community.nxp.com/t5/S32-SDK/bug-in-s32k-processor-expert-flexcan-clocks/m-p/722005#M251</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;A class="jx-jive-macro-user" href="https://community.nxp.com/people/b55689"&gt;b55689&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/Nana"&gt;Nana&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;apparently this potential&amp;nbsp; bug is related to some thing else. when I uncheck "fast IRC regulator" in processore expert the automatically generated bit timings of flexcan work fine , and I get the right frequencies. &lt;/P&gt;&lt;P&gt;what is the "fast IRC regulator enable" bit good for? What does it do?&lt;/P&gt;&lt;P&gt;Why does it solve my issue?&lt;/P&gt;&lt;P&gt;Br&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Oct 2018 08:08:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-SDK/bug-in-s32k-processor-expert-flexcan-clocks/m-p/722005#M251</guid>
      <dc:creator>momo12</dc:creator>
      <dc:date>2018-10-01T08:08:17Z</dc:date>
    </item>
  </channel>
</rss>

