<?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: S32K312 FlexCAN not working without debugger in S32K</title>
    <link>https://community.nxp.com/t5/S32K/S32K312-FlexCAN-not-working-without-debugger/m-p/1635121#M22182</link>
    <description>&lt;P&gt;Hi, I found the solution. After changing the clock speed to HSE everything works as expected.&lt;/P&gt;</description>
    <pubDate>Tue, 18 Apr 2023 06:42:53 GMT</pubDate>
    <dc:creator>rakketi</dc:creator>
    <dc:date>2023-04-18T06:42:53Z</dc:date>
    <item>
      <title>S32K312 FlexCAN not working without debugger</title>
      <link>https://community.nxp.com/t5/S32K/S32K312-FlexCAN-not-working-without-debugger/m-p/1633750#M22125</link>
      <description>&lt;P&gt;I'm using an S32K312 EVB and trying to use FlexCAN as bare metal.&lt;/P&gt;&lt;P&gt;Everything works fine when I run the EVB with debugger mode in S32DS. All communication and GPIOs work as intended.&lt;/P&gt;&lt;P&gt;But if I exit S32DS debug mode and reset the EVB so the EVB is running by itself, CAN communication does not work.&lt;/P&gt;&lt;P&gt;I've added a LED to be blinking so I know that I'm my application is running. I'm guessing I'm missing something simple, but I cannot see it. I haven't changed the linkers or startup code.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Apr 2023 08:21:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K312-FlexCAN-not-working-without-debugger/m-p/1633750#M22125</guid>
      <dc:creator>rakketi</dc:creator>
      <dc:date>2023-04-14T08:21:25Z</dc:date>
    </item>
    <item>
      <title>Re: S32K312 FlexCAN not working without debugger</title>
      <link>https://community.nxp.com/t5/S32K/S32K312-FlexCAN-not-working-without-debugger/m-p/1633950#M22139</link>
      <description>&lt;P&gt;Hi Dawid,&lt;/P&gt;
&lt;P&gt;What debugger do you use? Can you attach the debugger back to the running MCU, halt it and check the state of it?&lt;/P&gt;
&lt;P&gt;What does it mean the CAN communication does not work? Can you scope the CAN bus?&lt;/P&gt;
&lt;P&gt;The debugger can typically disable the WDOG or initialize SRAM ECC.&lt;/P&gt;
&lt;P&gt;Something similar was reported in the thread below, and the PLL was the issue:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.nxp.com/t5/S32K/The-program-runs-normally-with-a-debugger-but-the-program-runs/td-p/1566869" target="_blank"&gt;https://community.nxp.com/t5/S32K/The-program-runs-normally-with-a-debugger-but-the-program-runs/td-p/1566869&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR, Daniel&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>Fri, 14 Apr 2023 14:11:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K312-FlexCAN-not-working-without-debugger/m-p/1633950#M22139</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2023-04-14T14:11:45Z</dc:date>
    </item>
    <item>
      <title>Re: S32K312 FlexCAN not working without debugger</title>
      <link>https://community.nxp.com/t5/S32K/S32K312-FlexCAN-not-working-without-debugger/m-p/1634650#M22171</link>
      <description>&lt;P&gt;Hi Daniel, we are using the PEmicro mutlilink unviversalFX debugger. When I attach the debugger to a running target it works as normal again but not before.&lt;/P&gt;&lt;P&gt;I added a send CAN frame after CAN init and I can see that we send that frame every 1 second which means that we reset the MCU every second. It should be related to watchdog I guess? I don't see why SRAM or PLL resets every 1 second.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I added a watchdog with Swt driver and kicked it when needed. The watchdog resets the ECU much quicker if I don't kick the watchdog to confirm that the Swt is OK.&amp;nbsp;&lt;/P&gt;&lt;P&gt;cansendinit.png - CAN send from the init function every second.&lt;/P&gt;&lt;P&gt;without_SWT.png - Resets the MCU much quicker since the watchdog is timeout window is small and we don't kick the dog.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Apr 2023 11:57:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K312-FlexCAN-not-working-without-debugger/m-p/1634650#M22171</guid>
      <dc:creator>rakketi</dc:creator>
      <dc:date>2023-04-17T11:57:46Z</dc:date>
    </item>
    <item>
      <title>Re: S32K312 FlexCAN not working without debugger</title>
      <link>https://community.nxp.com/t5/S32K/S32K312-FlexCAN-not-working-without-debugger/m-p/1635121#M22182</link>
      <description>&lt;P&gt;Hi, I found the solution. After changing the clock speed to HSE everything works as expected.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Apr 2023 06:42:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K312-FlexCAN-not-working-without-debugger/m-p/1635121#M22182</guid>
      <dc:creator>rakketi</dc:creator>
      <dc:date>2023-04-18T06:42:53Z</dc:date>
    </item>
  </channel>
</rss>

