<?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: Problem when I try to receive a message through CAN in S32K</title>
    <link>https://community.nxp.com/t5/S32K/Problem-when-I-try-to-receive-a-message-through-CAN/m-p/1874581#M35775</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;try to use extern&amp;nbsp;&lt;SPAN&gt;FlexCAN_Ip_MsgBuffType&amp;nbsp;g_RXCANMsg; in your c file.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;BR, Petr&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 24 May 2024 10:44:58 GMT</pubDate>
    <dc:creator>PetrS</dc:creator>
    <dc:date>2024-05-24T10:44:58Z</dc:date>
    <item>
      <title>Problem when I try to receive a message through CAN</title>
      <link>https://community.nxp.com/t5/S32K/Problem-when-I-try-to-receive-a-message-through-CAN/m-p/1870509#M35658</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a problem when I try to receive a message through CAN. I want to check if I receive a data in S32 Design Studio, so I send the functions that I have used (The clock of CAN is 24 MHz and It is correct). I have different problems.&lt;/P&gt;&lt;P&gt;1. When I try to receive the messages, the dates are 0.&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. I don´t know if I want to implement 0x because the dates I want to send are in the PCAN-View (In hexadecimal the dates are 11 22 34 44 (I only want to check if the first date is 11)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JonAnder_Amante_2-1716367937129.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/280090i48C8DC93206A0C3F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JonAnder_Amante_2-1716367937129.png" alt="JonAnder_Amante_2-1716367937129.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;In the next pictures you can see the functions that I have used.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JonAnder_Amante_0-1716367802719.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/280086iF86323823251A509/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JonAnder_Amante_0-1716367802719.png" alt="JonAnder_Amante_0-1716367802719.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JonAnder_Amante_1-1716367833311.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/280088iF3DA5A1727AC1116/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JonAnder_Amante_1-1716367833311.png" alt="JonAnder_Amante_1-1716367833311.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;In summary, the target of this program is the implementation of bootloader. The problem is that I want to check if the jump to the application is made depending on a CAN message is received. (The application is a program which send and receive different dates).&lt;/P&gt;&lt;P&gt;In the main I have these functions and structures:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JonAnder_Amante_3-1716368394761.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/280097i5868888DA503916D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JonAnder_Amante_3-1716368394761.png" alt="JonAnder_Amante_3-1716368394761.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JonAnder_Amante_4-1716368422835.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/280098i407BB9824A7BC42B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JonAnder_Amante_4-1716368422835.png" alt="JonAnder_Amante_4-1716368422835.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I have tried instead of "g_RXCANMsg" instead of implement "rxData" but I havce problem because the program said that the variable "g_RXCANMsg" doesn´t definied, so Could you tell me the steps to implement this varibale?&lt;/P&gt;&lt;P&gt;Thank you for all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 May 2024 09:03:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Problem-when-I-try-to-receive-a-message-through-CAN/m-p/1870509#M35658</guid>
      <dc:creator>JonAnder_Amante</dc:creator>
      <dc:date>2024-05-22T09:03:57Z</dc:date>
    </item>
    <item>
      <title>Re: Problem when I try to receive a message through CAN</title>
      <link>https://community.nxp.com/t5/S32K/Problem-when-I-try-to-receive-a-message-through-CAN/m-p/1870658#M35668</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;hard to suggest from given code snippets.&amp;nbsp;&lt;BR /&gt;If you see issues with project building, you need to find root cause yourself.&lt;BR /&gt;1) When you call Flexcan_Ip_Receive with pointing to&amp;nbsp;&lt;SPAN&gt;"g_RXCANMsg", then after successful reception you will get callback function and&amp;nbsp;"g_RXCANMsg"&amp;nbsp;contains message content you sent from PCAN tool.&lt;BR /&gt;2) In PCAN tool you put hex values, so in your code, so first byte is 0x11, then you should test for 0x11, not 0x17 you have&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;BR, Petr&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 May 2024 11:01:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Problem-when-I-try-to-receive-a-message-through-CAN/m-p/1870658#M35668</guid>
      <dc:creator>PetrS</dc:creator>
      <dc:date>2024-05-22T11:01:01Z</dc:date>
    </item>
    <item>
      <title>Re: Problem when I try to receive a message through CAN</title>
      <link>https://community.nxp.com/t5/S32K/Problem-when-I-try-to-receive-a-message-through-CAN/m-p/1874364#M35765</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thank you for your information but I have different questions. I want to use the variable "g_RXCANMsg" and the definition of this variable is on the "main.c" and I want to use this variable in the file "boot_Cfg.c". I think that the structure&amp;nbsp;"FlexCAN_Ip_MsgBuffType" is important but i don´t know what commands I have to implement in the file "Boot_Cfg.c" to use this varibale in the file&amp;nbsp;"boot_Cfg.c". I send you different picture to understand the problem because I can´t compile the project because of this problem.&lt;/P&gt;&lt;P&gt;I hope your answer as soon as possible.&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JonAnder_Amante_0-1716534439755.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/280637iCB67531220BCDF99/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JonAnder_Amante_0-1716534439755.png" alt="JonAnder_Amante_0-1716534439755.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JonAnder_Amante_1-1716534472084.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/280638iF8F982EAB91D5E28/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JonAnder_Amante_1-1716534472084.png" alt="JonAnder_Amante_1-1716534472084.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="JonAnder_Amante_2-1716534522204.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/280639i63251DC09442FC9E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JonAnder_Amante_2-1716534522204.png" alt="JonAnder_Amante_2-1716534522204.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JonAnder_Amante_3-1716534571590.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/280640i678B5B16E0F13EEB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JonAnder_Amante_3-1716534571590.png" alt="JonAnder_Amante_3-1716534571590.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>Fri, 24 May 2024 07:13:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Problem-when-I-try-to-receive-a-message-through-CAN/m-p/1874364#M35765</guid>
      <dc:creator>JonAnder_Amante</dc:creator>
      <dc:date>2024-05-24T07:13:59Z</dc:date>
    </item>
    <item>
      <title>Re: Problem when I try to receive a message through CAN</title>
      <link>https://community.nxp.com/t5/S32K/Problem-when-I-try-to-receive-a-message-through-CAN/m-p/1874581#M35775</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;try to use extern&amp;nbsp;&lt;SPAN&gt;FlexCAN_Ip_MsgBuffType&amp;nbsp;g_RXCANMsg; in your c file.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;BR, Petr&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 24 May 2024 10:44:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Problem-when-I-try-to-receive-a-message-through-CAN/m-p/1874581#M35775</guid>
      <dc:creator>PetrS</dc:creator>
      <dc:date>2024-05-24T10:44:58Z</dc:date>
    </item>
    <item>
      <title>Re: Problem when I try to receive a message through CAN</title>
      <link>https://community.nxp.com/t5/S32K/Problem-when-I-try-to-receive-a-message-through-CAN/m-p/1874600#M35776</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have tried your idea and I have an error. The error said that there are multiple definition of g_RXCANMsg and I don´t know how I can solve the problem. Could you tell me the steps to solve it?&lt;/P&gt;&lt;P&gt;Thank you for all,&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JonAnder_Amante_0-1716551153353.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/280718iF60B2CA9E3BEA913/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JonAnder_Amante_0-1716551153353.png" alt="JonAnder_Amante_0-1716551153353.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>Fri, 24 May 2024 11:46:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Problem-when-I-try-to-receive-a-message-through-CAN/m-p/1874600#M35776</guid>
      <dc:creator>JonAnder_Amante</dc:creator>
      <dc:date>2024-05-24T11:46:15Z</dc:date>
    </item>
    <item>
      <title>Re: Problem when I try to receive a message through CAN</title>
      <link>https://community.nxp.com/t5/S32K/Problem-when-I-try-to-receive-a-message-through-CAN/m-p/1874637#M35778</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I do not see you have extern keyword used.&lt;/P&gt;
