<?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: CAN Init in S32K</title>
    <link>https://community.nxp.com/t5/S32K/CAN-Init/m-p/1378113#M12988</link>
    <description>&lt;P&gt;I made a simple test project with the problem I have. Every 10ms a CAN message is send. The CAN init is called in the main in two possible ways. If I call all functions directly in the main, everything works as it should. But If I put the CAN init in a function called CAN_Config() and call this in the main, I get a message with a standard ID instead of an extended.&lt;/P&gt;&lt;P&gt;Could you please check if you have the same problem with this project?&lt;/P&gt;</description>
    <pubDate>Mon, 29 Nov 2021 09:39:51 GMT</pubDate>
    <dc:creator>Michael_Br</dc:creator>
    <dc:date>2021-11-29T09:39:51Z</dc:date>
    <item>
      <title>CAN Init</title>
      <link>https://community.nxp.com/t5/S32K/CAN-Init/m-p/1377017#M12932</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have a S32K146 an made a project using the SDK and the processor expert. The project has a timer pal and a CAN pal. I initialize the CAN pal in the main function. One message buffer for receive and one for tranceive messages. I tried to send messages with standard and extended IDs. No problem so far.&lt;/P&gt;&lt;P&gt;Now I want to put the CAN init functions into a "system_init" function. In this function the timer, can, gpios etc will be initalisied. The "system_init" function is called in the main routine. If I send a CAN message with extended ID, there is a message only with standard ID. If I send a message with standard ID, the message is a remote frame.&lt;/P&gt;&lt;P&gt;Am I making some mistakes or is initialisiation of CAN, Timer, etc only possible in the main function?&lt;/P&gt;</description>
      <pubDate>Thu, 25 Nov 2021 11:11:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/CAN-Init/m-p/1377017#M12932</guid>
      <dc:creator>Michael_Br</dc:creator>
      <dc:date>2021-11-25T11:11:31Z</dc:date>
    </item>
    <item>
      <title>Re: CAN Init</title>
      <link>https://community.nxp.com/t5/S32K/CAN-Init/m-p/1377303#M12944</link>
      <description>&lt;P&gt;&lt;A href="mailto:Hi@Michael_Br" target="_blank"&gt;Hi@Michael_Br&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;It should be impossible, it may be that you have configured something wrong.&lt;/P&gt;
&lt;P&gt;Have you refer to the routines "&lt;STRONG&gt;can_pal_s32k146&lt;/STRONG&gt;"?&lt;/P&gt;
&lt;P&gt;If it is convenient, you can send your code and I will help you debug it.&lt;/P&gt;
&lt;P&gt;BR!&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Jim,&lt;/P&gt;</description>
      <pubDate>Fri, 26 Nov 2021 01:47:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/CAN-Init/m-p/1377303#M12944</guid>
      <dc:creator>Senlent</dc:creator>
      <dc:date>2021-11-26T01:47:35Z</dc:date>
    </item>
    <item>
      <title>Re: CAN Init</title>
      <link>https://community.nxp.com/t5/S32K/CAN-Init/m-p/1377596#M12955</link>
      <description>&lt;P&gt;Hey thank you for your repley.&lt;/P&gt;&lt;P&gt;Unfortunately I don't understand the first part of your reply. Before I add my code here, I would like to show you my two options:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Option Nr1 (same option as in&amp;nbsp;&lt;STRONG&gt;can_pal_s32k146&lt;/STRONG&gt;)&lt;/P&gt;&lt;P&gt;The CAN Init is done in the main routine. Works without any problems.&lt;/P&gt;&lt;P&gt;Option Nr2&lt;/P&gt;&lt;P&gt;The CAN Init is done in a extern function system_init. The function system_init is called in the main routine. Doesn't work.&lt;/P&gt;&lt;P&gt;Is option Nr 2 a valid option? Or do I have to do the init in the main routine?&lt;/P&gt;</description>
      <pubDate>Fri, 26 Nov 2021 10:54:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/CAN-Init/m-p/1377596#M12955</guid>
      <dc:creator>Michael_Br</dc:creator>
      <dc:date>2021-11-26T10:54:31Z</dc:date>
    </item>
    <item>
      <title>Re: CAN Init</title>
      <link>https://community.nxp.com/t5/S32K/CAN-Init/m-p/1377645#M12959</link>
      <description>&lt;P&gt;&lt;A href="mailto:Hi@Michael_Br" target="_blank"&gt;Hi@Michael_Br&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;I mean there is no difference between the second option and the first option, and both should working normally.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; and yes,you don't have to the init in the main routine.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; I may not be able to reply you in time, I will reply to your question next Monday.&lt;/P&gt;
&lt;P&gt;BR!&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Jim,&lt;/P&gt;</description>
      <pubDate>Fri, 26 Nov 2021 12:53:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/CAN-Init/m-p/1377645#M12959</guid>
      <dc:creator>Senlent</dc:creator>
      <dc:date>2021-11-26T12:53:10Z</dc:date>
    </item>
    <item>
      <title>Re: CAN Init</title>
      <link>https://community.nxp.com/t5/S32K/CAN-Init/m-p/1377849#M12966</link>
      <description>&lt;P&gt;&lt;A href="mailto:Hi@Michael_Br" target="_blank"&gt;Hi@Michael_Br&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;please let me know if you have any updated on this issue.&lt;/P&gt;
&lt;P&gt;BR!&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Jim,&lt;/P&gt;</description>
      <pubDate>Mon, 29 Nov 2021 02:18:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/CAN-Init/m-p/1377849#M12966</guid>
      <dc:creator>Senlent</dc:creator>
      <dc:date>2021-11-29T02:18:53Z</dc:date>
    </item>
    <item>
      <title>Re: CAN Init</title>
      <link>https://community.nxp.com/t5/S32K/CAN-Init/m-p/1378113#M12988</link>
      <description>&lt;P&gt;I made a simple test project with the problem I have. Every 10ms a CAN message is send. The CAN init is called in the main in two possible ways. If I call all functions directly in the main, everything works as it should. But If I put the CAN init in a function called CAN_Config() and call this in the main, I get a message with a standard ID instead of an extended.&lt;/P&gt;&lt;P&gt;Could you please check if you have the same problem with this project?&lt;/P&gt;</description>
      <pubDate>Mon, 29 Nov 2021 09:39:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/CAN-Init/m-p/1378113#M12988</guid>
      <dc:creator>Michael_Br</dc:creator>
      <dc:date>2021-11-29T09:39:51Z</dc:date>
    </item>
    <item>
      <title>Re: CAN Init</title>
      <link>https://community.nxp.com/t5/S32K/CAN-Init/m-p/1378789#M13016</link>
      <description>&lt;P&gt;&lt;A href="mailto:Hi@Michale_Br" target="_blank"&gt;Hi@Michale_Br &lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; I tested the example code you provided,and I also encountered the same problem as you.&lt;/P&gt;
&lt;P&gt;But if I modified the code like this,the problem disappeared.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Senlent_0-1638262147319.png" style="width: 621px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/163559i24EC1C77BB5D6D05/image-dimensions/621x482?v=v2" width="621" height="482" role="button" title="Senlent_0-1638262147319.png" alt="Senlent_0-1638262147319.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Senlent_0-1638262147319.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Still looking for the reason, it may be the reason of the variable.&lt;/P&gt;
&lt;P&gt;BR!&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Jim,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Nov 2021 09:02:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/CAN-Init/m-p/1378789#M13016</guid>
      <dc:creator>Senlent</dc:creator>
      <dc:date>2021-11-30T09:02:25Z</dc:date>
    </item>
  </channel>
</rss>

