<?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 bus - can_message_t .cs - Code and Status in S32 SDK</title>
    <link>https://community.nxp.com/t5/S32-SDK/CAN-bus-can-message-t-cs-Code-and-Status/m-p/826225#M629</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That fileld represents the code and status of the message buffer, you can read his description in the Chip RM&amp;nbsp;"Message buffer structure" in FlexCAN module description chapter.&lt;/P&gt;&lt;P&gt;It encodes more fields and one of them is a Time STAMP filed "This 16-bit field is a copy of the Free-Running Timer, captured for Tx and Rx frames at the time when the beginning of the Identifier field appears on the CAN bus." This is way every time have a different value/ random see as you mention.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Oct 2018 11:32:59 GMT</pubDate>
    <dc:creator>alexandrunan</dc:creator>
    <dc:date>2018-10-24T11:32:59Z</dc:date>
    <item>
      <title>CAN bus - can_message_t .cs - Code and Status</title>
      <link>https://community.nxp.com/t5/S32-SDK/CAN-bus-can-message-t-cs-Code-and-Status/m-p/826224#M628</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;Does anyone know what exactly is the .cs field in&amp;nbsp;&lt;SPAN style="color: #000000; background-color: #ffffff; font-size: 14px;"&gt;can_message_t struct represents?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #ffffff; font-size: 14px;"&gt;Struct is defined as below, and I can't find a clear definition, except "Code and Status"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;typedef struct {&lt;BR /&gt; uint32_t &lt;STRONG&gt;cs&lt;/STRONG&gt;; /*!&amp;lt; Code and Status*/&lt;BR /&gt; uint32_t id; /*!&amp;lt; ID of the message */&lt;BR /&gt; uint8_t data[64]; /*!&amp;lt; Data bytes of the CAN message*/&lt;BR /&gt; uint8_t length; /*!&amp;lt; Length of payload in bytes */&lt;BR /&gt;} can_message_t;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #ffffff; font-size: 14px;"&gt;I'm using a S32K144 EVB and a USB-CAN interface.I'm sending data from the USB-CAN interface to the SK32K144 board.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #ffffff; font-size: 14px;"&gt;Everything works fine, but&amp;nbsp;w&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff; font-size: 14px;"&gt;hen I am receiving data from the CAN bus, this ".cs" value changes every time, apparently random, even if the data sent from the CAN adapter is the same.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Oct 2018 00:59:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-SDK/CAN-bus-can-message-t-cs-Code-and-Status/m-p/826224#M628</guid>
      <dc:creator>vagabond</dc:creator>
      <dc:date>2018-10-24T00:59:04Z</dc:date>
    </item>
    <item>
      <title>Re: CAN bus - can_message_t .cs - Code and Status</title>
      <link>https://community.nxp.com/t5/S32-SDK/CAN-bus-can-message-t-cs-Code-and-Status/m-p/826225#M629</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That fileld represents the code and status of the message buffer, you can read his description in the Chip RM&amp;nbsp;"Message buffer structure" in FlexCAN module description chapter.&lt;/P&gt;&lt;P&gt;It encodes more fields and one of them is a Time STAMP filed "This 16-bit field is a copy of the Free-Running Timer, captured for Tx and Rx frames at the time when the beginning of the Identifier field appears on the CAN bus." This is way every time have a different value/ random see as you mention.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Oct 2018 11:32:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-SDK/CAN-bus-can-message-t-cs-Code-and-Status/m-p/826225#M629</guid>
      <dc:creator>alexandrunan</dc:creator>
      <dc:date>2018-10-24T11:32:59Z</dc:date>
    </item>
    <item>
      <title>Re: CAN bus - can_message_t .cs - Code and Status</title>
      <link>https://community.nxp.com/t5/S32-SDK/CAN-bus-can-message-t-cs-Code-and-Status/m-p/826226#M630</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot Alexandru, it's clear now.&lt;/P&gt;&lt;P&gt;Found the complete description in the reference manual at&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.nxp.com/docs/en/reference-manual/S32K-RM.pdf" title="https://www.nxp.com/docs/en/reference-manual/S32K-RM.pdf"&gt;https://www.nxp.com/docs/en/reference-manual/S32K-RM.pdf&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;page 1718 :smileyhappy:&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Oct 2018 16:56:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-SDK/CAN-bus-can-message-t-cs-Code-and-Status/m-p/826226#M630</guid>
      <dc:creator>vagabond</dc:creator>
      <dc:date>2018-10-24T16:56:11Z</dc:date>
    </item>
  </channel>
</rss>