&lt;P&gt;BR, Petr&lt;/P&gt;</description>
      <pubDate>Fri, 24 May 2024 12:37:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Problem-when-I-try-to-receive-a-message-through-CAN/m-p/1874637#M35778</guid>
      <dc:creator>PetrS</dc:creator>
      <dc:date>2024-05-24T12:37:54Z</dc:date>
    </item>
    <item>
      <title>Re: Problem when I try to receive a message through CAN</title>
      <link>https://community.nxp.com/t5/S32K/Problem-when-I-try-to-receive-a-message-through-CAN/m-p/1875214#M35806</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I don´t understand you when you tell me that I have to use&amp;nbsp; a extern keyword. Could you tell me steps to implement this? I undestood that I have to add the command "&lt;SPAN&gt;FlexCAN_Ip_MsgBuffType&amp;nbsp;g_RXCANMsg;" but I haven´t achieved nothing.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you for all,&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 27 May 2024 06:02:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Problem-when-I-try-to-receive-a-message-through-CAN/m-p/1875214#M35806</guid>
      <dc:creator>JonAnder_Amante</dc:creator>
      <dc:date>2024-05-27T06:02:23Z</dc:date>
    </item>
    <item>
      <title>Re: Problem when I try to receive a message through CAN</title>
      <link>https://community.nxp.com/t5/S32K/Problem-when-I-try-to-receive-a-message-through-CAN/m-p/1875473#M35828</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;read e.g.&amp;nbsp;&lt;A href="https://stackoverflow.com/questions/1433204/how-do-i-use-extern-to-share-variables-between-source-files" target="_blank"&gt;https://stackoverflow.com/questions/1433204/how-do-i-use-extern-to-share-variables-between-source-files&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;BR, Petr&lt;/P&gt;</description>
      <pubDate>Mon, 27 May 2024 09:51:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Problem-when-I-try-to-receive-a-message-through-CAN/m-p/1875473#M35828</guid>
      <dc:creator>PetrS</dc:creator>
      <dc:date>2024-05-27T09:51:20Z</dc:date>
    </item>
    <item>
      <title>Re: Problem when I try to receive a message through CAN</title>
      <link>https://community.nxp.com/t5/S32K/Problem-when-I-try-to-receive-a-message-through-CAN/m-p/1876044#M35866</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I keep having problems. The target is that bootloader achieves to do "Request Backdoor", in the project I have implemented it with a button but I want to receive a message and then jump to the application. I want to use a variable called "g_RXCANMsg" which is in the "main.c" and I want to use in the file "Boot_Cfg.c". Could you send the command that I have to implement and where I have to use the command? I have read the link that I send me but I haven´t achieved any solution.&lt;/P&gt;&lt;P&gt;Thank you for all,&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JonAnder_Amante_0-1716880831950.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/281103iA6AAAEC8202CAA8C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JonAnder_Amante_0-1716880831950.png" alt="JonAnder_Amante_0-1716880831950.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 May 2024 07:23:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Problem-when-I-try-to-receive-a-message-through-CAN/m-p/1876044#M35866</guid>
      <dc:creator>JonAnder_Amante</dc:creator>
      <dc:date>2024-05-28T07:23:19Z</dc:date>
    </item>
    <item>
      <title>Re: Problem when I try to receive a message through CAN</title>
      <link>https://community.nxp.com/t5/S32K/Problem-when-I-try-to-receive-a-message-through-CAN/m-p/1878115#M36022</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have achieved implement the variables with "extern" but I don´t achieve to receive any value through CAN. Could you tell me the command that I have to use, I think that I have to use the command "Receive"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Thu, 30 May 2024 09:51:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Problem-when-I-try-to-receive-a-message-through-CAN/m-p/1878115#M36022</guid>
      <dc:creator>JonAnder_Amante</dc:creator>
      <dc:date>2024-05-30T09:51:34Z</dc:date>
    </item>
    <item>
      <title>Re: Problem when I try to receive a message through CAN</title>
      <link>https://community.nxp.com/t5/S32K/Problem-when-I-try-to-receive-a-message-through-CAN/m-p/1878889#M36088</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;you should have MB prepared for reception using ConfigRxMb function then start receving by Receive function.&lt;/P&gt;&lt;P&gt;BR, Petr&lt;/P&gt;</description>
      <pubDate>Fri, 31 May 2024 09:58:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Problem-when-I-try-to-receive-a-message-through-CAN/m-p/1878889#M36088</guid>
      <dc:creator>PetrS</dc:creator>
      <dc:date>2024-05-31T09:58:32Z</dc:date>
    </item>
  </channel>
</rss>

